Skip to content

Commit

Permalink
Adjust field names to new convention (last_ebi_search_indexed)
Browse files Browse the repository at this point in the history
  • Loading branch information
mberacochea committed Jan 29, 2024
1 parent 02d3943 commit 60d2a37
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions emgapi/management/commands/ebi_search_analysis_dump.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,6 @@ def handle(self, *args, **options):
# Small buffer into the future so that the indexing time remains ahead of auto-now updated times.

for analysis in page:
analysis.last_indexed = nowish
analysis.last_ebi_search_indexed = nowish

AnalysisJob.objects.bulk_update(page, fields=["last_indexed"])
AnalysisJob.objects.bulk_update(page, fields=["last_ebi_search_indexed"])
4 changes: 2 additions & 2 deletions emgapi/management/commands/ebi_search_study_dump.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,6 @@ def handle(self, *args, **options):
# Small buffer into the future so that the indexing time remains ahead of auto-now updated times.

for study in studies:
study.last_indexed = nowish
study.last_ebi_search_indexed = nowish

Study.objects.bulk_update(studies, fields=["last_indexed"])
Study.objects.bulk_update(studies, fields=["last_ebi_search_indexed"])
5 changes: 3 additions & 2 deletions emgapi/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1021,7 +1021,8 @@ class Meta:
'is_suppressed',
'suppressed_at',
'suppression_reason',
'last_indexed'
'last_ebi_search_indexed',
'last_mgx_indexed',
)


Expand Down Expand Up @@ -1410,7 +1411,7 @@ class Meta:
'is_suppressed',
'suppression_reason',
'suppressed_at',
'last_indexed',
'last_ebi_search_indexed',
)


Expand Down

0 comments on commit 60d2a37

Please sign in to comment.