Cheking compatibility between client url and the deposit's metadata entry url.
This will enable the usage of url for origin creation.
Resolves T868
Paths
| Differential D283 Authored by moranegg on Jan 9 2018, 2:15 PM.
Details Summary Cheking compatibility between client url and the deposit's metadata entry url. Resolves T868
Diff Detail
Event TimelineHarbormaster completed remote builds in B1144: Diff 948.Jan 9 2018, 2:15 PM2018-01-09 14:15:58 (UTC+1) moranegg edited the summary of this revision. (Show Details)Jan 9 2018, 2:16 PM2018-01-09 14:16:48 (UTC+1) ardumont added inline comments.
This revision now requires changes to proceed.Jan 9 2018, 2:43 PM2018-01-09 14:43:48 (UTC+1) Harbormaster completed remote builds in B1145: Diff 949.Jan 9 2018, 2:44 PM2018-01-09 14:44:12 (UTC+1) Harbormaster completed remote builds in B1146: Diff 950.Jan 9 2018, 2:59 PM2018-01-09 14:59:16 (UTC+1) Harbormaster completed remote builds in B1147: Diff 951.Jan 9 2018, 3:05 PM2018-01-09 15:05:10 (UTC+1) Harbormaster completed remote builds in B1148: Diff 952.Jan 9 2018, 3:10 PM2018-01-09 15:10:22 (UTC+1) Harbormaster completed remote builds in B1149: Diff 953.Jan 9 2018, 4:18 PM2018-01-09 16:18:45 (UTC+1) This revision is now accepted and ready to land.Jan 9 2018, 4:21 PM2018-01-09 16:21:23 (UTC+1) Closed by commit rDDEP48eda313e9d4: Add url validation (authored by moranegg). · Explain WhyJan 9 2018, 4:32 PM2018-01-09 16:32:16 (UTC+1) This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 949 swh/deposit/api/private/deposit_check.py
swh/deposit/api/private/deposit_read.py
swh/deposit/tests/api/test_deposit_check.py
swh/deposit/tests/api/test_deposit_read_metadata.py
|
We don't want to expose the implementation detail of how we do the check in the documentation ;)
We want to expose the intent.
A better docstring than my previous attempt would be: