Skip to content

Wait for profile tag saves and preserve selections on failure - #208

Open
glwhappen wants to merge 5 commits into
ProxyShard:mainfrom
glwhappen:fix/team-profile-tag-save-confirmation
Open

glwhappen wants to merge 5 commits into
ProxyShard:mainfrom
glwhappen:fix/team-profile-tag-save-confirmation

Conversation

@glwhappen

Copy link
Copy Markdown

The profile editor could close and display Saved before its queued tag request reached the backend. If a tag creation failed, an assignment could still use its provisional ID. A failed assignment could also leave no editor draft to retry.

The create and edit forms now wait on the tag queue's confirmation. A failure keeps the original tag selection and the saved profile's ID. A retry uses the original team tag delta, preserving unrelated changes from teammates. A successful tag creation supplies the ID used by the assignment. A rejected creation leaves the proposed ID available for a retry and never reaches assignment. A pending Folder move comes after the tag writes.

This builds on #190 and #206. The follow-up changes alone are in the tag confirmation commit.

The regression tests hold and reject a team assignment, add a teammate's tag before the retry, and verify only one settings write. They also check that editing resumes on the already created profile after a failed tag creation and that assignment uses the acknowledged tag ID.

The integrated build passed 76 Chrome regressions and the checked-write unit tests. Frontend checks passed.

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.

1 participant