Skip to content

Core Loader, Compilation, and Definition Validation #410

Description

@BryanttV

Description

Implement the logic to read definition files (e.g., YAML), compile the rules in memory, and apply the early validations defined in the ADR. For now, the openedx-authz module will load its own definitions by pointing directly to its local path, setting the foundation for future extensibility.

Acceptance Criteria

  • Create the Loader function/class that receives a list of definition file paths.
  • Implement early validation: detection of duplicate identifiers, unsupported scope types, and broken references.
  • Define and implement error handling: specify whether the application fails on startup (Fail Fast) or if the invalid file is skipped leaving a critical error log.
  • The openedx-authz module successfully loads its own roles/permissions by passing its static path to the Loader.

Proposed ADR: #421

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

willowReleased in Willow

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions