Skip to content

Commit

Permalink
[feature/PI-618-bulk_etl] remove deprecated method
Browse files Browse the repository at this point in the history
  • Loading branch information
jaklinger committed Dec 2, 2024
1 parent bb057cb commit d0f6e5d
Showing 1 changed file with 0 additions and 34 deletions.
34 changes: 0 additions & 34 deletions src/layers/domain/api/sds/query.py
Original file line number Diff line number Diff line change
@@ -1,39 +1,5 @@
# from functools import cache
# from itertools import chain, combinations

from pydantic import BaseModel, Extra, root_validator

# class SearchSDSQueryParams(BaseModel):
# def get_non_null_params(self):
# return self.dict(exclude_none=True)

# @classmethod
# @cache
# def allowed_field_combinations(cls) -> list[set[str]]:
# """
# This method is used to generate all allowed combinations of search fields
# for the given query parameters. Down the line this also used to generate
# Device.tags in the ETL
# """
# mandatory_fields, optional_fields = [], []
# for field_name, field in cls.__fields__.items():
# if field.required:
# mandatory_fields.append(field_name)
# else:
# optional_fields.append(field_name)

# n_minimum_optional_fields = 0 if mandatory_fields else 1
# n_optional_fields = len(optional_fields)
# optional_field_combinations = chain.from_iterable(
# combinations(optional_fields, n_fields)
# for n_fields in range(n_minimum_optional_fields, n_optional_fields + 1)
# )

# return [
# {*mandatory_fields, *_optional_field_combination}
# for _optional_field_combination in optional_field_combinations
# ]


class SearchSDSDeviceQueryParams(BaseModel, extra=Extra.forbid):
nhs_id_code: str
Expand Down

0 comments on commit d0f6e5d

Please sign in to comment.