Repository navigation
OpenConceptLab/ocl_issues#3009 | Say why new releases are offered, and compare before rebuilding - #114
Conversation
…ions show the API's expansion health, with its reasons in the details dialog
…a lock is on HEAD or a retired release, and offers Create similar and an expansion compare before Rebuild
…hows health, unknown states show as given, and deleted locks are plain text
|
Review round 1: verdict "changes needed" This was a high-effort review of this PR's own diff (stacked on #113), checked against
Not changing:
Fixes follow in the next commit. |
…es are merged in
…rks versions a reference or system-version pins as kept by a rebuild, and compares only finished expansions
…current version summary beats a stale loaded expansion, and es and pt-BR have their many plurals
|
Review round 2: verdict "changes needed" Round 1's fixes check out:
Fixes follow in the next commits. |
…es are merged in # Conflicts: # src/i18n/locales/es/translations.json # src/i18n/locales/pt-BR/translations.json
…eps, and system-version entries given as version URLs, count as pinned; a retired never-released version is called unreleased
… a version's health comes from its default expansion and is never older than its summary
…es are merged in
…it and how to move it, and a repository's bare URL in system-version isn't a pin
|
Review round 3: verdict "approve with nits" Round 2's fixes check out:
|
…ts cached rows' expansions, a failed fetch keeps them, and a refresh shows them instead of a spinner
paynejd
left a comment
There was a problem hiding this comment.
Review lead (Claude, for Jon), round 1
This is a comment, not an approval. The ticket's ACs include Jon's review of the wording and the flow, which he gives separately.
Thanks, Sunny. I checked this PR's own changes (982792fd...8c8689d7) against oclapi2 master, and the open #1060 for built_with. The case logic, the deleted-lock line from health, the pinned explanations and the released-version nudge do what the ticket asks. All four locales have the new strings, and CI is green.
Three fixes:
- After a rebuild, the panel can keep the pre-rebuild updates.
fetchedRepoUpdatesRefrecords each expansion URL once and is never cleared, and the refresh after a rebuild re-reads onlyexpansions/.- A rebuild that moves a HEAD lock to v2 keeps the same expansion URL, so the cached
{HEAD → v2}is classified again, and the panel still offers a rebuild. - Drop the URL from
fetchedRepoUpdatesRef, and its cached updates, when that expansion finishes rebuilding, so they're fetched again.
- "Compare with" opens on identical numbers.
- The link sets no
metric, so Compare Versions opens on Statistics, which reads the collection version's summary. Both sides are the same version, so both columns match. metric=contentopens the expansion comparison (suggestion inline).
- The link sets no
- A resource-versioned reference is called pinned, but a rebuild moves it.
- A reference with
system,codeandresource_versionbut no repo version records its source version in the explicit list, sogetReleaseUpdatesmarks itpinned: 'reference', and the panel says a rebuild keeps it. - On a rebuild, the API clears the lists and
find_repo_version_with_resource_versionpicks the newest release holding that concept version, so the repo version moves even though the concept version stays. - Only a reference that names the repo version itself keeps it. Treat the resource-versioned ones as movable, or word them so they promise nothing.
- A reference with
One for the API, not this PR: a system-version entry that names a version by its relative URL (/orgs/O/sources/S/v1/) stops resolving once v1 is retired.
- The direct-URI lookup filters
retired=False, so a rebuild drops that pin and the references resolve to the newest release. Theurl|v1form keeps it. - The panel marks both forms as kept by a rebuild. Until the API keeps the relative form too, either leave it out of
isNamedInSystemVersion, or don't promise it.
Notes, no action needed:
- With
built_withabsent, as on any API without #1060, a lock-built expansion's value-set locks are offered for a rebuild that wouldn't move them. So #1060 should deploy first. getDeletedLocksreads the reason whateverhealth_is_currentis, so between a rebuild and the next health check, the panel can still show a deleted lock the rebuild has cleared. Checkinghealth_is_current === truewould avoid that.getComparableExpansiontakes the newest finished expansion made after this one, which may not be the one Create Similar made when two people work on the version.
| const params = new URLSearchParams({ | ||
| version1: versionURL, version2: versionURL, expansion1: expansion.url, expansion2: other.url, | ||
| }) |
There was a problem hiding this comment.
Without metric, Compare Versions opens on Statistics, which shows the same collection version's summary on both sides. This opens the expansion comparison:
| const params = new URLSearchParams({ | |
| version1: versionURL, version2: versionURL, expansion1: expansion.url, expansion2: other.url, | |
| }) | |
| const params = new URLSearchParams({ | |
| version1: versionURL, version2: versionURL, expansion1: expansion.url, expansion2: other.url, metric: 'content', | |
| }) |
There was a problem hiding this comment.
Applied in 2cbfe20, and the compare-URL test checks for metric=content.
paynejd
left a comment
There was a problem hiding this comment.
Review lead (Claude, for Jon), round 1, from screenshots
Sunny, three code fixes came out of screenshots of this branch at 8c8689d. It was a production build with every API call mocked in the stored health shape. Jon's visual and copy calls go to him separately; these are code.
- Two "Default" labels after Create similar.
ExpansionRowListshows Default forexpansion.default || expansion.auto, andformatExpansionsmarks the newest expansion of an autoexpand version asauto.- So once Create similar makes a newer expansion, it shows Default next to the real default.
- The code is older than this PR, but this PR's Create similar → Compare flow now leads people into it. Label Default only for
expansion.default, the version'sexpansion_url.
- The panel's rows are cut at 390px. The expansion rows keep a grid about 560px wide inside the table, so lines end mid-word ("CIEL / CIEL:HE…") and scroll sideways inside the table. Let them wrap on small screens.
- "(Compare ↗ )" has a gap before the closing bracket. The link is
inline-flexwithgap: '2px', so the gap also sits between the icon and the ")".
One more for #113's dialog: see the comment there about the Members list.
…nger retried in a loop, and the Health dialog counts members per resource type
…e expansions retry loop and per-type member counts
…ild, Compare opens the expansion comparison, and only what a rebuild keeps is promised
|
Thanks. Everything from round 1 (review, screenshots) is in 2cbfe20, on top of #113's fixes, merged in (9c32a5a). CI is green. The three fixes:
system-version by relative URL: a version URL entry counts as pinned only while that version isn't retired, so a retired one is offered as movable. The From the screenshots:
Optional, taken: I checked these with unit tests (245 pass), lint and a production build. They aren't rendered against a live API, so the 390px layout isn't checked on screen. |
…is no longer promised to survive a rebuild
|
Following up on round 1 and OpenConceptLab/ocl_online#769's second case, a reference whose
The API fix is OpenConceptLab/oclapi2#1065. Once it's deployed, both this case and the retired |
…n an information colour, apart from unreleased, retired and reference-named versions Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… rebuild can change its members, and its button no longer looks disabled Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… health chip; each named problem gets its own, and Uses HEAD and No members are neutral Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…d problem, the neutral facts and Unsupported filter Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… Create Version choice Copy HEAD's parameters Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Review lead (Claude, for Jon), round 3, head d297896. Verdict: the settled parts are met, with two display defects to fix. Still held for Jon's call on what Rebuild does on HEAD (OQ-5), and it needs a merge of its base first. Met
Left
CI: Lint and test pass. |
…bels, with the count after them Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… keep their slash, and a retired version's line states only that it was retired Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ithin the visible width of the versions table, so the notice wraps on a phone Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s health chips beside the release notice imports Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Review lead (Claude, for Jon), round 4, head b199a66. Verdict: the settled parts are ready. Still held for Jon's call on what Rebuild does on HEAD (OQ-5). All four round-3 points are fixed, and I checked each on screen with mocked data.
Answers 2 and 3 stay met: newer versions per repository in an information colour, the unreleased and named-by-reference lines, no closing line, "A rebuild can change its members", a normal-coloured Rebuild button, and the nudge naming "Copy HEAD's parameters". CI: Lint and test pass. |
…upported-filter chips put the count after the label, like the others Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…list of repo chips marked explicit, evaluated and locked; health lists use repo chips Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nd its chip Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…versions column beside the rebuild confirmation's notice lock Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…section's comment Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…epo version chips and main's rebuild notice lock beside the release panel Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…calculates the expansion's locks, except where they were copied from HEAD Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nformation: a neutral chip after the problems, under their own heading in the details Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Review at 1e67f94: changes needed. No crash or data bug, but two statements on screen can be false. Update: 1, 2 and 4 are fixed in 3c055ef, so only nits are left: approve with nits. The fixes haven't had a second review. An independent pass over the whole diff, with most attention on what changed since the round 4 verdict from @paynejd. I checked 1 and 2 against oclapi2
Pre-existing: the stale-expansion icon opens the Rebuild dialog for people who can't edit. The API refuses the rebuild. Fine: a rebuild on HEAD recalculates locks, and Copy HEAD's parameters versions keep theirs outside of 4. Released versions can still be rebuilt, with the notice; Compare appears once there is a newer expansion to compare with. Languages, refetching after a rebuild and the compare page are fine. 340 tests passed at 1e67f94, and 347 pass at 3c055ef, which has #113 merged in at c736d7c. |
…, shown only where HEAD's locking or a rebuild keeps the version; no left indent Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ows what a rebuild keeps; the panel's line says versions come from references that name a version Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Ticket: OpenConceptLab/ocl_issues#3009 · Epic: OpenConceptLab/ocl_issues#2942
Stacked on #113 (the health badge and the repo version chips). It uses that PR's
expansionHealth.jsandexpansionRepoVersions.js. Review and merge #113 first; this PR's diff is against that branch.Deploy order
resolved-repo-updatesleaves out every version a rebuild keeps, so the panel offers every update the API lists.REFERENCE_SEARCH_OPTIONS_TOGGLEon in production before this PR deploys there (launch lead, Dec 2). Until then, a rebuild can empty some search references, and this PR invites rebuilds.What changes
The release updates panel under an expansion (editors only, as before) is now
ReleaseUpdatesPanel.resolved-repo-updatesreports:locked_version_deleted, the panel shows the named versions and the count of private ones, even when no newer release exists.expansion_url). On a phone, the repo versions go under the expansion.compare-versionsacceptsexpansion1andexpansion2URL parameters. Picking another version or expansion on the page drops them. Without them it behaves as before.Known limits
system-versionnames by a URL only the URL registry knows isn't matched, so the note can say it may move.EXPANSION_LOCKED_REPO_VERSION_TOGGLEoff.Not done here
Tests
releaseUpdates.test.jscovers the cases from the recorded lists and from a URL alone, every listed update being offered, deleted locks, what a rebuild does to the locks, which versions get the released notice, which expansion is offered for comparison, the compare URLs, and every string in four locales.npm test347 pass, eslint (npx eslint src --ext js,jsx) is clean, and CI passes.Related
resolved-repo-updatesleaves out what a rebuild keeps🤖 Generated with Claude Code