-
Notifications
You must be signed in to change notification settings - Fork 4
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
Refactor back-end for chapter assignments #5024
Comments
Hey team! Please add your planning poker estimate with Zenhub @shaun-technovation @viviancan |
I have the majority of the refactoring done, just working on a few loose ends, which I plan to wrap up on Monday. Since I have a pretty big PR open/in progress, I created two spin-off tickets for some mostly independent, but related work:
There might be more functionality that needs to get updated too, that's just what I've noticed so far^. |
This will change how chapter assignments are done, a chapter assignment used to be one-to-one - one profile type assigned to one chapter. This new way will associate accounts (not profiles) to chapters, and allow accounts to be able to be associated to multiple chapters. Since chapters are now associated to accounts, the other big change is that a chapter's primary contact will now be associated to an account instead of a chapter ambassador profile. Refs: #5024
This will change how chapter assignments are done, a chapter assignment used to be one-to-one - one profile type assigned to one chapter. This new way will associate accounts (not profiles) to chapters, and allow accounts to be able to be associated to multiple chapters. Since chapters are now associated to accounts, the other big change is that a chapter's primary contact will now be associated to an account instead of a chapter ambassador profile. Refs: #5024
This will change how chapter assignments are done, a chapter assignment used to be one-to-one - one profile type assigned to one chapter. This new way will associate accounts (not profiles) to chapters, and allow accounts to be able to be associated to multiple chapters. Since chapters are now associated to accounts, the other big change is that a chapter's primary contact will now be associated to an account instead of a chapter ambassador profile. Refs: #5024
This will change how chapter assignments are done, a chapter assignment used to be one-to-one - one profile type assigned to one chapter. This new way will associate accounts (not profiles) to chapters, and allow accounts to be able to be associated to multiple chapters. Since chapters are now associated to accounts, the other big change is that a chapter's primary contact will now be associated to an account instead of a chapter ambassador profile. Refs: #5024
This will change how chapter assignments are done, a chapter assignment used to be one-to-one - one profile type assigned to one chapter. This new way will associate accounts (not profiles) to chapters, and allow accounts to be able to be associated to multiple chapters. Since chapters are now associated to accounts, the other big change is that a chapter's primary contact will now be associated to an account instead of a chapter ambassador profile. Refs: #5024
This will change how chapter assignments are done, a chapter assignment used to be one-to-one - one profile type assigned to one chapter. This new way will associate accounts (not profiles) to chapters, and allow accounts to be able to be associated to multiple chapters. Since chapters are now associated to accounts, the other big change is that a chapter's primary contact will now be associated to an account instead of a chapter ambassador profile. Refs: #5024
This will change how chapter assignments are done, a chapter assignment used to be one-to-one - one profile type assigned to one chapter. This new way will associate accounts (not profiles) to chapters, and will allow accounts to be able to be associated to multiple chapters. Since chapters are now associated to accounts, the other big change is that a chapter's primary contact will now be associated to an account instead of a chapter ambassador profile. The rest of the changes here are to support those two^ changes. Refs: #5024
This will change how chapter assignments are done, a chapter assignment used to be one-to-one - one profile type assigned to one chapter. This new way will associate accounts (not profiles) to chapters, and will allow accounts to be able to be associated to multiple chapters. Since chapters are now associated to accounts, the other big change is that a chapter's primary contact will now be associated to an account instead of a chapter ambassador profile. The rest of the changes here are to support those two^ changes. Refs: #5024
This will change how chapter assignments are done, a chapter assignment used to be one-to-one - one profile type assigned to one chapter. This new way will associate accounts (not profiles) to chapters, and will allow accounts to be able to be associated to multiple chapters. Since chapters are now associated to accounts, the other big change is that a chapter's primary contact will now be associated to an account instead of a chapter ambassador profile. The rest of the changes here are to support those two^ changes. Refs: #5024
There are two rake tasks I added, I just ran them on Preview:
I also added a new Zenhub issue for deployment notes and added these two rake tasks to it. |
This is on Preview. Two big behind the scenes changes:
Things to look out for is anything that isn't working as expected because of these new association changes. |
This will change how chapter assignments are done, a chapter assignment used to be one-to-one - one profile type assigned to one chapter. This new way will associate accounts (not profiles) to chapters, and will allow accounts to be able to be associated to multiple chapters. Since chapters are now associated to accounts, the other big change is that a chapter's primary contact will now be associated to an account instead of a chapter ambassador profile. The rest of the changes here are to support those two^ changes. Refs: #5024
This will change how chapter assignments are done, a chapter assignment used to be one-to-one - one profile type assigned to one chapter. This new way will associate accounts (not profiles) to chapters, and will allow accounts to be able to be associated to multiple chapters. Since chapters are now associated to accounts, the other big change is that a chapter's primary contact will now be associated to an account instead of a chapter ambassador profile. The rest of the changes here are to support those two^ changes. Refs: #5024
Refactor how chapter assignments are done on the back-end to be able to handle a one-to-many relationship for mentors, mentors can belong to many chapters.
Instead of having three ways for chapter assignments (one for students, one for ChAs and one for mentors), it might make more sense to have one consolidated way and place for chapter assignments.
One proposal is to have one table to keep track of chapter assignments:
chapter_id
account_id
profile_type
profile_id
season
primary
The text was updated successfully, but these errors were encountered: