Make the required changes into the db and keep up-to-date the archiver's tests.
Details
Details
- Reviewers
ardumont - Group Reviewers
Reviewers - Commits
- rDSTOC5c8085d1785b: Update the archiver for the new db shema
rDSTOC9451c5f4b83f: Use postgres 9.5's functions for jsonb manipulation
R65:5c8085d1785b: Update the archiver for the new db shema
R65:9451c5f4b83f: Use postgres 9.5's functions for jsonb manipulation
rDSTO9451c5f4b83f: Use postgres 9.5's functions for jsonb manipulation
rDSTO5c8085d1785b: Update the archiver for the new db shema
Diff Detail
Diff Detail
- Repository
- rDSTO Storage manager
- Branch
- archiver
- Lint
No Linters Available - Unit
No Unit Test Coverage - Build Status
Buildable 295 Build 434: Software Heritage Python tests Build 433: arc lint + arc unit
Event Timeline
swh/storage/archiver/storage.py | ||
---|---|---|
73 | directly For jsonb manipulation btw https://www.postgresql.org/docs/9.5/static/functions-json.html. | |
swh/storage/archiver/worker.py | ||
130 | its mtime | |
swh/storage/db.py | ||
666 | Retrieve | |
687 | '... its mtime...' | |
692–693 | As this is a first draft, i imagine that you'll update the docstring later. |
Comment Actions
This seems quite ok so far.
Submitted a first version for review, but there is still some work to do for the Jsonb access.
What do you mean?
The jsonb access for the update?
Comment Actions
Yes, I used the jsonb_set function to let postgres do the update.
- Use postgres 9.5's functions for jsonb manipulation
- Some typos corrections
swh/storage/db.py | ||
---|---|---|
702 | Indeed, postgres would not let us do that. |