Repository navigation
OpenConceptLab/ocl_issues#3009 | Expansions show built_with - #1060
Merged
Merged
Conversation
…ent can tell which locks a rebuild keeps
This was referenced Nov 24, 2026
Contributor
Author
|
Review round 1: verdict "approve with nits" This was a high-effort review of the diff against
Nothing open. This ends the review loop for this PR. |
snyaggarwal
marked this pull request as ready for review
November 24, 2026 16:14
paynejd
approved these changes
Nov 24, 2026
paynejd
left a comment
Member
There was a problem hiding this comment.
Review lead (Claude, for Jon), round 1
Thanks, Sunny. built_with is now on both expansion serializers and read-only, so a client can tell which locks a rebuild keeps but can't set them. The test covers:
- the detail view;
- the version's
expansions/list; - an expansion made on its own (null);
- a client trying to set the field.
The branch is current with master, and CI is green. Approved.
Deploy this before oclweb3#114. Without the field, that panel offers a rebuild to move a lock-built expansion's value-set locks, which a rebuild keeps.
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_issues#3009 · Epic: OpenConceptLab/ocl_issues#2942
Why
OpenConceptLab/ocl_issues#3009's TBv3 panel (OpenConceptLab/oclweb3#114) suggests a rebuild to move an expansion off a lock on HEAD or on a retired release. A rebuild doesn't move every lock, though. An expansion that version create built with
expansion: lockkeeps its value-set locks on a rebuild (Expansion.add_references,kept_valueset_locks), and its source versions are kept throughsystem-version. The other cases can be told apart from what the API already returns: explicit versions,system-version, and each recorded version'sreleasedandretired. This one can't:built_withisn't serialized. Without it, the panel would offer Create similar → compare → Rebuild for a value set the rebuild then keeps.What changes
ExpansionSerializerandExpansionDetailSerializerreturnbuilt_with, read-only:lock,latest, ornullwhen version create recorded no choice.nullcovers:Only
lockchanges what a rebuild keeps. The collection-wide/collections/:collection/expansions/list returns the field too. It's an existing model field, so there's no migration and no new query.Tests
CollectionVersionExpansionViewTest.test_get_shows_how_version_create_built_the_expansion: versions created withlockand withlatestshow that choice on the expansion detail and in the version's expansions list. An expansion made on its own showsnull, and abuilt_withsent on expansion create is ignored. A client-setlockwould change what a rebuild keeps.openconceptlab/oclapi2:productioncontainer:CollectionVersionExpansionViewTestandCollectionVersionExpansionsViewTest, 10 tests, OK.Sibling PRs from this session
🤖 Generated with Claude Code