Details
Diff Detail
- Repository
- rDSTO Storage manager
- Branch
- D106
- Lint
No Linters Available - Unit
No Unit Test Coverage - Build Status
Buildable 413 Build 612: Software Heritage Python tests Build 611: arc lint + arc unit
Event Timeline
If you have the time to do the small refactoring about the api redundancy, please do it.
Otherwise, this seems good to go so accepted.
swh/storage/vault/api/client.py | ||
---|---|---|
61 | I see those same (or equivalent) snippets in swh.storage.api.client.RemoteStorage, swh.objstorage.api.client.RemoteObjStorage. Can't we factorize those methods (url, post, get seems new) say in a base class somewhere? | |
swh/storage/vault/api/server.py | ||
64 | Maybe explicit that this is to be called when the directory is cooked. |
Rename method to make it more explicit
get_directory was misleading as in only concern cooked directory.
As the endpoint is already GET/POST-specific, this enlightment is needed.
swh/storage/vault/api/cooking_tasks.py | ||
---|---|---|
18 | ah yes, nice catch, bytes won't pass with celery without adding some extra converters ^^ |