-
Notifications
You must be signed in to change notification settings - Fork 23
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
Package field update method #222
Conversation
6937b44
to
db673ea
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.
Thanks @JonoYang
I was wondering, do we really need both update_field
and update_fields
? Isn't update_fields
sufficient?
@keshav-space That's true. I have the two because I wasn't sure what the best way to have the method arguments for updating a single field or multiple fields. I've removed |
Signed-off-by: Jono Yang <jyang@nexb.com>
* Update test expectations Signed-off-by: Jono Yang <jyang@nexb.com>
Signed-off-by: Jono Yang <jyang@nexb.com>
* Remove _update_field and update_field Signed-off-by: Jono Yang <jyang@nexb.com>
Signed-off-by: Jono Yang <jyang@nexb.com>
9d47b09
to
60c5996
Compare
Signed-off-by: Jono Yang <jyang@nexb.com>
Signed-off-by: Jono Yang <jyang@nexb.com>
This PR adds a new method to the Package model to update fields. The idea is that we use these methods to update package fields, where it also updates the history as well.