Repository navigation
OpenConceptLab/ocl_issues#3004 | EXPANSION_MARKS_TOGGLE: whether the web app shows an expansion's marks, off in production - #1115
Open
paynejd wants to merge 2 commits into
Conversation
…web app shows an expansion's marks, off in production Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AaZ4qVzyaMUV7QSvivXit7
Member
Author
|
Codex review, pass 1 (codex-cli 0.169.0, commit cf440f9) Verdict: clean. findings.json{
"reviewer": "codex-cli 0.169.0",
"perspective": "defects",
"mode": "full",
"commit": "cf440f98",
"verdict": "clean",
"prior": [],
"findings": []
} |
…ent once Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AaZ4qVzyaMUV7QSvivXit7
Member
Author
snyaggarwal
approved these changes
Dec 4, 2026
snyaggarwal
left a comment
Contributor
There was a problem hiding this comment.
Approve. Merge order: this PR first, then OpenConceptLab/oclweb3#122. Either order is safe, because the web app treats a missing toggle as off. Merging this first means dev, QA and staging show the marks as soon as #122 deploys.
Checked:
- Defined and seeded like the other toggles. It's a row in
core/fixtures/toggles.json, whichpre_startup.shloads on every container start throughload_fixtures. No migration is needed. Id 16 is free: master ends at 14, and #1110 uses 15. - Per environment. On in dev, QA and staging. Off in demo, WHO staging and production. All six environments are named explicitly, unlike the older rows that leave demo and WHO staging to the model's
Falsedefault. Because the fixture is reloaded on every deploy, turning it on in production is a code change, as the PR body says. - Exposed the same way as the other toggles. It's active, so
GET /toggles/returns it throughToggle.to_dict()with the current environment's value. The API doesn't read it. - No commercial logic. CI is green.
Nit, not blocking: the marks read the health the API computes under EXPANSION_HEALTH_TOGGLE. In an environment where the marks were on and health was off, every expansion would show as not checked. Today's values keep the marks inside the health environments, and so does #1126. A test asserting that the marks' environments are a subset of the health environments would keep it that way.
This branch has not been deployed
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.
Advances OpenConceptLab/ocl_issues#3004 and OpenConceptLab/ocl_issues#3009.
A new toggle,
EXPANSION_MARKS_TOGGLE, that the web app reads fromGET /toggles/. It decides whether TBv3 shows an expansion's health marks, its repo versions as chips, and the panel of newer releases. The web app's change is its own PR in oclweb3, and the two can be deployed in either order: an API without the entry counts as off.EXPANSION_HEALTH_TOGGLE, which is turned on at another time.To turn the marks on in production later, set
productiontotrueincore/fixtures/toggles.json.Tests:
core.togglespasses with a new test that names the environments it is on in. Pylint is clean.🤖 Generated with Claude Code
https://claude.ai/code/session_01AaZ4qVzyaMUV7QSvivXit7