Repository navigation
Conversation
…ions has their menu, and what writes is there only for people who can edit it - The menu's button shows for everyone, with the "Actions" tooltip, as a source's does. Signed out, the exports are off. - New Expansion, and in an expansion's own menu everything but Details, need edit access. - What the two menus hold is in collectionVersionMenus.jsx, with a test for an editor, a viewer and a visitor. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AaZ4qWierCikGzbXQj3GN3
…ple who can't edit the repository, on a source too The API exports HEAD only for them. Any other version is exported for everyone who's signed in and can view it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AaZ4qWierCikGzbXQj3GN3
… being generated only when it is Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AaZ4qWierCikGzbXQj3GN3
Member
Author
Codex review, pass 1 (codex-cli 0.171.0, commit 378550b)Verdict: 3 findings, 2 of them P0 or P1.
findings.json{
"reviewer": "codex-cli 0.171.0",
"perspective": "defects",
"mode": "full",
"commit": "378550b67",
"verdict": "findings",
"prior": [],
"findings": [
{
"id": "F1.1",
"severity": "P1",
"tag": null,
"file": "src/components/repos/collectionVersionMenus.jsx",
"line": 38,
"claim": "Export Version is enabled on HEAD for viewers whose export request the API always rejects.",
"scenario": "A signed-in viewer opens the HEAD menu on a public collection and clicks Export Version. The dialog requests `HEAD/export/`, which returns HTTP 405 because HEAD exports require collection edit access.",
"action": "Disable Export Version on HEAD when `hasAccess` is false. Add a viewer test covering HEAD and a released version.",
"lines_delta": null,
"confidence": "high"
},
{
"id": "F1.2",
"severity": "P1",
"tag": null,
"file": "src/components/repos/collectionVersionMenus.jsx",
"line": 40,
"claim": "The comparison opened by the new menu offers signed-out visitors a Content view that requires authentication.",
"scenario": "A signed-out visitor compares two public releases with default expansions, then selects Content. The API rejects the request to `expansions/$changelog/`, so the visitor gets no content diff or explanation in the comparison view.",
"action": "Keep public comparison views available and show that signing in is required before requesting the content diff.",
"lines_delta": null,
"confidence": "high"
},
{
"id": "F1.3",
"severity": "P2",
"tag": null,
"file": null,
"line": null,
"claim": "About existing code that this change does not touch. It is handled separately.",
"scenario": null,
"action": null,
"lines_delta": null,
"confidence": "high"
}
]
} |
Member
Author
|
Answers to pass 1:
|
Member
Author
Codex review, pass 2 (codex-cli 0.171.0, commit d0f9284)Verdict: 2 findings, 1 of them P0 or P1.
findings.json{
"reviewer": "codex-cli 0.171.0",
"perspective": "defects",
"mode": "verify",
"commit": "d0f928463",
"verdict": "findings",
"prior": [
{
"id": "F1.1",
"status": "resolved"
},
{
"id": "F1.2",
"status": "unresolved"
},
{
"id": "F1.3",
"status": "unresolved"
}
],
"findings": [
{
"id": "F2.1",
"severity": "P1",
"tag": null,
"file": "src/components/repos/collectionVersionMenus.jsx",
"line": 40,
"claim": "The newly available Export Version action lets viewers queue a job that writes to the collection version.",
"scenario": "A signed-in viewer opens Export Version for a released collection version with no cached archive. The dialog offers Queue Export. (Shortened here.)",
"action": "Pass the collection's edit permission to the export dialog and gate Queue Export on it. Keep cached downloads available to signed-in viewers and test the missing-archive case.",
"lines_delta": null,
"confidence": "high"
},
{
"id": "F2.2",
"severity": "P2",
"tag": null,
"file": "src/components/repos/SourceVersionsTab.jsx",
"line": 483,
"claim": "The source menu reports that an export is being generated when the viewer lacks permission to export HEAD.",
"scenario": "A signed-in viewer hovers over the disabled Export Version item on a source's idle HEAD row. The tooltip says the export is still being generated, so the viewer is led to wait for an action that will remain unavailable.",
"action": "Show the processing tooltip only when processing blocks the export. Give the HEAD permission restriction its own explanation.",
"lines_delta": null,
"confidence": "high"
}
]
} |
Member
Author
|
Answers to pass 2:
|
Member
Author
Codex review, pass 3 (codex-cli 0.171.0, commit 59c9605)Verdict: 1 findings, 0 of them P0 or P1.
findings.json{
"reviewer": "codex-cli 0.171.0",
"perspective": "defects",
"mode": "verify",
"commit": "59c960593",
"verdict": "findings",
"prior": [
{
"id": "F1.1",
"status": "resolved"
},
{
"id": "F1.2",
"status": "unresolved"
},
{
"id": "F1.3",
"status": "unresolved"
},
{
"id": "F2.1",
"status": "resolved"
},
{
"id": "F2.2",
"status": "resolved"
}
],
"findings": [
{
"id": "F3.1",
"severity": "P2",
"tag": null,
"file": null,
"line": null,
"claim": "About existing code that this change does not touch. It is handled separately.",
"scenario": null,
"action": null,
"lines_delta": null,
"confidence": "high"
}
]
} |
Member
Author
|
Answers to pass 3:
Simplification review (a fresh Claude subagent, commit 59c9605): two small items, neither applied.
|
This branch has not been deployed
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.
For OpenConceptLab/ocl_online#888. Based on
main.Everyone who sees a collection's versions now has the three-dot menu on each. It showed only to people who can edit the collection, so someone using a published value set couldn't download it from the app. A source's versions have always had the menu for everyone.
What it does now
The items of the two menus moved from
CollectionVersionsTab.jsxtocollectionVersionMenus.jsx, so that they can be tested.How it was checked
Which goes first
CollectionVersionsTab.jsxtoo, in other places.They merge without a conflict in either order. The 439 tests and the lint pass on the three together, and the browser check ran on them together.
🤖 Generated with Claude Code
https://claude.ai/code/session_01AaZ4qWierCikGzbXQj3GN3