From f5b21690c9391a19c7a4aaf6dbb0f29d805c067a Mon Sep 17 00:00:00 2001 From: abram axel booth Date: Wed, 13 Nov 2024 14:05:09 -0500 Subject: [PATCH] incidental: remove dead code --- share/tasks/__init__.py | 8 -------- trove/trovesearch/search_params.py | 4 +--- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/share/tasks/__init__.py b/share/tasks/__init__.py index 4c4baecbe..fa93ccf76 100644 --- a/share/tasks/__init__.py +++ b/share/tasks/__init__.py @@ -79,14 +79,6 @@ def schedule_index_backfill(self, index_backfill_pk): .exclude(source_config__source__is_deleted=True) .values_list('id', flat=True) ) - elif _messagetype == MessageType.BACKFILL_IDENTIFIER: - _targetid_queryset = ( - trove_db.ResourceIdentifier.objects - .exclude(suid_set__source_config__disabled=True) - .exclude(suid_set__source_config__source__is_deleted=True) - .values_list('id', flat=True) - .distinct() - ) else: raise ValueError(f'unknown backfill messagetype {_messagetype}') _chunk_size = settings.ELASTICSEARCH['CHUNK_SIZE'] diff --git a/trove/trovesearch/search_params.py b/trove/trovesearch/search_params.py index 67469e80f..c4ecabbd1 100644 --- a/trove/trovesearch/search_params.py +++ b/trove/trovesearch/search_params.py @@ -468,10 +468,9 @@ class CardsearchParams(BaseTroveParams): cardsearch_textsegment_set: frozenset[Textsegment] cardsearch_filter_set: frozenset[SearchFilter] index_strategy_name: str | None - sort_list: tuple[SortParam] + sort_list: tuple[SortParam, ...] page_cursor: PageCursor related_property_paths: tuple[Propertypath, ...] - unnamed_iri_values: frozenset[str] @classmethod def parse_queryparams(cls, queryparams: QueryparamDict) -> dict: @@ -485,7 +484,6 @@ def parse_queryparams(cls, queryparams: QueryparamDict) -> dict: 'page_cursor': _get_page_cursor(queryparams), 'include': None, # TODO 'related_property_paths': _get_related_property_paths(_filter_set), - 'unnamed_iri_values': frozenset(), # TODO: frozenset(_get_unnamed_iri_values(_filter_set)), } def to_querydict(self) -> QueryDict: