-
-
Notifications
You must be signed in to change notification settings - Fork 27
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
Create table project_sponsor_partner_xref #270
Create table project_sponsor_partner_xref #270
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Look great! Just a few things I noticed in the code should be changed.
@fyliu the changes you suggested are done, except the one with the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for making the changes. I left another comment on the model and thought of something new. Can you take a look.
150c395
to
e862c55
Compare
@fyliu the changes requested are done please check |
I'm realizing that this PR is essentially ready and is actually waiting for me. We were discussing changes to it over slack chat. I'm pasting that here for reference
I need to create issues for these and you can make any of the changes here you feel makes sense. |
@fyliu I've made the suggested change, have a look and do resolve the issue I've mentioned in slack!! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR! The migrations applied fine for me.
There a few extra commits here that I think you brought over from main
. They're making the github's PR changes view look more complicated. We should figure out how to make it cleaner for future PRs.
You made good assumptions with little information, but some of the things I just need to specify better. I think I need to create those other issues to better communicate what's needed.
@fyliu renamed the model and implemented Python Enums as per requirement, please check. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for making the changes! I just found a couple small things that need changing.
@freaky4wrld I just realized that the boolean to enum change hasn't been agreed on with @Neecolaa yet. Will have to bring that up for discussion in the next meeting. |
@fyliu did you had the discussion with @Neecolaa. I'm still waiting for the confirmation and further info on changes to be made!! |
We're adding a row: We won't be using an enum, just the two booleans. |
@freaky4wrld see update comment above |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for making the update and sorry for the change in requirement.
I found a couple things that could be improved. I'm short on time today so I'll continue tomorrow.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the updates.
I think I wasn't clear enough about the created_at
field. It's already provided by the AbstractBaseModel
and you just have to include it in the AffiliationSerializer
. Can you remove it from the Affiliation model class. That should make it use the inherited one. Thank you!
342cf57
to
550e45c
Compare
- renamed sponsor_partner table and model to affiliate - added model: affiliation - registered admin: affiliation - added endpoints: affiliation
550e45c
to
5ab31d1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works great, thanks!
I tried to simplify the commit history but it looks like I have to just squash them down to a single commit because of 2 models being changed. I also added a few other fixes that you can see at the end of the branch history in my forked branch
Fixes #65 , #272
What changes did you make?
ProjectSponsorPartnerXref
sponsor_partner
toaffiliate
Why did you make the changes (we will use this info to test)?
ProjectSponsorPartnerXref
in the databaseaffiliate