mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-07 16:03:21 +00:00
A permissions save ran its whole plan against the data table's database before writing the config, so an opt-out or a role removal that failed on the Windmill side afterwards rolled the config back with the roles already gone and their grants discarded. Only the creates and renames run there now; the drops run once the config that no longer names them has committed, skipped if another save has landed in between. The rename's `group_` rewrite moves after the settings row for the same reason the rest of it did: group deletion takes them in that order, and the two overlapping was a deadlock. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01S5arH3G2Sa1Qqm32veJQ1n