Closed arschat closed 4 months ago
create an NRES project from accession fails but that fails in prod as well. GEO to HCA script is known to have problems and needs to be updated so we can skip these tests.
Test: Pass
Test: Pass
Test: Pass
Test: Pass
Test: Pass
Test: Pass
create an NRES project from accession fails but that fails in prod as well. GEO to HCA script is known to have problems and needs to be updated so we can skip these tests.
Test: pass
Test: pass
Test: Pass
Test: pass
Test: pass
"data_use_restriction": "GRU"
without the DUOS-ID
should have required property 'duos_id
and in the UI the field is shown but is unspecified
Test: Pass
{ "content": { "describedBy": "https://schema.staging.data.humancellatlas.org/type/project/17.1.1/project", "schema_type": "project", "project_core": { "project_short_name": "TestDowngradeProjectVersion", "project_title": "test downgrade project schema to 17.1.1", "project_description": "test downgrade project schema to 17.1.1" }, "contributors": [ { "name": "Arsenios,,Chatzigeorgiou", "email": "arsenios@ebi.ac.uk", "institution": "EMBL-EBI", "corresponding_contributor": true } ], "funders": [ { "grant_id": "82030097", "organization": "NCI NIH HHS" } ] } } Test: Pass
{ "content": { "describedBy": "https://schema.staging.data.humancellatlas.org/type/project/19.0.0/project", "schema_type": "project", "project_core": { "project_short_name": "TestNRESfrom17-1-1", "project_title": "Arsenios Test DUOS Bump from 17.1.1 to NRES", "project_description": "Arsenios Test DUOS Bump from 17.1.1 to NRES" }, "contributors": [ { "name": "Arsenios,,Chatzigeorgiou", "email": "arsenios@ebi.ac.uk", "institution": "Department of OMNI Bioinformatics, Genentech, South San Francisco, CA 94080, USA", "corresponding_contributor": true } ], "funders": [ { "grant_id": "2019LJ002", "organization": "lefta" } ], "data_use_restriction": "NRES" } }
Test: Pass
Test: Pass
Two very minor bugs found:
unless we pick another option from the data_use_restriction and then it is editable (and then we can select again the original option and edit the duos-id)
In the interest of finding the different cases that we might come up in backfilling, I investigated the project_schema versions in ingest.
from hca_ingest.api.ingestapi import IngestApi from collections import Counter
api = IngestApi(url="https://api.ingest.archive.data.humancellatlas.org/") api.set_token(f"bearer {token}")
all_url = 'https://api.ingest.archive.data.humancellatlas.org/projects/' all_projects = api.get_all(all_url, 'projects')
versions = [] for project in all_projects: versions.append(projects['content']['describedBy'][47:53])
Counter(versions)
The output was:
'19.0.0': 13 '18.0.0': 10 '17.1.1': 205 '17.1.0': 5 '17.0.0': 888 '14.1.0': 1 'type/p': 1
type/p
is from a project with the project version being from staging enviorment14.1.0
is from the project 5116c081-8be7-49c5-8ce0-73b887328aa9Therefore, in case of bump version from 17 and above, we only need to change the schema version and add the data_use_restriction
and duos-id
if needed.
In case of bump from version 14.1.0 we need to fill official_hca_publication
field as well.
Description of the task:
List and test a number of different cases that we might encounter with the usage of
Data use restriction
&DUOS ID
, in ingest UI described in #999. Feature is deployed in staging, where the test can be done.First comment will include the list of cases, and in following comments a step by step reproduction of the case and test result should be included.
Acceptance criteria for the task: