Skip to content
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

Merged
merged 1 commit into from
Sep 10, 2021

Conversation

frode-aarstad
Copy link
Contributor

@frode-aarstad frode-aarstad commented Sep 7, 2021

ert_shared/libres_facade.py Outdated Show resolved Hide resolved
ert_shared/storage/main.py Outdated Show resolved Hide resolved
@frode-aarstad frode-aarstad marked this pull request as ready for review September 9, 2021 10:29
@frode-aarstad frode-aarstad force-pushed the parameters_api branch 2 times, most recently from 16fd445 to 16150ea Compare September 10, 2021 09:12
Copy link
Contributor

@oysteoh oysteoh left a 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! 👍



def test_get_ensemble_parameters(poly_example_tmp_dir, dark_storage_client):
ensemble_id = uuid.uuid4()
Copy link
Contributor

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()?

Copy link
Contributor Author

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

Copy link
Contributor

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... ?

Copy link
Contributor

@oysteoh oysteoh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@frode-aarstad frode-aarstad merged commit 61ae3b8 into equinor:main Sep 10, 2021
@frode-aarstad frode-aarstad deleted the parameters_api branch September 10, 2021 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement parameter endpoint
2 participants