-
-
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: check_type #59 #370
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.
Thanks for working through the issue so quickly and fixing documentation problems!
Everything works great. I looked through the code, built it, ran it, checked migrations, the admin site, and the API endpoints.
I found only very minor things that doesn't affect the functionality. Can you please fix them? Thanks!
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.
Thank you for making the changes. Looks great!
@dmartin4820 I'm going to amend the later changes into the original commits before rebasing everything into main. I'm not sure if it's something you want to try doing yourself. It involves splitting the last commit into 2, then using the last 3 commits to fixup the older commits. I use a tool to help do this quickly. I have it done locally but just wanted to know if you'd like to know how to do it as well. Also, the repo is set to delete the PR branch after merging. Since you're using the main branch of your from for the PR, I'm not sure if it's aware enough to not try to delete it. The delete is supposed to be reversible if it does happen. |
@fyliu sure, I'd be willing to try amending the commits. I'm familiar with soft resetting to a specific commit, the amending the unstaged changes to the last commit. After that, I'd need to force push to my fork Not sure I know how to fixup the unstaged changes to specific commits, especially without a tool. But willing to learn more about it. I don't mind if it deletes the branch of the fork or whatever it ends up doing. I can create a new one. |
Great. split the fixes into 2You can soft reset 2 commits back so that all of the Fixup changes are there together. Actually, mixed reset might be better in this case. Mixed will unstage the committed changes while soft reset will keep them staged. Then stage one of the changes like the autosquash commitYou can try doing the fixup now by running an interactive rebase Then you can create the fixup commits for the other 2 things and apply them together. I just realized the remaining changes is actually one thing, which is fixing the After that, you should've combined all the fixes into the original commits and still have the exact same code as when the PR was approved. You can check using why I'm doing thisIn open source projects, some (many?) maintainers like to keep the main branch history clean and linear. So no fix commit for something earlier in the same PR and no merge commits. So they want you to rebase your commits to the latest main if main was changed before your PR. They might do the cleanup themselves, ask contributors to do it, or have a merge team that's very adept at handling this. Thanks for wanting to try this. I wanted to give people this experience that they could encounter in the wild, but I also understand some people are at the stage where they're already learning several things at the same time and don't want another complication. |
I can't remember the way to do it with a tool (lazygit) without using the computer, so I'll tell you later. That tool might do several git commands in the background for every action you tell it to take. You can do things like browse an old commit and tell it to commit part of it as a separate commit, splitting it into 2 at that point in history, with all the later commits after them. |
lazygit instructionsI did 2 things:
move and apply fixup
split a commit into 2
move and apply fixupsame steps as above with the 2 newly split commits |
I'll give it a try. Definitely not opposed to learning more about Git |
So I did the fixups using lazygit. It was easier that way. It got rid of the "pre-commit" commit and fixedup the commits with the changes you suggest to the admin class name and docs. |
@dmartin4820 looks great. Thanks! |
Fixes #59
What changes did you make?
-write a test for the relationships this model will have with other models (e.g., creating a user and assigning them a set of
Why did you make the changes (we will use this info to test)?
Screenshots of Proposed Changes Of The Website (if any, please do not screen shot code changes)
Visuals change
add-model-and-api-endpoints.md before:

add-model-and-api-endpoints.md after:

CONTRIBUTING.md before:

CONTRIBUTING.md after:
