Skip to content

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
masterfrom
OpenConceptLab/ocl_issues-3004-expansion-marks-toggle
Open

paynejd wants to merge 2 commits into
masterfrom
OpenConceptLab/ocl_issues-3004-expansion-marks-toggle

Conversation

@paynejd

@paynejd paynejd commented Dec 3, 2026 •

Copy link
Copy Markdown
Member

Advances OpenConceptLab/ocl_issues#3004 and OpenConceptLab/ocl_issues#3009.

A new toggle, EXPANSION_MARKS_TOGGLE, that the web app reads from GET /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.

  • On in dev, QA and staging. Off in production, demo and WHO staging.
  • Nothing in the API reads it. The API's own health work keeps EXPANSION_HEALTH_TOGGLE, which is turned on at another time.
  • Id 16, because other open branches use 13 and 15, and the fixture is loaded by id.

To turn the marks on in production later, set production to true in core/fixtures/toggles.json.

Tests: core.toggles passes 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

…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
@paynejd
paynejd requested a review from snyaggarwal December 3, 2026 05:11
@paynejd

paynejd commented Dec 3, 2026

Copy link
Copy Markdown
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
@paynejd

paynejd commented Dec 3, 2026

Copy link
Copy Markdown
Member Author

Simplification review (Claude subagent, commit cf440f9): one item. The new test checked each environment twice. Applied in 27d9d9d: it now checks the toggle's row once, for all six. core.toggles passes and Pylint is clean.

@snyaggarwal snyaggarwal left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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, which pre_startup.sh loads on every container start through load_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 False default. 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 through Toggle.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

No deployments
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