-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
Rename sponsor_partner
to affiliate
#272
Comments
is_sponsor
required since the object only makes sense if it's either true or false.sponsor_partner
to affiliate
|
Sorry I thought posted this that day but I didn't click submit. The consistent table naming convention sounds good. What if we kept the Seems like a good idea to set up the association with the I know it was decided that it's going to be an either or for the project sponsor or partner. But I wonder about the likelihood that it will become something like the org where they can be both. Maybe we need to create a decision record or at least a statement so we're confident this is going to be stable. I think enums or choices are just short strings. Or maybe that's one of several way to do it but it's the one I can remember. If it's set to 1 char long, then there's that many possible values we can later use. Django translates from You're right. I realized while testing the PR that the |
Updates and actions neededFrom comment above:
From the meeting:
|
I forgot to bring up the enum during the meeting. It's part of #65 so I'll comment there. |
Cleaning things up a bit here. I made some of the changes part of #65 since that's being worked on right now. The only change remaining here is what the title says. I just realized I still haven't confirmed the boolean to enum change but it's already being coded. Will have to do that with @Neecolaa at the next meeting to figure out what's best. We can undo the code change if it's not a good direction. |
Here's a comparison of them.
|
After a discussion with Bonnie at the People Depot meeting, we've decided to add the boolean
A partner is an entity that's doing ongoing work with us on the project. |
Unassigning @freaky4wrld since the coding is done. We just need to change the ERD and spreadsheet for the rest of this issue. |
This comment from Fang is about making changes to this table, so I'm adding a reference to it here
We could add an org_id field to the affiliate table to specify which org these values are referring to. Currently, we're only going to have one org (Hack4LA), which is why affiliate currently lacks this association. |
Overview
We should rename the
sponsor_partner
table to something likeaffiliate
. And theproject_sponsor_partner_xref
table toaffiliation
or similar. This would simplify and clarify the ideas behind these tables.Also more clear would be converting the
project_sponsor_partner_xref.is_sponsor
field totype
. See discussion below.Action Items
ERD, spreadsheet, code changes for each of these
sponsor_partner
toaffiliate
project_sponsor_partner_xref
toaffiliation
. Made part of Create Table: project_sponsor_partner_xref #65is_sponsor
field name totype
and make it a choice or enum. Made part of Create Table: project_sponsor_partner_xref #65Resources/Instructions
Proposed Changes
project_sponsor_partner_xref
table toaffiliation
or a more appropriate descriptive term for the relationship.sponsor_partner
table toaffiliate
.is_sponsor
is a choice like choose between sponsor or partner, and call ittype
What the changes give us
Mostly simpler naming for these concepts.
Clearer code when working with the relationship and model.
Example to create a project-affiliate relation
The current way would look like this
Originally posted by @fyliu in #270 (comment)
The text was updated successfully, but these errors were encountered: