Repository navigation
OpenConceptLab/ocl_online#862 | Comparison shows the source of an ID that several sources share, and opens the right member - #125
Merged
Conversation
…that several sources share, and opens the right member Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… of a concept or mapping, and a shared ID's links stay inside the compared collection Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…er and newer sides, and an ID with a space or % opens its own page Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…D the API stored, so an ID like a:b opens in a collection Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Ticket: OpenConceptLab/ocl_online#862. Needs OpenConceptLab/oclapi2#1121, and came out of its review.
Why
When two sources in a collection share an ID, the comparison's View and Compare links used the ID alone. The API answers 409 to that, because it can't tell which one is meant. The table didn't say which source a row was from either.
What
For an ID that several sources share, OpenConceptLab/oclapi2#1121 sends
source,version_urlandprev_version_url:<expansion>/concepts/1/22/?uri=<source>), so someone who can view the collection can open them, even when the source is private.The split view can open an exact version of a concept or mapping, for any source or collection, such as
/orgs/CIEL/sources/CIEL/concepts/1/6406424/. Edit, Retire and adding mappings are hidden there, since saving an old version would overwrite the latest.An ID that one source uses is listed and linked as before. The two PRs can be deployed in either order: without the API's change, nothing changes here.
To look at in review
Tests
npm test: 371 pass, with new tests for the routes, the links, that a View link reaches its revision, and when Compare shows. ESLint is clean.Tried in a browser on local data, as a reader who can't view the source: View for newer, older and removed concepts and a mapping, Compare, filtering the list, choosing another row and closing the panel. Exact versions of a CIEL concept and mapping open too.
🤖 Generated with Claude Code