Edits to multivariate features in live experiments are not fully restricted

Open
#8,766 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
38/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
python, react
Domain
api, backend, frontend

Research direction

The issue names no files. Start by finding where multivariate option validation runs today, which the issue says happens only in the frontend at environment level, and where a feature's participation in a live experiment is determined. The work adds a server-side rejection for new options and variant-key edits on such features, plus a matching frontend block. Done means the API returns an error for adding an option to a feature in a live experiment, and the UI prevents it. The scope question in the issue (edits, removals, variant keys) is still open, so confirm it with maintainers first.

Written by the indexing model from the issue text.

Description

Currently, option validation only happens in the frontend, at the environment level. There's nothing restricting the users from adding a new multivariate option to a feature participating in an ongoing experiment.

To scope/confirm: should apply to option edits (including variant key via API), removals.

Acceptance criteria
  • API rejects adding new multivariate options to features if they are part of a live experiment.
  • FE disallows adding new multivariate options to features if they are part of a live experiment.
Dominant language
Python
Stars
9.9k
Forks
658
Avg merge
1d 15h
Merged PRs (30d)
168

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Flagsmith/flagsmith

All issues in Flagsmith/flagsmith

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.