Open Buwujiu opened 1 year ago
@Buwujiu @joneubank
The query below can be used to fetch a submitted analysis and see if there were any workflows run on it. A code change is needed to add the code filter.
{
analyses(filter: {analysisId: "<analysis_id>", code: "submission-song.collab", analysisState: PUBLISHED}) {
content {
analysisId
analysisType
studyId
analysisState
repositories {
code
country
name
organization
type
url
}
inputForRuns {
state
runId
repository
inputAnalyses {
analysisId
analysisType
studyId
}
}
}
}
}
For any analyses 'inputForRuns' will be empty if there are no workflows run on it yet. Otherwise it will have information that looks like this
"inputForRuns": [
{
"state": "COMPLETE",
"runId": "wes-59a5a5ff54e84fe9997ab276fb1d535d",
"repository": "https://github.com/icgc-argo-workflows/dna-seq-processing-wfs",
"inputAnalyses": [
{
"analysisId": "8e351daf-ca77-470d-b51d-afca77170dd9",
"analysisType": "sequencing_experiment",
"studyId": "SEQ-CA"
}
]
}
]
Attaching the PR here song-search#80
@lindaxiang @edsu7 to test in QA.
@Buwujiu @UmmulkiramR test the queries in QA
The current APIs support to list and filter analysis based on the following fields:
analysisId
analysisState
analysisType
analysisVersion
code
donorId
runId
sampleId
sampleType
specimenId
studyId
Question to @UmmulkiramR : why does one analysis return two repositories like following, what's the meaning of local song
?
"repositories": [
{
"code": "song.collab",
"country": "CA",
"name": "Cancer Genome Collaboratory",
"organization": "rdpc-collab",
"type": "S3",
"url": "https://song.rdpc-qa.cancercollaboratory.org"
},
{
"code": "song.collab",
"country": "CA",
"name": "local song",
"organization": "ICGC",
"type": "S3",
"url": "https://song.rdpc-qa.cancercollaboratory.org"
}
]
For any analyses 'inputForRuns' will be empty if there are no workflows run on it yet. Otherwise it can return Run information including state
, runId
, repository
and etc.
Tested by Linda and Edmund, ready for prod deploy.
Deployed on Prod.
@lindaxiang @edsu7 Can you give it a test in prod? Thank you!
Detailed Description
End goal is to have a ui to show submitted analyses(seq exp) and what wf have been done on these analyses if any question is does our current gateway api let us query these info??
2 things we want the api to do:
Exit Criteria