5fbce37c1f6f078e410979b69c8f97a42d89de28,foreman/data_refinery_foreman/foreman/management/commands/retry_samples.py,,retry_computed_files_not_uploaded,#,94
Before Change
samples_with_computed_files = Sample.objects.filter(computed_files__s3_bucket__isnull=True).values("id")
sample_ids = {s["id"] for s in samples_with_results} | {s["id"] for s in samples_with_computed_files}
eligible_samples = Sample.objects.filter(id__in=sample_ids)
After Change
.filter(s3_bucket__isnull=True, samples__isnull=False)\
.values_list("samples", flat=True)
samples_with_results = ComputedFile.objects\
.filter(s3_bucket__isnull=True, result__samples__isnull=False)\
.values_list("result__samples", flat=True)
sample_ids = set(samples_with_results) | set(samples_with_computed_files)
eligible_samples = Sample.objects.filter(id__in=sample_ids)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: AlexsLemonade/refinebio
Commit Name: 5fbce37c1f6f078e410979b69c8f97a42d89de28
Time: 2019-09-23
Author: arielsvn@gmail.com
File Name: foreman/data_refinery_foreman/foreman/management/commands/retry_samples.py
Class Name:
Method Name: retry_computed_files_not_uploaded
Project Name: comic/grand-challenge.org
Commit Name: 10d3d6a4c3efdd13bf8f300e784669fe8b2c45e9
Time: 2019-11-07
Author: 57257130+MikeOverkamp-diag@users.noreply.github.com
File Name: app/grandchallenge/reader_studies/models.py
Class Name: ReaderStudy
Method Name: study_image_names
Project Name: AlexsLemonade/refinebio
Commit Name: 3fefda55783af82f565b757c44b70f5cb95fa779
Time: 2019-11-22
Author: arielsvn@gmail.com
File Name: common/data_refinery_common/models/models.py
Class Name: Experiment
Method Name: to_metadata_dict