Read "deposit" information out of the deposit read api and let the loader build
the revision out of those information.
Prior to this commit, this read the "revision" entry with data already
pre-built.
Related to D3047
Differential D3048
deposit.loader: Build revision out of the deposit api read metadata ardumont on Apr 22 2020, 6:16 PM. Authored by
Details
Read "deposit" information out of the deposit read api and let the loader build Prior to this commit, this read the "revision" entry with data already Related to D3047 tox
Diff Detail
Event TimelineComment Actions Build is green Patch application report for D3048 (id=10830)Could not rebase; Attempt merge onto 042adcb6e2... Updating 042adcb..14b5f26 Fast-forward swh/loader/package/deposit/loader.py | 40 ++++++++++------------ .../hello_2.10.json | 30 ++++------------ .../hello_2.11.json | 31 ++++------------- swh/loader/package/deposit/tests/test_deposit.py | 7 ++-- 4 files changed, 36 insertions(+), 72 deletions(-) Changes applied before testcommit 14b5f26a6ab16610bc5091c5d33db72ef0523f9f Author: Antoine R. Dumont (@ardumont) <antoine.romain.dumont@gmail.com> Date: Wed Apr 22 17:55:27 2020 +0200 deposit.loader: Build revision out of the deposit api read metadata commit b766c456c196746f3bb2c822723604dcd4e6317d Author: Antoine R. Dumont (@ardumont) <antoine.romain.dumont@gmail.com> Date: Wed Apr 22 17:16:03 2020 +0200 deposit.loader: Fix revision metadata redundancy in deposit metadata Related to T2374 See https://jenkins.softwareheritage.org/job/DLDBASE/job/tests-on-diff/27/ for more details. Comment Actions Thanks for the fast diff ! First quick review without tests.
Comment Actions Build is green Patch application report for D3048 (id=10837)Could not rebase; Attempt merge onto 042adcb6e2... Updating 042adcb..fca7e47 Fast-forward swh/loader/package/deposit/loader.py | 41 ++++++----- .../hello_2.10.json | 40 ++++------- .../hello_2.11.json | 45 ++++-------- swh/loader/package/deposit/tests/test_deposit.py | 81 +++++++++++++++++++++- 4 files changed, 126 insertions(+), 81 deletions(-) Changes applied before testcommit fca7e4783d581b6bc9fd2f5be039e5c06df025a4 Author: Antoine R. Dumont (@ardumont) <antoine.romain.dumont@gmail.com> Date: Wed Apr 22 17:55:27 2020 +0200 deposit.loader: Build revision out of the deposit api read metadata Prior to this commit, it was done using a "revision" field built deposit read api metadata server side (reading a "revision" key). It's now built out of deposit information loader side (reading a "deposit" key). This fixes a long time FIXME which needed to go away. commit 96f3e296e70ce0ea2f42d0efb0f793106c813fe1 Author: Antoine R. Dumont (@ardumont) <antoine.romain.dumont@gmail.com> Date: Wed Apr 22 17:16:03 2020 +0200 deposit.loader: Fix revision metadata redundancy in deposit metadata Related to T2374 See https://jenkins.softwareheritage.org/job/DLDBASE/job/tests-on-diff/30/ for more details.
|