amazon-genomics-cli
amazon-genomics-cli copied to clipboard
Runs are exposed across contexts via the WES API
Describe the Bug
If a user has two MiniWDL contexts deployed in the same project, they can access the same set of runs via the /ga4hg/wes/v1/runs/{run_id}
endpoint regardless of what context they use. It does not appear that the runs are bound to a given context. The run list endpoint works appropriately and only shows runs that have been submitted to the individual context
Steps to Reproduce
- Create a new
MiniWDL
context (Not sure if this bug applies to other engines) - Run a workflow and record the
run_id
- Create a new MiniWDL context
- Using the WES API for the new context, visit the
GET /ga4gh/wes/v1/{run_id}
where the run_id was from the previous run
Expected Behavior
The API to return a 404
status error indicating that the run does not exist
Actual Behavior
The Old RunLog
from the previous context is returned
Screenshots
Additional Context
I am using the WES api directly
I agree, each context should have it's own APIGateway wes endpoint and it's own WES Adapter and that WES Adapter should not return information for runs that are not part of the same context.