You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Remove deprecated course/library aliases from the scopes endpoint #536
GET /api/authz/v1/scopes/ changed its scope_type query parameter values from course/library to course-v1/lib. The old values are still accepted as deprecated aliases so the change is not breaking while the Admin Console migrates. Once the Admin Console uses the new values, the aliases are dead code and should be removed so the API exposes a single set of values.
Current Behavior
GET /api/authz/v1/scopes/ accepts scope_type=course-v1 and scope_type=lib, and also accepts scope_type=course and scope_type=library as deprecated aliases.
Expected Behavior
GET /api/authz/v1/scopes/ accepts only scope_type=course-v1 and scope_type=lib. Requests with course or library are rejected as invalid values, the same way /roles/ already behaves.
Acceptance Criteria
The course and library aliases are removed from the scope_type handling in GET /api/authz/v1/scopes/.
Requests with scope_type=course or scope_type=library return a validation error.
Requests with scope_type=course-v1 and scope_type=lib keep working.
Tests for the deprecated aliases are removed and tests for their rejection are added.
API documentation, docstrings, and the relevant ADR no longer mention the aliases.
The removal is noted in the changelog as a breaking change.
Dependencies
Blocked by the Admin Console migration to course-v1/lib (#535).
Activity
scope_typevalues (course-v1/lib) #535feat!: remove deprecated course/library aliases from scopes endpoint
feat!: remove deprecated course/library aliases from scopes endpoint