Repository navigation
Fix stale rollout form checks and clarify enrolled users - #45
Merged
Merged
Conversation
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
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.
Summary
with_feature, before any modifications, rather than checking a separate potentially staleget. Abort conflicts without saving feature state or history; retain timestamp validation for legacy forms.Cache-Control: no-storeon feature responses and document concurrency guarantees and admin cache configuration.Why
A seconds-resolution
updated_atmisses distinct edits in the same second and changes made outside the UI. Checking before the mutation also leaves a race and can compare against cached state rather than the state being edited. Stale full-form submissions must not silently replace newer enrollments.This is the rollout-ui portion of the fix. Applications must separately supply uncached admin reads;
no-storedoes not bypass a server-side adapter cache. The companion fetlife-web change keeps normal runtime checks cached while making admin reads authoritative.Compatibility and limits
last_updated_atfallback, now checked inside the mutation. Legacy timestamps still cannot distinguish same-second edits.Verification
bundle exec rspec: 95 examples, 0 failures (29 added examples).node --check lib/rollout/ui/public/js/user-selector.jsandgit diff --check: passed.The suite covers same-second edits, external changes to every editable field, validation against mutation state, legacy compatibility, malformed fingerprints, mounted redirects, logging-disabled behavior, and unchanged state/history on rejection.