Skip to content

Reject deleted tags on Team profile edits - #209

Open
glwhappen wants to merge 2 commits into
ProxyShard:mainfrom
glwhappen:fix/team-live-tag-attachments
Open

glwhappen wants to merge 2 commits into
ProxyShard:mainfrom
glwhappen:fix/team-live-tag-attachments

Conversation

@glwhappen

Copy link
Copy Markdown

When a teammate deletes a tag, the Team registry changes while profile revisions stay current. A profile editor can then submit a valid revision and attach the deleted tag. The launcher hides the resulting association, even though the write succeeded.

  • Validate newly attached tag IDs inside the existing Team profile write transaction, after permissions, revision and lease checks. Refuse the whole write with 400 bad_tag if an added ID is unavailable.
  • Preserve existing references so restoring a tag restores its associations. Keep snapshot-style creation and Personal sync compatible.
  • Refresh the launcher’s tag registry after bad_tag, localize the error and keep unavailable selections removable from an open form.

The HTTP regression deletes a tag before a pending profile write and checks that the revision, card and settings remain intact. It also covers legacy associations, restoration and the Personal sync ordering. The browser regression removes a deleted selection and saves another selected tag.

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