Skip to content

Priority resolution for category, permission, and role definitions #525

Closed

Description

@rodmgwgu

When two yaml files define the same category, permission, and role with different metadata, one with priority 100 and the other priority 200 for example, the load_authz_schema command rejected the definitions during validation. The compiler behavior and its test expect priority 200 to win, while the ADRs and schema reference do not specify priority behavior for conflicting base definitions.

This behavior was seen during the Acceptance run for #446, as seen here: https://github.com/eduNEXT/openedx-authz/blob/MJG/pipeline-stack-testcases/scripts/schema_acceptance/TEST_REPORT.md

We should define what's the expected behavior for this kind of base definitions when this happens and implement it.

Acceptance Criteria

  • A new ADR is written specifying the desired behavior for base definitions with different priorities
  • Code is updated to reflect the ADR agreements.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

willow

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions