-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add parameter endpoints for REST and graphQL #2007
Conversation
58b34a6
to
e235ccf
Compare
99808e5
to
8a47b80
Compare
16fd445
to
16150ea
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
squash commits - other than that is seems to work as expected! 👍
16150ea
to
cf7223d
Compare
|
||
|
||
def test_get_ensemble_parameters(poly_example_tmp_dir, dark_storage_client): | ||
ensemble_id = uuid.uuid4() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry, did not discover this when i looked at the code earlier.. but would it make more sense doing something like
resp: Response = dark_storage_client.get("/experiments")
experiment_json = resp.json()
ensemble_id = experiment_json[0]["ensemble_ids"][0]
to get the ensemble id to ask for instead of generating an id? And with that it should be possible to avoid the changes in lines 56-61 in enkf.py
- get_name()
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The best way of solving the changes in enkf.py
is probably to update the ids
during initialization/startup. This way calling GET /experiments/some random uuis/parameters would not crash
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
guess this is a perfect issue to discuss on tuesday on our small technical planning - how to initialize and generate the id's... ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
Resolves equinor/ert-storage#151