Refactor instructor privilege APIs to reduce granularity #11458
Labels
a-Scalability
Behaviour at increasing/decreasing loads
c.Task
Other non-user-facing works, e.g. refactoring, adding tests
p.Urgent
Would like to handle in the very next release
Current: the instructor privilege-related APIs work in a granular way, e.g. only fetch/update course-level, section-level, or session-level privileges depending on the query parameters passed.
teammates/src/main/java/teammates/ui/webapi/GetInstructorPrivilegeAction.java
Lines 137 to 145 in b61a89f
teammates/src/main/java/teammates/ui/webapi/UpdateInstructorPrivilegeAction.java
Lines 51 to 67 in b61a89f
Problems:
teammates/src/web/app/pages-instructor/instructor-course-edit-page/instructor-course-edit-page.component.ts
Lines 566 to 615 in b61a89f
teammates/src/web/app/pages-instructor/instructor-course-edit-page/instructor-course-edit-page.component.ts
Lines 706 to 745 in b61a89f
Solution:
Simplify the APIs to always fetch/update the entire permission object (thus the update behaving more like a PUT than a PATCH).
The text was updated successfully, but these errors were encountered: