Skip to content

Commit d472848

Browse files
authored
Merge pull request #3163 from antgonza/rm-ebi_status-study-list
rm ebi_status from the study lists
2 parents 16af20e + e81a125 commit d472848

File tree

6 files changed

+11
-27
lines changed

6 files changed

+11
-27
lines changed

Diff for: qiita_db/test/test_util.py

+5-10
Original file line numberDiff line numberDiff line change
@@ -866,10 +866,9 @@ def test_generate_study_list(self):
866866
USER('shared@foo.bar'), 'test_study_1', info=info)
867867

868868
snew_info = {
869-
'status': 'sandbox', 'study_title': 'test_study_1',
869+
'study_title': 'test_study_1',
870870
'metadata_complete': True, 'publication_pid': [],
871871
'artifact_biom_ids': [], 'autoloaded': False,
872-
'ebi_submission_status': 'not submitted',
873872
'study_id': new_study.id, 'ebi_study_accession': None,
874873
'owner': 'Shared', 'shared': [],
875874
'study_abstract': 'Some abstract goes here',
@@ -943,8 +942,6 @@ def _avoid_duplicated_tests(all_artifacts=False):
943942

944943
# make artifacts of prep 2 public
945944
PREP(2).artifact.visibility = 'public'
946-
exp1[0]['status'] = 'public'
947-
exp_both[0]['status'] = 'public'
948945
_avoid_duplicated_tests()
949946

950947
# make artifacts of prep 1 awaiting_approval
@@ -977,10 +974,10 @@ def test_generate_study_list_without_artifacts(self):
977974
qdb.user.User('shared@foo.bar'), 'test_study_1', info=info)
978975

979976
exp_info = [
980-
{'status': 'private', 'study_title': (
977+
{'study_title': (
981978
'Identification of the Microbiomes for Cannabis Soils'),
982979
'metadata_complete': True, 'publication_pid': [
983-
'123456', '7891011'], 'ebi_submission_status': 'submitted',
980+
'123456', '7891011'],
984981
'study_id': 1, 'ebi_study_accession': 'EBI123456-BB',
985982
'autoloaded': False,
986983
'study_abstract': (
@@ -996,9 +993,9 @@ def test_generate_study_list_without_artifacts(self):
996993
'lifecycle.'), 'pi': ('PI_dude@foo.bar', 'PIDude'),
997994
'publication_doi': ['10.100/123456', '10.100/7891011'],
998995
'study_alias': 'Cannabis Soils', 'number_samples_collected': 27},
999-
{'status': 'sandbox', 'study_title': 'test_study_1',
996+
{'study_title': 'test_study_1',
1000997
'metadata_complete': True, 'publication_pid': [],
1001-
'ebi_submission_status': 'not submitted', 'autoloaded': False,
998+
'autoloaded': False,
1002999
'study_id': new_study.id, 'ebi_study_accession': None,
10031000
'study_abstract': 'Some abstract goes here',
10041001
'pi': ('lab_dude@foo.bar', 'LabDude'), 'publication_doi': [],
@@ -1284,7 +1281,6 @@ def test_purge_filepaths_test(self):
12841281
'study_id': 1,
12851282
'owner': 'Dude',
12861283
'study_alias': 'Cannabis Soils',
1287-
'status': 'private',
12881284
'study_abstract':
12891285
'This is a preliminary study to examine the microbiota '
12901286
'associated with the Cannabis plant. Soils samples '
@@ -1300,7 +1296,6 @@ def test_purge_filepaths_test(self):
13001296
'metadata_complete': True,
13011297
'autoloaded': False,
13021298
'ebi_study_accession': 'EBI123456-BB',
1303-
'ebi_submission_status': 'submitted',
13041299
'study_title':
13051300
'Identification of the Microbiomes for Cannabis Soils',
13061301
'number_samples_collected': 27,

Diff for: qiita_db/util.py

-6
Original file line numberDiff line numberDiff line change
@@ -1558,9 +1558,6 @@ def generate_study_list(user, visibility):
15581558
del info["shared_with_name"]
15591559
del info["shared_with_email"]
15601560

1561-
study = qdb.study.Study(info['study_id'])
1562-
info['status'] = study.status
1563-
info['ebi_submission_status'] = study.ebi_submission_status
15641561
infolist.append(info)
15651562
return infolist
15661563

@@ -1642,9 +1639,6 @@ def generate_study_list_without_artifacts(study_ids, portal=None):
16421639
del info["pi_email"]
16431640
del info["pi_name"]
16441641

1645-
study = qdb.study.Study(info['study_id'])
1646-
info['status'] = study.status
1647-
info['ebi_submission_status'] = study.ebi_submission_status
16481642
infolist.append(info)
16491643
return infolist
16501644

Diff for: qiita_pet/handlers/study_handlers/listing_handlers.py

+4-5
Original file line numberDiff line numberDiff line change
@@ -136,13 +136,12 @@ def get(self, ignore):
136136

137137
info[i]['pi'] = study_person_linkifier(info[i]['pi'])
138138

139-
info[i]['ebi_info'] = info[i]['ebi_submission_status']
139+
info[i]['ebi_info'] = ''
140140
ebi_study_accession = info[i]['ebi_study_accession']
141141
if ebi_study_accession:
142-
info[i]['ebi_info'] = '%s (%s)' % (
143-
''.join([EBI_LINKIFIER.format(a)
144-
for a in ebi_study_accession.split(',')]),
145-
info[i]['ebi_submission_status'])
142+
info[i]['ebi_info'] = ''.join([
143+
EBI_LINKIFIER.format(a)
144+
for a in ebi_study_accession.split(',')])
146145

147146
# build the table json
148147
results = {

Diff for: qiita_pet/handlers/study_handlers/tests/test_listing_handlers.py

-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,6 @@ def setUp(self):
138138
'study_title': ('Identification of the Microbiomes for '
139139
'Cannabis Soils'),
140140
'metadata_complete': True,
141-
'ebi_submission_status': 'submitted',
142141
'study_id': 1,
143142
'study_alias': 'Cannabis Soils',
144143
'owner': 'Dude',

Diff for: qiita_pet/templates/list_studies.html

-2
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@
7171
{ "data": "shared" },
7272
{ "data": "pi" },
7373
{ "data": "pubs" },
74-
{ "data": "status" },
7574
{ "data": "ebi_info" },
7675
{ "data": "study_alias" }],
7776
columnDefs: [
@@ -379,7 +378,6 @@ <h3 class="gray-msg">Your Studies</h3>
379378
<th>Shared With These Users</th>
380379
<th>Principal Investigator</th>
381380
<th>Publications</th>
382-
<th>Status</th>
383381
<th>Qiita EBI submission</th>
384382
<th>Study Alias</th>
385383
</tr>

Diff for: qiita_pet/test/test_qiita_redbiom.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,9 @@ def test_post_errors(self):
134134

135135

136136
DATA = [
137-
{'status': 'private',
138-
'study_title': 'Identification of the Microbiomes for Cannabis Soils',
137+
{'study_title': 'Identification of the Microbiomes for Cannabis Soils',
139138
'metadata_complete': True, 'publication_pid': ['123456', '7891011'],
140-
'ebi_submission_status': 'submitted', 'autoloaded': False,
139+
'autoloaded': False,
141140
'study_id': 1, 'ebi_study_accession': 'EBI123456-BB',
142141
'study_abstract': ('This is a preliminary study to examine the '
143142
'microbiota associated with the Cannabis plant. Soils '

0 commit comments

Comments
 (0)