Skip to content

Commit

Permalink
Remove changes added for search filter
Browse files Browse the repository at this point in the history
  • Loading branch information
CamLamb committed Dec 9, 2024
1 parent de97c9c commit 33f995e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,6 @@
"<FilterField: networks>",
"<FilterField: professions>",
"<FilterField: profile_completion_scorefunction>",
"<FilterField: team_id>",
"<RelatedFields additional_roles fields=['<SearchField: name>', '<SearchField: name_explicit>']>",
"<RelatedFields key_skills fields=['<SearchField: name>', '<SearchField: name_explicit>']>",
"<RelatedFields learning_interests fields=['<SearchField: name>']>",
Expand Down
10 changes: 0 additions & 10 deletions src/peoplefinder/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,6 @@ class RemoteWorking(models.TextChoices):
filter=True,
),
IndexedField("do_not_work_for_dit", filter=True),
IndexedField("team_id", filter=True),
]

search_fields = []
Expand Down Expand Up @@ -754,15 +753,6 @@ def get_all_additional_roles(self) -> Iterator[str]:
if self.other_additional_roles:
yield self.other_additional_roles

def team_id(self) -> list[int]:
team_ids = []

for role in self.roles.all():
team_ids.append(role.team_id)
team_ids += [tt.child.pk for tt in role.team.parents.all()]

return team_ids

@property
def is_stale(self):
return (timezone.now() - self.edited_or_confirmed_at).days >= 365
Expand Down

0 comments on commit 33f995e

Please sign in to comment.