Files
pangolin/server/routers
copilot-swe-agent[bot] 5428bf4ed0 fix: preserve rule IDs when saving policy rules through the GUI
The `setResourcePolicyRules` endpoint was deleting all existing rules and
re-inserting them on every save, causing all ruleIDs to change.

Backend: Accept an optional `ruleId` per rule in the request body and
perform an upsert — update existing rules (matched by ruleId), insert
new ones (no ruleId), and delete only rules absent from the incoming list.

Frontend: Include `ruleId` in the rules payload for existing (non-new)
rules so the backend can match and preserve them.
2026-06-26 14:37:34 +00:00
..
2026-06-23 12:22:47 -04:00
2026-06-23 12:22:47 -04:00
2026-06-23 12:22:47 -04:00
2026-02-11 10:06:56 -08:00
2026-06-24 11:54:56 -04:00
2026-05-14 16:59:15 -07:00
2026-06-24 15:50:54 -04:00
2026-06-24 14:13:11 -04:00
2026-04-16 20:58:18 -07:00
2026-06-23 12:22:47 -04:00
2026-06-03 20:14:43 +02:00
2026-06-23 12:22:47 -04:00
2026-05-29 15:23:40 -07:00