Skip to content

Commit

Permalink
services: skip index rebuilding
Browse files Browse the repository at this point in the history
  • Loading branch information
slint committed Sep 6, 2024
1 parent cf8243c commit 492ac65
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions invenio_vocabularies/services/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,7 @@

import sqlalchemy as sa
from invenio_cache import current_cache
from invenio_records_resources.services import (
Link,
LinksTemplate,
RecordService,
RecordServiceConfig,
SearchOptions,
pagination_links,
)
from invenio_records_resources.services import LinksTemplate, RecordService
from invenio_records_resources.services.base.utils import map_search_params
from invenio_records_resources.services.records.schema import ServiceSchemaWrapper
from invenio_records_resources.services.uow import unit_of_work
Expand All @@ -32,6 +25,10 @@
class VocabularyTypeService(RecordService):
"""Vocabulary type service."""

def rebuild_index(self, identity, uow=None):
"""Raise error since services are not backed by search indices."""
raise NotImplementedError()

def search(self, identity, params=None):
"""Search for vocabulary types entries."""
self.require_permission(identity, "list_vocabularies")
Expand Down

0 comments on commit 492ac65

Please sign in to comment.