Skip to content

Remove withinSubjectExperimentSupportToggle and errorLogsToggle frontend env vars - #3406

Merged
bcb37 merged 1 commit into
devfrom
chore/remove-frontend-env-toggles
Oct 28, 2026
Merged

bcb37 merged 1 commit into
devfrom
chore/remove-frontend-env-toggles

Conversation

@bcb37

@bcb37 bcb37 commented Oct 27, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Removes the withinSubjectExperimentSupportToggle and errorLogsToggle fields from Environment, RuntimeEnvironmentConfig, and every environment*.ts file.
  • UpsertExperimentModalComponent: Within Subjects is now part of the unitOfAssignments array from the start, so it no longer gets pushed in the constructor based on the toggle. The ENV injection was only there for this toggle, so it's removed too.
  • errorLogsToggle had no remaining consumers.

Behavior change: prod, bsnl and demo will now show Within Subjects in the Unit of Assignment dropdown. Before, only staging and qa showed it.

Test plan

  • yarn workspace upgrade-frontend typecheck
  • Open the create-experiment modal and check that Within Subjects is listed under Unit of Assignment

🤖 Generated with Claude Code

…end env vars

Within Subjects is now always offered as a unit of assignment in the
upsert experiment modal. errorLogsToggle had no remaining consumers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@bcb37
bcb37 requested review from danoswaltCL and a balanced review from Copilot October 27, 2026 20:17
@bcb37
bcb37 requested a review from zackcl October 27, 2026 20:18

Copilot AI 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.

🟢 Approval recommended

No active review issues block the removal of obsolete environment toggles and the availability of Within Subjects assignment across environments.

No open issues 🎉

What changed in this PR

Removes two obsolete frontend environment toggles and makes Within Subjects assignment available in the experiment modal across all environments.

Changes:

  • Removes withinSubjectExperimentSupportToggle and unused errorLogsToggle from environment types and configuration files.
  • Adds Within Subjects directly to the assignment options, enabling it in production, BSNL, and demo.
  • Removes the modal’s now-unneeded environment injection and conditional initialization.
File Description
packages/​frontend/​projects/​upgrade/​src/​environments/​environment.ts Removes both toggles from default configuration.
packages/​frontend/​projects/​upgrade/​src/​environments/​environment.staging.ts Removes both toggles from staging configuration.
packages/​frontend/​projects/​upgrade/​src/​environments/​environment.qa.ts Removes both toggles from QA configuration.
packages/​frontend/​projects/​upgrade/​src/​environments/​environment.prod.ts Removes both toggles from production configuration.
packages/​frontend/​projects/​upgrade/​src/​environments/​environment.local.example.ts Updates the local configuration example.
packages/​frontend/​projects/​upgrade/​src/​environments/​environment.demo.prod.ts Removes both toggles from demo configuration.
packages/​frontend/​projects/​upgrade/​src/​environments/​environment.bsnl.ts Removes both toggles from BSNL configuration.
packages/​frontend/​projects/​upgrade/​src/​environments/​environment-types.ts Removes toggle fields from build-time and runtime interfaces.
packages/​frontend/​projects/​upgrade/​src/​app/​features/​dashboard/​experiments/​modals/​upsert-experiment-modal/​upsert-experiment-modal.component.ts Always includes Within Subjects and removes environment-dependent initialization.

Review effort: Balanced

@bcb37
bcb37 merged commit 9e6bf16 into dev Oct 28, 2026
7 checks passed
@bcb37
bcb37 deleted the chore/remove-frontend-env-toggles branch October 28, 2026 14:37
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.

3 participants