Skip to content

Conversation

@jaredlockhart
Copy link
Collaborator

Becuase

  • With more experiments comes more collisions with multiple users pressing buttons quickly
  • We do not have strict requirements for each status transition form
  • This means things can be approved multiple times by multiple users concurrently
  • This can leave experiments in broken states if users collide
  • We should add strict conditions to every state transition form so a state transition can only occur once

This commit

  • Adds required entry states for every status transition form based on the states defined in the diagrams
  • Updates the UI to show more detailed information if a status collision occurs
  • Updates tests

fixes #14227

Copy link
Contributor

@yashikakhurana yashikakhurana left a comment

Choose a reason for hiding this comment

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

Thank you @jaredlockhart for adding this, I tried couple of scenario and seems that it is not allowing invalid states now 🎉

@jaredlockhart jaredlockhart force-pushed the 14227 branch 2 times, most recently from 8677ce8 to 958fe4d Compare January 6, 2026 21:04
Becuase

* With more experiments comes more collisions with multiple users pressing buttons quickly
* We do not have strict requirements for each status transition form
* This means things can be approved multiple times by multiple users concurrently
* This can leave experiments in broken states if users collide
* We should add strict conditions to every state transition form so a state transition can only occur once

This commit

* Adds required entry states for every status transition form based on the states defined in the diagrams
* Updates the UI to show more detailed information if a status collision occurs
* Updates tests

fixes #14227
@jaredlockhart jaredlockhart added this pull request to the merge queue Jan 7, 2026
Merged via the queue into main with commit f551fe5 Jan 7, 2026
17 checks passed
@jaredlockhart jaredlockhart deleted the 14227 branch January 7, 2026 17:49
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.

Stricter state transitions

4 participants