Summary
Standardise the data resource class parameter orders and method names to provide a more consistent and intuitive interface. Also rename the `octue-app` CLI to `octue`.
<!--- SKIP AUTOGENERATED NOTES --->
Contents ([455](https://github.com/octue/octue-sdk-python/pull/455))
**IMPORTANT:** There are 5 breaking changes.
Enhancements
- 💥 **BREAKING CHANGE:** Standardise the parameter order in `Datafile`, `Dataset`, and `Manifest`. The order is now:
- `path` first
- Any other parameters that appear explicitly in the class next
- Any mixin kwargs after that
**How to migrate**
If you're using kwargs to provide parameters to instantiate the above classes, no change is needed. If you're using positional args, you'll need to reorder them or switch to using kwargs:
- `Manifest`: provide the `datasets` argument first
- `Dataset`: provide the arguments in this order, omitting any you're not already using:
path, files, recursive, hypothetical, id, name, tags, labels
- `Datafile`: Provide the `id`, `tags`, and `labels` arguments in this order after all other arguments, omitting any you're not already using
- Raise error if `files` parameter is invalid in `Dataset`
Refactoring
- 💥 **BREAKING CHANGE:** Rename `Dataset.download_all_files` to `Dataset.download`
- 💥 **BREAKING CHANGE:** Rename `Dataset.to_cloud` to `Dataset.upload`
- 💥 **BREAKING CHANGE:** Rename `Datafile.to_cloud` to `Datafile.upload`
- 💥 **BREAKING CHANGE:** Rename the CLI entrypoint from `octue-app` to `octue`
Fixes
- Add newline to end of `.octue` JSON files
Operations
- Use latest commit message checker in pre-commit checks
Dependencies
- Update dataflow `setup.py` file with correct twined version
Testing
- Remove redundant `project_name` parameter from datafiles
<!--- END AUTOGENERATED NOTES --->