Skip to content

Protect concurrent moves during team folder operations - #192

Open
glwhappen wants to merge 2 commits into
ProxyShard:mainfrom
glwhappen:fix/team-folder-source-guards
Open

glwhappen wants to merge 2 commits into
ProxyShard:mainfrom
glwhappen:fix/team-folder-source-guards

Conversation

@glwhappen

Copy link
Copy Markdown

Changes

  • Check each profile against the original folder before unfiling it, moving it in a legacy rename, or sending it to the team Trash. Use the current revision to keep that check valid through the write.
  • Limit sidebar trashing to the profiles the user confirmed. The final cleanup asks the server to delete an empty folder, so a profile that arrives during the operation stays filed.
  • Report the number of profiles actually changed and surface a refusal when a new arrival keeps a folder from being deleted.

Verification

  • All 37 Linux launcher tests for team writes, folders, and permissions passed. Four new server-backed cases cover the source check, a move between the check and write, rename fallback, and arrivals during deletion. Actions run
  • All 56 Windows Chrome cases for folders and Trash passed across the broad run and a focused rerun. The existing permission case passed six consecutive runs with explicit picker readiness. Both new folder regressions failed against the previous code and passed with this change.
  • TypeScript, focused lint, error display checks, and 106 unit tests on an LF checkout 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