Organization-level and global event rules #24
No reviewers
Labels
No labels
breaking
bug
ci
dependencies
documentation
feature
security
skip-changelog
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
argus/frontend!24
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/19-org-global-rules"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #19
Frontend for argus/backend#21 (PR argus/backend#35). Stacked on #23 (base
feat/18-stale-threshold-rules).Changes
src/api/events.ts: rule helpers take aRuleScope({owner, repo}/{org}/{}for global) instead ofowner, repo;listEventRules(scope, inherited)adds?include_inherited=1;EventRule.scope/scope_label.EventRulesManager.vue: propsowner+repo,org, or none (global). On a project it lists its own rules, then "Règles héritées" (organization and global rules) read-only with their origin; a rule withoutscope(older backend) counts as a project rule. Organization/global headers explain what the rules apply to; the "événements levés" link stays project-only.GlobalRulesViewat/settings/event-rules("Réservé aux admins Argus" otherwise), linked in the header for Argus admins.src/__tests__/ScopedRules.spec.ts.Checks
pnpm run test:unit(97 passed),vue-tsc -b,pnpm run build.🤖 Generated with Claude Code
https://claude.ai/code/session_014BSmBtGWeFBD9z4mYm9SjA
📊 Rapports Argus pour cette PR