Skip to content
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

Assign mentor to club when joining team #5308

Open
wants to merge 6 commits into
base: qa
Choose a base branch
from

Conversation

viviancan
Copy link
Contributor

Refs #5246

This PR updates the mentor invite/join team flow so they can also be assigned to a club

@viviancan viviancan force-pushed the 5246-assign-mentor-to-club-when-joining-team branch from f5b8312 to 8f8f219 Compare January 16, 2025 19:22
@viviancan viviancan marked this pull request as ready for review January 17, 2025 14:04
@@ -10,10 +10,10 @@ class Chapter < ActiveRecord::Base
has_one :legal_contact, dependent: :destroy
has_one :chapter_program_information, dependent: :destroy

has_many :chapter_account_assignments, as: :chapterable, class_name: "ChapterableAccountAssignment"
has_many :accounts, through: :chapter_account_assignments
has_many :chapterable_account_assignments, as: :chapterable, class_name: "ChapterableAccountAssignment"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if this was (or is going to be) updated in the refactor work. I updated this association to match the chapterable account assignment association in the club model

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, nice naming alignment! 👍

Copy link
Contributor

@shaun-technovation shaun-technovation left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't try locally, but looks good to me! 👍 🎉 🚢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants