Repository navigation
OpenConceptLab/ocl_online#768 | Copy HEAD's parameters replaces Lock repo versions, and its help says value sets keep HEAD's versions on a rebuild - #115
Conversation
… keeps its value-set versions on a rebuild
snyaggarwal
left a comment
There was a problem hiding this comment.
Review (Expansion Health epic, reviewed with #113, #114, #116 and OpenConceptLab/oclapi2#1069–#1073): approve
Checked, no issue
- The new sentence matches the API on oclapi2
master:seed_from_head_expansion_in_snapshotstarts a lock-built expansion from HEAD's activeevaluated_collection_versions("system-version doesn't reach value sets…");- a full rebuild with
built_with == lockkeeps them askept_valueset_locks.
- Consistent with OpenConceptLab/oclapi2#1072, which leaves exactly those locks out of
resolved-repo-updates. So the help text, the rebuild and the "new releases" panel (#114) all say the same thing. - All four locales are changed. The es, pt-BR and zh sentences carry the same meaning as the en one.
- No overlap with the other three oclweb3 PRs' keys.
- CI is green.
One FYI, no change needed: a value set that HEAD's expansion couldn't resolve, so it has no lock, still resolves fresh on a rebuild. That's rare enough that "keep the versions HEAD's expansion used" is still accurate.
The wording is Jon's call, as the description says.
paynejd
left a comment
There was a problem hiding this comment.
Review lead (Claude, for Jon), round 1
COMMENT: the change is right and CI is green; the wording waits on Jon's call.
Earlier points
- Sunny's review (13:18Z, 11-25): approved with one FYI, no change asked. Met: the FYI (a value set HEAD's expansion couldn't resolve has no lock and resolves fresh on a rebuild) is rare enough that the sentence stays accurate. Accepted.
Checked at head 6252876
- Only
repo.version.expansion_dialog.lock_helpchanges, in en, es, pt-BR and zh (src/i18n/locales/*/translations.json, one line each). The key is read insrc/components/repos/VersionForm.jsxL283-284 through`repo.version.expansion_dialog.${choice}_help`, so no other string is touched. - The new sentence matches
Expansion.add_referenceson oclapi2master: a full rebuild of a lock-built expansion keeps its activeevaluated_collection_versionsaskept_valueset_locks(core/collections/models.pyL2007-2036), and a new lock-built version starts from HEAD's (seed_from_head_expansion_in_snapshot, L500). - Copy-only change, so no Codex pass.
Wording
The exact sentence is for Jon to confirm or edit. This is not a blocker.
CI: Lint and test and security/snyk both pass.
|
@paynejd a reminder: this PR is copy only, ready in code with CI green, and is waiting only on your decisions:
Ticket: OpenConceptLab/ocl_online#768. |
…amed Copy HEAD's parameters and says this version's members match HEAD's Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Review lead (Claude, for Jon), round 2, head b592cb0. Verdict: ready to approve. It does what the answer on OpenConceptLab/ocl_online#549 asked: the first choice is now "Copy HEAD's parameters", with the help text "Uses HEAD's expansion parameters, including the versions HEAD's expansion uses, so this version's members match HEAD's." followed by your value-set sentence, in all four locales. The value is still CI: Lint and test pass. |
Fixes OpenConceptLab/ocl_online#768.
What changed
In Create Version > Expansion for this version (
VersionForm.jsx,repo.version.expansion_dialog.*), the first choice was called Lock repo versions. That name collides with OCL's version locking. What the choice really does is copy HEAD's expansion parameters. It's now Copy HEAD's parameters, with new help text. It still sendsexpansion: lockand is still selected first when HEAD has an expansion. Evaluate from scratch and No expansion are unchanged.New help text (
lock_help):The second sentence is the value-set sentence from the first commit. The old sentence said value sets "can resolve again on a rebuild", which is wrong on oclapi2
master. When a lock-built expansion is fully rebuilt,Expansion.add_references(core/collections/models.py~L2007-2036) saves its activeevaluated_collection_versionsaskept_valueset_locksand reuses them.seed_from_head_expansion_in_snapshot(~L529) seeds a new lock-built version from HEAD's value-set versions.No other string in
src/shows this label. The only other "lock" strings (convert_creates_lock,locked_date) are about OCL's version locking, so they stay as they are.Decision
This follows the settled direction on ocl_online#549: Jon (Nov 25) said the choice is really "copy HEAD's expansion parameters", and the launch lead asked for the rename in this PR. Default and Custom parameters come later, together, once the API has
expansion: defaultandexpansion_parameters.Independence
This is independent of #113 and #114. It touches only the
lockandlock_helpkeys and is cut frommain.Checks
npm run eslintandnpm test(262 pass), both local. No test covers these keys; the choice order and default (versionExpansion.test.js) are unchanged.🤖 Generated with Claude Code