Refactor: Rename UserToCourse to Enrollment (Fable 5)#491
Merged
cycomachead merged 1 commit intoJul 4, 2026
Merged
Conversation
Rename the UserToCourse model, table, and associated controllers to Enrollment to better reflect the domain logic. This includes updating database schema, routes, associations, and test suites to use the new naming convention. Co-authored-by: Claude Code <noreply@anthropic.com>
cycomachead
deleted the
cycomachead/163-refactor-usertocourse-to-enrollment/2
branch
July 4, 2026 03:22
superconductor-for-github Bot
pushed a commit
that referenced
this pull request
Jul 4, 2026
Slack conflict in Request#process_update resolved by keeping the notify_slack helper (main's stale tail would have double-sent the message and reintroduced the false "Failed to send Slack notification" log); its 1:1-style course.course_settings access lives in notify_slack, which auto-merged. Renamed UserToCourse to Enrollment in branch-only code (sandbox harness, new specs) and deduplicated staff_user_for_auto_approval specs again. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
20 tasks
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.
General Info
Changes
Renames the
UserToCoursemodel, table, and all associated references toEnrollmentthroughout the codebase. The previous name was an implementation detail that didn't reflect domain language —Enrollmentis clearer and more idiomatic.Specifically, this includes:
user_to_coursestable toenrollments; schema updated accordinglyUserToCourse→Enrollment,user_to_coursesassociations →enrollmentson bothCourseandUserUserToCoursesController→EnrollmentsController; all references toUserToCourseupdated acrossCoursesController,RequestsController,SessionController,CanvasFacade, and the API controllersresources :user_to_courses→resources :enrollmentsuser_to_course→enrollment):user_to_course→:enrollment), and all inline referencesTesting
Existing test suite covers the renamed model and controller. All specs and Cucumber step definitions have been updated to use the new naming. No behavioral changes were made — this is a pure rename refactor.
Documentation
No external documentation changes required. Code comments referencing
UserToCoursehave been updated inline.Checklist
Superconductor Ticket Implementation | App Preview | Guided Review