Skip to content

Commit

Permalink
uow: add record delete index op
Browse files Browse the repository at this point in the history
  • Loading branch information
zzacharo committed Oct 23, 2023
1 parent 77e79d3 commit e3b253f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions invenio_records_resources/services/uow.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,14 @@ def on_commit(self, uow):
self._indexer.delete(self._record, refresh=self._index_refresh)


class RecordIndexDeleteOp(RecordDeleteOp):
"""Record index delete operation."""

def on_register(self, uow):
"""Overwrite method to not commit."""
pass


class IndexRefreshOp(Operation):
"""Search index refresh operation."""

Expand Down

0 comments on commit e3b253f

Please sign in to comment.