mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-10-30 16:17:25 +00:00
feat: per-role fork capability and fork role mapping on rulesets (#12054)
* feat: fork capability per role and fork role mapping on rulesets Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: keep unset fork for unrestricted roles and apply fork role mapping to fork-owner adds Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat: fork_roles feature usage telemetry Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: derive an unset fork in the role editor as the server does Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * chore: update ee-repo-ref to d535972f0b35c6a7f257720816bdaec18465adef This commit updates the EE repository reference after PR #929 was merged in windmill-ee-private. Previous ee-repo-ref: 4a8d59cd1563382fcec85b1367f7e15e09bc13c2 New ee-repo-ref: d535972f0b35c6a7f257720816bdaec18465adef Automated by sync-ee-ref workflow. --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: windmill-internal-app[bot] <windmill-internal-app[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
windmill-internal-app[bot]
parent
e3b4dcffbc
commit
ca8f0a16c1
@@ -238,3 +238,14 @@ describe("protection-rules.yaml read/write", () => {
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
describe("fork_role_mapping", () => {
|
||||
test("a changed mapping is an update, an empty one is no change", () => {
|
||||
const local = { ...rule("forks", []), fork_role_mapping: { operator: "developer" } };
|
||||
const plan = ProtectionRulesConverter.computePlan([local], [rule("forks", [])]);
|
||||
expect(plan.toUpdate.map((e) => e.name)).toEqual(["forks"]);
|
||||
|
||||
const empty = { ...rule("forks", []), fork_role_mapping: {} };
|
||||
expect(ProtectionRulesConverter.entriesEqual(empty, rule("forks", []))).toBe(true);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user