Skip to content

Commit

Permalink
incidental: remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
aaxelb committed Nov 13, 2024
1 parent b7a5ae9 commit f5b2169
Showing 2 changed files with 1 addition and 11 deletions.
8 changes: 0 additions & 8 deletions share/tasks/__init__.py
Original file line number Diff line number Diff line change
@@ -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']
4 changes: 1 addition & 3 deletions trove/trovesearch/search_params.py
Original file line number Diff line number Diff line change
@@ -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:

0 comments on commit f5b2169

Please sign in to comment.