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
Migrate Admin Console to the new scope_type values (course-v1/lib) #535
GET /api/authz/v1/scopes/ now expects the scope_type query parameter values course-v1 and lib, replacing the previous course and library. To avoid a breaking change, the API still accepts the old values as deprecated aliases. The Admin Console must stop sending the old values so those aliases can be removed from the API.
Current Behavior
The Admin Console calls GET /api/authz/v1/scopes/ with scope_type=course or scope_type=library. These requests only work because of the deprecated aliases kept in the API.
Expected Behavior
The Admin Console sends scope_type=course-v1 or scope_type=lib on every request to GET /api/authz/v1/scopes/, and no longer relies on the deprecated aliases.
Acceptance Criteria
No call to GET /api/authz/v1/scopes/ in the Admin Console uses scope_type=course or scope_type=library.
The Admin Console uses course-v1 and lib wherever it builds the scope_type parameter.
Any Admin Console code, constants, or mocks that reference the old values are updated.
Tests are updated to use the new values.
The change is released so the API aliases can be removed (see the related issue).
Notes or Additional Context
GET /api/authz/v1/roles/ does not accept the aliases and uses the scope_types parameter with course-v1 and lib. Check that the Admin Console already uses those values there.
Dependencies
Blocks the removal of the deprecated course/library aliases in openedx-authz.
Activity