Skip to content
Snippets Groups Projects

Add and implement SearchInterface.origin_delete()

Merged Jérémy Bobbio (Lunar) requested to merge lunar/swh-search:add-origin-delete into master
All threads resolved!

To enable swh alter removal to fully remove origins from the archive, we need to be able to remove origins from ElasticSearch.

As ElasticSearch indexes a document per origin, referenced by the origin URL, removing references to an origin is as simple as removing the associated document.

Closes #4652 (closed)

Edited by Jérémy Bobbio (Lunar)

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • added 1 commit

    • 52a8d9b8 - Add and implement SearchInterface.origin_delete()

    Compare with previous version

  • Jérémy Bobbio (Lunar) resolved all threads

    resolved all threads

  • Jenkins job DSEA/gitlab-builds #63 succeeded .
    See Console Output and Coverage Report for more details.

  • origin_delete() now returns a bool instead of None indicating if an object could be found and deleted. This comes from the opportunity that elasticsearh raises a NotFoundError when the document to delete could not be found.

  • David Douard approved this merge request

    approved this merge request

  • added 2 commits

    • c7270281 - 1 commit from branch swh/devel:master
    • 0bcded86 - Add and implement SearchInterface.origin_delete()

    Compare with previous version

  • Jenkins job DSEA/gitlab-builds #64 succeeded .
    See Console Output and Coverage Report for more details.

  • Please register or sign in to reply
    Loading