Support Lead TA course role#402
Open
alxstx wants to merge 1 commit intoberkeley-cdss:mainfrom
Open
Conversation
|
✅ @alxstx — Superconductor finished — View implementation | App Preview You're out of extra usage on your Claude plan. You can wait until 12:10am (UTC), or add more extra usage at https://claude.ai/settings/billing |
Contributor
Author
|
Closing because this PR should be opened against cs169/flextensions first. |
Contributor
Author
|
Reopening — corresponding upstream PR is now open at cs169#350. |
43dfef3 to
2f51943
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
Added Lead TA as a supported staff/course-admin role across course authorization and dashboards
Added Canvas custom role mapping so internal leadta sync uses enrollment_role=Lead TA while built-in roles keep enrollment_type[]
Updated course import filtering to recognize Canvas Lead TA enrollments as staff courses
Updated course and enrollment tables to display Lead TA with a readable label
Added regression tests covering Lead TA role support, import behavior, enrollment sync, and Canvas query parameters
Testing
Run bundle exec rspec spec/models/user_to_course_spec.rb spec/models/course_spec.rb spec/controllers/courses_controller_spec.rb spec/facades/canvas_facade_spec.rb for Lead TA role tests
Run the full rspec test suite to verify no regressions
Run bundle exec rubocop app/models/user_to_course.rb app/models/course.rb app/controllers/courses_controller.rb app/facades/canvas_facade.rb spec/models/user_to_course_spec.rb spec/models/course_spec.rb spec/controllers/courses_controller_spec.rb spec/facades/canvas_facade_spec.rb to verify changed Ruby files
Documentation
No documentation needed
Checklist