audeering / audbackend

Manage file storage on different backends
https://audeering.github.io/audbackend/
Other
3 stars 0 forks source link

Remove version from implementation #165

Closed frankenjoe closed 10 months ago

frankenjoe commented 10 months ago

Relates to #155

This removes the version argument from the backend implementation.

Instead of forwarding path and version to the implementation, Backend integrates the version into the path now. This simplifies the implementation of a backend, since a developer does not have to care about storing the version (especially the implementation of _ls() becomes way simpler). Also the support for legacy file structure is now handled directly by Backend (and as a side-effect supported by any backend).

The suggested changes will allow us to implement audbackend in a way that it can be used without versioning as requested in #155 (not implemented here).

codecov[bot] commented 10 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (21a6cce) 100.0% compared to head (249a7c5) 100.0%.

Additional details and impacted files | [Files](https://app.codecov.io/gh/audeering/audbackend/pull/165?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=audeering) | Coverage Δ | | |---|---|---| | [audbackend/core/artifactory.py](https://app.codecov.io/gh/audeering/audbackend/pull/165?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=audeering#diff-YXVkYmFja2VuZC9jb3JlL2FydGlmYWN0b3J5LnB5) | `100.0% <100.0%> (ø)` | | | [audbackend/core/backend.py](https://app.codecov.io/gh/audeering/audbackend/pull/165?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=audeering#diff-YXVkYmFja2VuZC9jb3JlL2JhY2tlbmQucHk=) | `100.0% <100.0%> (ø)` | | | [audbackend/core/conftest.py](https://app.codecov.io/gh/audeering/audbackend/pull/165?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=audeering#diff-YXVkYmFja2VuZC9jb3JlL2NvbmZ0ZXN0LnB5) | `100.0% <ø> (ø)` | | | [audbackend/core/filesystem.py](https://app.codecov.io/gh/audeering/audbackend/pull/165?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=audeering#diff-YXVkYmFja2VuZC9jb3JlL2ZpbGVzeXN0ZW0ucHk=) | `100.0% <100.0%> (ø)` | |