-
Notifications
You must be signed in to change notification settings - Fork 29
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
MNT: make happi repair not save items that have no changed fields #343
Conversation
Strange that the multi-backend test is only now failing, after being like that for some time. That failure is unrelated to the changes you made here. |
think my github account needs more permissions in this repo, i cant seem to run CI or add reviewers |
also sry im setting my PRs as drafts atm b/c still need to fill out descriptions |
e091ba7
to
4886ee0
Compare
4886ee0
to
067a2c6
Compare
41257be
to
2d9cda9
Compare
827ac12
to
0f9c3ae
Compare
…json. Added example cfg and instruction to make this easy.
0f9c3ae
to
2547efb
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.
I think this looks great, no objections or notes from me (aside from the pre-rel self-credit)
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.
This looks good to me too! Just a small test case nitpick but other than that I'm on board 👍
27fd291
Description
Make it so running
happi repair
only saves an item if it had a field actually changed during the repair process. This stops the last_edit times from being updated on unchanged items.Also, it wasn't immediately clear to me how to use the cli along with the example db.json (so I could try commands on a small example db). So added an example cfg and some instructions to the README to make this easy.
Motivation and Context
closes #324
How Has This Been Tested?
Manually tested and verified, and test case added.
Where Has This Been Documented?
In function's doc string and comments.
Pre-merge checklist
docs/pre-release-notes.sh
and created a pre-release documentation page