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
Overwrite beliefs #98
Conversation
…rge with overwrite (slower)
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.
Here, I mainly have one comment about how the user can decide if they want to overwrite. The missing clarity should be addressed in the timely-beliefs PR.
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.
One more simplification.
… class method default to not commit transaction
Add CLI command to add beliefs from csv, optionally allowing to overwrite existing data. * Add CLI command to add beliefs from csv * Refactor if-else block * Add docstring note about belief timing * Overwrite beliefs (#98) * Try tb upsert functionality * Try to bulk insert without overwrite (faster) before attempting to merge with overwrite (slower) * Make overwriting data a CLI option * Copy docstring from tb * Simplification * UX improvement * Add bulk saving as class method option, but not as CLI option; change class method default to not commit transaction * Update dependency Co-authored-by: F.N. Claessen <felix@seita.nl> * Print useful error message if sensor is not found * Changelog entry * Move CLI commands to dev-add group * Update changelog entry Co-authored-by: F.N. Claessen <felix@seita.nl>
Best reviewed in conjunction with SeitaBV/timely-beliefs#56.