Prior to this commit, this was done for all deposits but it's only a good fallback for
typed deposit 'code'.
Related to T4123
Differential D7486
moderation: Fix deposit uri computation for 'code' deposits ardumont on Apr 1 2022, 4:39 PM. Authored by Tags None Subscribers None
Details
Prior to this commit, this was done for all deposits but it's only a good fallback for Related to T4123 tox
Diff Detail
Event TimelineComment Actions Better implementation, it could be that raw_provenance is not provided so we need to Comment Actions Build is green Patch application report for D7486 (id=27153)Rebasing onto ad5add7d36... Current branch diff-target is up to date. Changes applied before testcommit 96772318471a05fe360ebfd2da4772ef8ad16a2d Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org> Date: Fri Apr 1 16:37:42 2022 +0200 moderation: Fix deposit uri computation for 'code' deposits Prior to this commit, this was done for all deposits but it's only a good fallback for typed deposit 'code'. Related to T4123 See https://jenkins.softwareheritage.org/job/DWAPPS/job/tests-on-diff/1645/ for more details. Comment Actions Build is green Patch application report for D7486 (id=27154)Rebasing onto ad5add7d36... Current branch diff-target is up to date. Changes applied before testcommit e05391bd248bf601c27822b1a7633579eb263c9d Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org> Date: Fri Apr 1 16:37:42 2022 +0200 moderation: Fix deposit uri computation for 'code' deposits Prior to this commit, this was done for all deposits but it's only a good fallback for typed deposit 'code'. Related to T4123 See https://jenkins.softwareheritage.org/job/DWAPPS/job/tests-on-diff/1646/ for more details. Comment Actions Build is green Patch application report for D7486 (id=27155)Rebasing onto ad5add7d36... Current branch diff-target is up to date. Changes applied before testcommit 8ffd81760aa971773b693a07934d717dfaf91b22 Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org> Date: Fri Apr 1 16:37:42 2022 +0200 moderation: Fix deposit uri computation for 'code' deposits Prior to this commit, this was done for all deposits but it's only a good fallback for typed deposit 'code'. Related to T4123 See https://jenkins.softwareheritage.org/job/DWAPPS/job/tests-on-diff/1647/ for more details. |
These hunks (in test_storage.py) should not be in this Diff. Having to do so in order to make your test_in_memory pass (I guess it's the reason for these modifications) prove your implementation does not respect the "API" of the original storage class.
It's probably no big deal here, but it's a bad practice...