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

Fetch storage server name, i.e. the config name, and use as title in webviz-ert #3767

Merged
merged 1 commit into from
Aug 17, 2022

Conversation

mortalisk
Copy link
Contributor

@mortalisk mortalisk commented Aug 16, 2022

Issue
Resolves equinor/webviz-ert#351

Approach
Make request to storage server before starting webviz-ert, and set it as the title in the webviz config.

Pre review checklist

  • Added appropriate release note label
  • PR title captures the intent of the changes, and is fitting for release notes.
  • Commit history is consistent and clean, in line with the contribution guidelines.

Adding labels helps the maintainers when writing release notes. This is the list of release note labels.

*,
res: LibresFacade = Depends(get_res),
) -> Mapping[str, Any]:
return {"name": res.user_config_file}
Copy link
Contributor

Choose a reason for hiding this comment

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

Peahaps only return the name of the config file not the whole path to make it more readable in a small tab

Copy link
Contributor

@frode-aarstad frode-aarstad left a comment

Choose a reason for hiding this comment

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

LGTM. Squash and merge

@codecov-commenter
Copy link

codecov-commenter commented Aug 17, 2022

Codecov Report

Merging #3767 (b11af3c) into main (fc11acb) will decrease coverage by 0.00%.
The diff coverage is 50.00%.

@@            Coverage Diff             @@
##             main    #3767      +/-   ##
==========================================
- Coverage   63.32%   63.31%   -0.01%     
==========================================
  Files         600      601       +1     
  Lines       45678    45701      +23     
  Branches     4145     4145              
==========================================
+ Hits        28926    28937      +11     
- Misses      15476    15489      +13     
+ Partials     1276     1275       -1     
Impacted Files Coverage Δ
src/ert/shared/services/webviz_ert_service.py 35.71% <25.00%> (-9.75%) ⬇️
src/ert/shared/main.py 80.63% <27.27%> (-1.75%) ⬇️
src/ert/shared/dark_storage/endpoints/server.py 77.77% <77.77%> (ø)
src/ert/shared/dark_storage/endpoints/__init__.py 100.00% <100.00%> (ø)
src/ert/simulator/simulation_context.py 87.36% <0.00%> (-2.11%) ⬇️
src/clib/lib/res_util/block_fs.cpp 67.62% <0.00%> (+0.40%) ⬆️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Display config name when using classical ert storage
3 participants