-
Notifications
You must be signed in to change notification settings - Fork 18
Migrate projects data to organizations and rename table #730
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: maebeale <7607813+maebeale@users.noreply.github.com>
Co-authored-by: maebeale <7607813+maebeale@users.noreply.github.com>
Co-authored-by: maebeale <7607813+maebeale@users.noreply.github.com>
Co-authored-by: maebeale <7607813+maebeale@users.noreply.github.com>
bb1d686 to
cacbfeb
Compare
|
@copilot can you find any more examples in the code that still refer to Project, ProjectStatus, ProjectObligation (ignoring old migrations) ? |
Co-authored-by: maebeale <7607813+maebeale@users.noreply.github.com>
Found and updated the remaining references in commit 52c7584: Files updated:
Ignored references:
All active code now uses Organization, OrganizationStatus, OrganizationObligation, and OrganizationUser. |
What is the goal of this PR and why is this important?
This PR completely replaces the Project model and related components with Organization naming throughout the codebase. This change was needed because Projects were actually a form of Organization, but this wasn't realized initially when the system was designed.
How did you approach the change?
The migration involved a comprehensive rename across the entire application:
Database Layer:
projects→organizations,project_statuses→organization_statuses,project_obligations→organization_obligations,project_users→organization_usersApplication Layer:
Project→Organization,ProjectStatus→OrganizationStatus,ProjectObligation→OrganizationObligation,ProjectUser→OrganizationUserProjectsController→OrganizationsController,ProjectStatusesController→OrganizationStatusesController,ProjectUsersController→OrganizationUsersControllerViews and UI:
Testing and Data:
lib/tasks/dev.rake(renamedimport_projectstoimport_organizations) andlib/tasks/story_data.rakedb/seeds/dummy_dev_seeds.rbto use Organization referencesFiles Deleted:
Anything else to add?
db/archived/directory were intentionally left unchanged as they are historical recordsOriginal prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.