Add basic support for an origin blocklist
Closed
requested to merge generated-differential-D5465-source into generated-differential-D5465-target
This adds a boolean field, "blocklisted", to the origin documents. When this field is true, the documents are not returned in search results.
The blocklist field is sticky for updates, meaning that another run of the swh.search journal client (or further visits of the origin) will keep the origin hidden from search results.
Related to #3224 (closed).
Test Plan
Added tests for the new behavior
Migrated from D5465 (view on Phabricator)
Merge request reports
Activity
Filter activity
Build is green
Patch application report for D5465 (id=19515)
Rebasing onto 7b3b0dca...
Current branch diff-target is up to date.
Changes applied before test
commit ebee5d1ba6b36616accd176159f130a152b0617a Author: Nicolas Dandrimont <nicolas@dandrimont.eu> Date: Thu Apr 8 16:49:35 2021 +0200 Add basic support for an origin blocklist This adds a boolean field, "blocklisted", to the origin documents. When this field is true, the documents are not returned in search results. The blocklist field is sticky for updates, meaning that another run of the swh.search journal client (or further visits of the origin) will keep the origin hidden from search results.
See https://jenkins.softwareheritage.org/job/DSEA/job/tests-on-diff/105/ for more details.
Please register or sign in to reply