inveniosoftware / inveniosoftware/invenio-cli
invenio-cli: introduce require_version decorator
Open
- Dominant language
- Python
- Stars
- 14
- Forks
- 49
- PR merge metrics
- No merged PRs in 30d
Description
Currently, invenio-cli is not binded to any rdm/ils version. That means, that every release with breaking change cannot be done in a safe manner.
# Proposal
Investigate how to add a `require_version()` decorator that can be used to mark individual methods and require a minimum version of an rdm/ils project in order to run. In case the condition is not met, we can control a `raise=True/False` based on our needs.
See how to get the information about the version e.g for custom-fields https://github.com/inveniosoftware/invenio-cli/blob/master/invenio_cli/commands/services.py#L187
Contributor guide
Assessment
This issue has not been assessed yet.