Repository navigation
fix(studio): prevent silent domain query scope changes - #244
Conversation
yordis
commented
Oct 25, 2026
- Domain-scoped inspection must preserve the selected version and continuation scope instead of silently returning version 1 and the first page.
- Malformed query values must be refused before they can change the requested inspection scope.
Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>
PR SummaryLow Risk Overview Reference docs add a Studio HTTP bridge section for this contract; the gateway README links to it. Bridge tests cover defaults, full forwarding (including large Reviewed by Cursor Bugbot for commit 22c20f6. Bugbot is set up for automated code reviews on this repo. Configure here. |
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Validate and forward listing controls tsworkspace/webapps/studio/server/index.mjs, tsworkspace/webapps/studio/server/index.test.mjs |
The route validates version, latest-only, and pagination query values, then forwards them to the RPC. Tests cover defaults, exact version strings, accepted and rejected values, authorization, branch metadata, and response cursors. |
Document route scope and controls docs/reference/domain-scoped-listing.md, tsworkspace/webapps/studio/server/README.md |
The documentation describes the route’s query controls, exact Domain version scope, response behavior, and the limits of the bridge and its tests. |
Priority:
Estimated code review effort: 2 (Simple) | ~15 minutes
Change: Bug fix
Possibly related PRs
- TrogonStack/atlas#243: Defines the
ListEntitiesByDomaincontract that this bridge forwards requests to.
Suggested reviewers: enilsen16
Merge Risk: 
Minimal · up to 22c20
-
The domain-listing changes appear ready to merge after normal checks; no actionable merge-blocking risk was established.
Pre-merge checks: 
5
-
Full details: Title check
-
Explanation
The title names the main change: domain-scoped query handling now keeps the selected version and pagination scope instead of silently changing them. It matches the summarized changes to /api/by-domain query validation and defaults, and the 'fix(studio)' prefix matches the scope of the change.
Full details: Description check
-
Explanation
The description states two goals: keep the selected version and continuation scope instead of silently returning version 1 and the first page, and refuse malformed query values before they change the inspection scope. Both goals match the summarized changes to the Studio server route and its tests.
Full details: Docstring Coverage
-
Explanation
Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 2 files. (2 skipped: 2 unsupported.)
-
Finishing Touches
-
📝 Generate docstrings
-
- Commit to this branch
- Create a new PR
🧪 Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
A rabbit checks the version string,
And sends the page token on its way.
The listing keeps its cursor safe,
While tests reject a crooked query.
Then hops away through fields of hay.
Comment @coderabbitai help to get the list of available commands.
Signed-off-by: Yordis Prieto <yordis.prieto@gmail.com>