fix: map cloud SDK reference alias to 1.9.x#2952
Merged
ChiragAgg5k merged 3 commits intomainfrom May 1, 2026
Merged
Conversation
The cloud version alias was hardcoded to 1.8.x, but the Rust SDK was only added in 1.9.x. As a result, /docs/references/cloud/server-rust/* rendered an empty endpoints page because every method's example path missed the glob and was skipped. Other languages had 1.8.x examples, so the bug was Rust-only.
Contributor
Greptile SummaryThis PR fixes the empty endpoints page for Confidence Score: 5/5Safe to merge — the fix is minimal, correct, and future-proof. The core fix is straightforward: No files require special attention. Important Files Changed
Reviews (3): Last reviewed commit: "chore: format platforms.svelte to unbloc..." | Re-trigger Greptile |
Per review: hardcoding the alias would silently drift again on the next Cloud bump. Export latestVersion (= allVersions[0]) from references.ts and have the loader use it, so future version additions to allVersions automatically update the cloud route.
Pre-existing formatting drift on main (introduced in 977683a) was failing the format:check job. Pure prettier --write output — Tailwind class ordering and re-indentation, no behavior change.
HarshMN2345
approved these changes
May 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/docs/references/cloud/server-rust/*was rendering an empty endpoints page (e.g. tablesDB) while the version-pinned /1.9.x/server-rust/tablesDB page worked fine.+page.server.tshardcoded thecloudalias to1.8.x, but the Rust SDK was only added to@appwrite.io/specsin1.9.x. The example loader iterates each method, builds a path like/node_modules/@appwrite.io/specs/examples/1.8.x/server-rust/examples/..., andcontinues on miss — for Rust under1.8.x, every method missed (noserver-rust/directory exists in1.8.xat all), sodata.methodsended up empty and the page silently rendered with no endpoints. Other languages were unaffected because their example directories exist in both1.8.xand1.9.x.1.8.xto1.9.xto match the version Cloud actually runs.Test plan
/docs/references/cloud/server-rust/tablesDBand confirm endpoints render/docs/references/cloud/server-nodejs/tablesDBand confirm no regressioncloud/<platform>/<service>references (e.g.cloud/server-python/databases,cloud/client-web/account) still render correctly/docs/references/1.9.x/server-rust/tablesDBis still equivalent to the newcloudpage