Skip to content

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

Merged
snyaggarwal merged 2 commits into
mainfrom
ocl_online-768-lock-help
Nov 29, 2026
Merged

snyaggarwal merged 2 commits into
mainfrom
ocl_online-768-lock-help

Conversation

@snyaggarwal

@snyaggarwal snyaggarwal commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

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 sends expansion: lock and is still selected first when HEAD has an expansion. Evaluate from scratch and No expansion are unchanged.

New help text (lock_help):

Uses HEAD's expansion parameters, including the versions HEAD's expansion uses, so this version's members match HEAD's. Value sets referenced without a version keep the versions HEAD's expansion used, on a rebuild too.

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 active evaluated_collection_versions as kept_valueset_locks and reuses them. seed_from_head_expansion_in_snapshot (~L529) seeds a new lock-built version from HEAD's value-set versions.

Locale Label Help
en Copy HEAD's parameters Uses HEAD's expansion parameters, including the versions HEAD's expansion uses, so this version's members match HEAD's. Value sets referenced without a version keep the versions HEAD's expansion used, on a rebuild too.
es Copiar los parámetros de HEAD Usa los parámetros de expansión de HEAD, incluidas las versiones que usa la expansión de HEAD, para que los miembros de esta versión coincidan con los de HEAD. Los conjuntos de valores referenciados sin versión conservan las versiones que usó la expansión de HEAD, también al reconstruir.
pt-BR Copiar os parâmetros do HEAD Usa os parâmetros de expansão do HEAD, incluindo as versões usadas pela expansão do HEAD, para que os membros desta versão correspondam aos do HEAD. Conjuntos de valores referenciados sem versão mantêm as versões usadas pela expansão do HEAD, também ao reconstruir.
zh 复制 HEAD 的参数 使用 HEAD 的扩展参数,包括 HEAD 扩展所用的版本,使此版本的成员与 HEAD 一致。未指定版本引用的值集保留 HEAD 扩展所用的版本,重建时也是如此。

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: default and expansion_parameters.

Independence

This is independent of #113 and #114. It touches only the lock and lock_help keys and is cut from main.

Checks

npm run eslint and npm test (262 pass), both local. No test covers these keys; the choice order and default (versionExpansion.test.js) are unchanged.

🤖 Generated with Claude Code

… keeps its value-set versions on a rebuild

@snyaggarwal snyaggarwal left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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_snapshot starts a lock-built expansion from HEAD's active evaluated_collection_versions ("system-version doesn't reach value sets…");
    • a full rebuild with built_with == lock keeps them as kept_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 paynejd left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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_help changes, in en, es, pt-BR and zh (src/i18n/locales/*/translations.json, one line each). The key is read in src/components/repos/VersionForm.jsx L283-284 through `repo.version.expansion_dialog.${choice}_help`, so no other string is touched.
  • The new sentence matches Expansion.add_references on oclapi2 master: a full rebuild of a lock-built expansion keeps its active evaluated_collection_versions as kept_valueset_locks (core/collections/models.py L2007-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.

@snyaggarwal

Copy link
Copy Markdown
Contributor Author

@paynejd a reminder: this PR is copy only, ready in code with CI green, and is waiting only on your decisions:

  1. The lock help sentence: that a lock-built expansion keeps its value-set versions on a rebuild. Confirm it or edit it.
  2. Create Version > Expansion for this version: your four choices (No expansion / Default parameters / Copy HEAD's parameters / Custom parameters) replacing "Lock repo versions". Merge this sentence now and do the four choices later, or rename in this PR?

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>
@snyaggarwal snyaggarwal changed the title OpenConceptLab/ocl_online#768 | Lock help says a lock-built expansion keeps its value-set versions on a rebuild 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 Nov 29, 2026
@paynejd

paynejd commented Nov 29, 2026

Copy link
Copy Markdown
Member

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 expansion: lock and it's still selected first when HEAD has an expansion (versionExpansion.js unchanged). "Evaluate from scratch" and "No expansion" stay until the API has expansion: default and expansion_parameters. No other screen still says "Lock repo versions"; #114's released-version nudge now names the new choice too.

CI: Lint and test pass.

@snyaggarwal
snyaggarwal merged commit 5b7e287 into main Nov 29, 2026
2 checks passed
@snyaggarwal
snyaggarwal deleted the ocl_online-768-lock-help branch November 29, 2026 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants