Repository navigation
OpenConceptLab/ocl_issues#3011 | Version Locking and Rebuild an expansion follow the merged version-locking fixes - #83
snyaggarwal wants to merge 14 commits into
Conversation
…sion describe the lock that is reused on every add, value-set locks, resource-version and filter references, and version create's expansion choice
…as the versions the default expansion recorded, not a fresh resolution
…health: its states, reasons and how current it is
|
Review round 1: verdict "changes needed" This was a high-effort review of every behavioural claim against oclapi2
The toggle mapping in the description matches
Fixes follow, one commit per part, so the merge table still maps. |
… built site, and its lock, exclude-removal, value-set and version-create details match the code
…ty list for an unresolved pinned reference and that it shows only viewable versions
…s match the classifier, and includeHealth is described
…resolved_repo_versions' resource-version entries are described as the code records them
…ce version, rather than nothing, for an unresolved pinned reference
… out per page for any expansion
|
Review round 2: verdict "approve with nits" All 17 round-1 findings are fixed. They were rechecked against oclapi2
Outside this PR, not changed: collections.md's existing Nothing open, so this ends the review loop for this PR. |
paynejd
left a comment
There was a problem hiding this comment.
Review lead (Claude, for Jon), round 1
Thanks, Sunny. I checked the three pages against oclapi2 master at 4388a602 and Jon's decisions on ocl_issues#2942, and almost all of it matches the code:
- Locks and rebuilds:
- a lock carries over, and retiring or publishing a release doesn't move it (Jon, Oct 22);
- the resource-version pick order;
system-versionnot reaching value sets, and the 400 for two versions of one source;- version create's
lock/latest/none, and a new version locking HEAD's repo versions throughsystem-version(Nov 5).
- Expansion contents: a reference removal re-adding the others' recorded results; only the default expansion getting write-back and health.
- Health: the states,
health_is_currentand theexpansion_healthfields. - Links: they all resolve.
Your merge plan is right: each part goes in once its toggle is on, and the health commits are held until EXPANSION_HEALTH_TOGGLE is on and oclweb3#113 is deployed.
One sentence to check before merging: collectionReferenceEvaluation.md line 264 says "Removing an exclude reference doesn't bring back what it excluded until the expansion is rebuilt."
- In the code,
Expansion.delete_referencescollects the removed reference's recorded concepts and mappings, removes them, and then queuesreadd_references_to_expansion_on_references_removalfor the remaining references. - If an exclude reference records the members it excluded, that re-add returns them through the include references at once, which is the opposite of the sentence.
- No test covers this case, so please confirm it with one (add an include reference, add an exclude, remove the exclude, then check the members), and fix or drop the sentence to match.
Smaller, optional:
- The states table's
healthyrow: it is described as resolving to one released version. Inhealth.py, it means no reasons and no repository resolved to HEAD, which is a little broader. - The
resolved_repo_versionsline (about line 289): an unversioned reference'sresolved_repo_versionscan list more than one version, since it lists every version the expansion evaluated for that repository.
…repo_versions is described as every version the expansion evaluated for its repository
…e health check defines it: members, no reasons and nothing resolved to HEAD
|
Thanks. Replying to round 1. Removing an exclude reference: the sentence on line 264 is right, so it stays. I checked it with a throwaway integration test on oclapi2
The two optional points, both taken:
I added both commits to the merge table in the description, so each one goes in with its own part. |
|
@paynejd a reminder: these pages follow the decisions still pending on you in OpenConceptLab/oclapi2#1073 and OpenConceptLab/oclweb3#113 to #116 (health state names, what Rebuild does on HEAD, the Create Version expansion choices). Once you decide, I'll update the pages to match and merge. Ticket: OpenConceptLab/ocl_issues#3011. |
… reference's reason code, and TBv3 calls expansion: lock Copy HEAD's parameters Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Updated for what merged on Nov 29, in 25871a3:
This commit should merge only once OpenConceptLab/oclapi2#1073 and OpenConceptLab/oclweb3#115 are deployed; neither is yet. The merge table in the description has a row for it. Unchanged and still held: the Expansion health part (with OpenConceptLab/oclweb3#113), and what Rebuild does on HEAD (OQ-5, with OpenConceptLab/oclweb3#114). Jon's other Create Version choices (default and custom parameters) aren't built, so the docs still list |
… a concept or mapping version, and released versions can be rebuilt Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ces are information in expansion health, and one only HEAD holds makes it head_resolved Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
paynejd
left a comment
There was a problem hiding this comment.
OpenConceptLab/oclapi2#1134 changes two of the rules this page describes, so here are three suggestions. They're right once that pull request is merged, so please apply them only with it or after it.
| | Code | What it counts | | ||
| |---|---| | ||
| | `inconsistent_resolution` | Repositories whose unversioned references took members from versions with no single version in common (`repositories`). | | ||
| | `duplicate_repo_versions` | Repositories recorded at more than one version, at least one of them by an unversioned reference (`repositories`), for example a reference pinning `v1` and an unversioned reference resolving to `v2`. | |
There was a problem hiding this comment.
The rule changes with OpenConceptLab/oclapi2#1134 (health rules version 5): a version that a reference names on purpose is no longer counted here.
| | `duplicate_repo_versions` | Repositories recorded at more than one version, at least one of them by an unversioned reference (`repositories`), for example a reference pinning `v1` and an unversioned reference resolving to `v2`. | | |
| | `duplicate_repo_versions` | Repositories for which OCL itself chose two or more versions, because unversioned references resolved to different ones (`repositories`). Versions that references name don't count. | |
| | `unreleased_versions` | Members from a repository version that isn't released. | | ||
| | `interim_resource_versions` | Members that are replaced concept or mapping versions, in neither a release nor HEAD. | | ||
| | `version_mismatches` | Members held by another version than the one their reference resolved to. `head_concept` and `head_mapping` count the HEAD concepts and mappings among them. | | ||
| | `ambiguous_members` | Members that different references judge differently. | |
There was a problem hiding this comment.
The same pull request: a mapping that changed between two releases which references name isn't counted any more.
| | `ambiguous_members` | Members that different references judge differently. | | |
| | `ambiguous_members` | Members that different references judge differently. An expansion keeps a mapping once, in its newest version, so a reference that names an older release doesn't disagree about a mapping that changed since. | |
| | `ambiguous_members` | Members that different references judge differently. | | ||
| | `unattributed_members` | Members that no reference accounts for. | | ||
|
|
||
| `health.members` counts the concepts and mappings by class, and `multiple_named_versions` lists repositories that references name at more than one version on purpose; that alone doesn't make an expansion unhealthy. |
There was a problem hiding this comment.
And this list now also has a repository where references name some versions and OCL chose one.
| `health.members` counts the concepts and mappings by class, and `multiple_named_versions` lists repositories that references name at more than one version on purpose; that alone doesn't make an expansion unhealthy. | |
| `health.members` counts the concepts and mappings by class, and `multiple_named_versions` lists repositories recorded at more than one version because references name them on purpose, with at most one version that OCL chose beside them; that alone doesn't make an expansion unhealthy. |
Ticket: OpenConceptLab/ocl_issues#3011 · Epic: OpenConceptLab/ocl_issues#2942
OCL Docs now describe version locking as merged on oclapi2
master(4388a602), not as it was before the epic's fixes. The behaviour was read from the code onmaster. The last two commits (Dec 2) add the decisions on OpenConceptLab/ocl_online#549 and the health rules from OpenConceptLab/oclapi2#1106 (f639acf7).Merge each part only once its toggle is on in production
Each part has its own commits (the later ones are review-round fixes), so the parts can be merged, reverted or split separately.
core/fixtures/toggles.jsononmasteralready sets the first row's three toggles on for production. Before merging, confirm on production's/toggles/that the fixture is deployed.expansionEXPANSION_LOCKED_REPO_VERSION_TOGGLE,RESOURCE_VERSION_REPO_RESOLUTION_TOGGLE,INTENSIONAL_REFERENCE_RESOURCE_VERSIONS_TOGGLEREFERENCE_SEARCH_OPTIONS_TOGGLE(OpenConceptLab/oclapi2#1089, OpenConceptLab/oclapi2#1109): hold until it's on in production. The TBv3 notice sentence also needs OpenConceptLab/oclweb3#114 deployedresolved_repo_versionsreasoncodes, Copy HEAD's parametersEXPANSION_HEALTH_TOGGLE, off in production: hold or drop these commits until it's on. d47a1de also needs OpenConceptLab/oclapi2#1106 deployed, and the TBv3 badge sentence needs OpenConceptLab/oclweb3#113 deployed (both merged)What changes
collectionReferenceEvaluation.md, "Version Locking"evaluated_collection_versions).system-versiondoesn't reach them.reference.resource_versioninunresolved_repo_versions(also added to the list table).expansionislock,latestornone, with the default when it's omitted;lockandlatestevaluate every reference again, and HEAD's expansion isn't copied;lockputs HEAD's locked source versions intosystem-versionand carries HEAD's value-set locks over.expansion: lockkeeps its value-set versions, and its source versions throughsystem-version;head_resolved), every reason code (resource_versioned_referencesis information only, OQ-39),health_is_current(true, false and null), and that only the default expansion has health.expansions.mdexpansion: lockexception, a deletedsystem-versionentry, write-back, and comparing a similar expansion first.collections.md, "Create new version of a collection": theexpansioninput.collections.md, "Add a reference to a collection": a saved reference that adds nothing returnsresolved: false,reason,repo_versionsandmessage, with a table of the reason codes from OpenConceptLab/oclapi2#1073.collectionReferenceEvaluation.mdnow gives TBv3's name forexpansion: lockas Copy HEAD's parameters (OpenConceptLab/oclweb3#115).resolved_repo_versions: now described as what the default expansion recorded, with the fallback when there's none.Not in this PR
manage-references.md,manage-versions-and-expansions.mdand thetbv3/TODO.mdVERIFY item in OpenConceptLab/ocl-kb. There's no ocl-kb checkout on the machine this was written on, so those recheck items are still open.docs/source/oclapi/releases.mdhasn't had an entry since 2020, so these weren't added there. Suggested lines, for wherever release notes go now:resolved_repo_versionschanged meaning: a reference now shows the repository versions its collection version's default expansion recorded, not a fresh resolution. With no expansion, or nothing recorded, it resolves as before. (OpenConceptLab/ocl_online#577, not toggled.)EXPANSION_LOCKED_REPO_VERSION_TOGGLE.)Checks
#when-a-lock-carries-over,#expansion-health,#stage-3-search-filters-filters,#stage-4-cascade-cascadeand#stage-5-transforms-transforms. A review build with recommonmark confirmed them. Cross-page links stay plainpage.md, because recommonmark doesn't resolvepage.md#anchor.Sibling PRs from this session
built_with🤖 Generated with Claude Code