Closed dbirman closed 1 week ago
From teams discussion:
Maybe we can organize it like: utils/
* s3.py * docdb.py * quality_control.py (or aind_data_schema.py, since helpers seems similar enough to utils)
Helen pointed out that there's a bunch of downstream dependencies on this stuff, so I think I should revert it and just put my utilities into their own file
Maybe we can organize it like: utils/
* s3.py * docdb.py * quality_control.py (or aind_data_schema.py, since helpers seems similar enough to utils)
Helen pointed out that there's a bunch of downstream dependencies on this stuff, so I think I should revert it and just put my utilities into their own file
I reckon it would introduce a breaking change. We can re-organize things later.
Maybe util/ isn't the best name since it conflicts with utils.py. We could go back to helpers/?
Maybe util/ isn't the best name since it conflicts with utils.py. We could go back to helpers/?
helpers
is probably okay
Thanks Dan. Let me know if you need any help or clarifications. Are you still intending to rename the folder to utils/helpers?
Side note for next time- Contributor Guidelines contains branch naming conventions. It's the same across the core services. You can also link the issue in the PR message by writing "closes/fixes #{issue_num}"
I use Github to open branches directly linked to issues, this also auto-links the issue in the PR without needing to write the closes statement. If the contributor guidelines don't support that then we should update the guidelines because that workflow is much better than manually writing this stuff out.
I'll start a thread in the sci comp channel about this.
This PR refactors the utilities and adds to new ones, and then uses those to support a helper function that can return a valid QC object (if it exists, and deserializes properly)