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

Ensure keys can contain "/" #8818

Merged
merged 5 commits into from
Oct 11, 2024

Conversation

eivindjahren
Copy link
Contributor

@eivindjahren eivindjahren commented Sep 27, 2024

Issue
Resolves #8716
Resolves #8944

Need to make the following change to webviz-ert: equinor/webviz-ert#475

  • PR title captures the intent of the changes, and is fitting for release notes.
  • Added appropriate release note label
  • Commit history is consistent and clean, in line with the contribution guidelines.
  • Make sure unit tests pass locally after every commit (git rebase -i main --exec 'pytest tests/ert/unit_tests -n logical -m "not integration_test"')

When applicable

  • When there are user facing changes: Updated documentation
  • New behavior or changes to existing untested code: Ensured that unit tests are added (See Ground Rules).
  • Large PR: Prepare changes in small commits for more convenient review
  • Bug fix: Add regression test for the bug
  • Bug fix: Create Backport PR to latest release

@eivindjahren eivindjahren force-pushed the stateful_dark_storage_test branch 4 times, most recently from 5bcc770 to e913fdb Compare October 4, 2024 07:27
@eivindjahren eivindjahren changed the title Stateful dark storage test Escape keys in plot_api Oct 7, 2024
@eivindjahren eivindjahren force-pushed the stateful_dark_storage_test branch 9 times, most recently from daffeed to 6d9750d Compare October 11, 2024 04:29
@eivindjahren eivindjahren requested a review from DanSava October 11, 2024 04:39
@eivindjahren eivindjahren force-pushed the stateful_dark_storage_test branch from 41e2574 to 84948e6 Compare October 11, 2024 04:40
@eivindjahren eivindjahren force-pushed the stateful_dark_storage_test branch from 84948e6 to a9bc2ed Compare October 11, 2024 04:53
@eivindjahren eivindjahren added the release-notes:bug-fix Automatically categorise as bug fix in release notes label Oct 11, 2024
@eivindjahren eivindjahren changed the title Escape keys in plot_api Ensure keys can contain "/" Oct 11, 2024
@eivindjahren eivindjahren force-pushed the stateful_dark_storage_test branch from a9bc2ed to a58610d Compare October 11, 2024 05:36
@eivindjahren eivindjahren marked this pull request as ready for review October 11, 2024 06:10
@eivindjahren eivindjahren force-pushed the stateful_dark_storage_test branch from a58610d to e5934eb Compare October 11, 2024 06:10
@codecov-commenter
Copy link

codecov-commenter commented Oct 11, 2024

Codecov Report

Attention: Patch coverage is 90.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 91.70%. Comparing base (06c6dc6) to head (d1363a3).
Report is 6 commits behind head on main.

Files with missing lines Patch % Lines
src/ert/dark_storage/endpoints/records.py 75.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8818      +/-   ##
==========================================
+ Coverage   91.67%   91.70%   +0.03%     
==========================================
  Files         343      343              
  Lines       21153    21243      +90     
==========================================
+ Hits        19392    19481      +89     
- Misses       1761     1762       +1     
Flag Coverage Δ
cli-tests 39.77% <0.00%> (-0.07%) ⬇️
gui-tests 73.64% <50.00%> (-0.23%) ⬇️
performance-tests 50.34% <60.00%> (-0.12%) ⬇️
unit-tests 80.39% <80.00%> (+0.08%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@eivindjahren eivindjahren force-pushed the stateful_dark_storage_test branch from 94ee1ae to 7d8d5df Compare October 11, 2024 07:41
@rule(model_ensemble=StatefulStorageTest.ensembles, data=st.data())
def get_response_csv_through_client(self, model_ensemble, data):
assume(model_ensemble.response_values)
print(model_ensemble.response_values)
Copy link
Contributor

Choose a reason for hiding this comment

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

Forgot this one?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

self.client.get("/updates/storage")
response = self.client.get("/experiments")
experiment_records = response.json()
assert len(experiment_records) == len(list(self.storage.experiments))
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we check that this is not zero also?

Copy link
Contributor Author

@eivindjahren eivindjahren Oct 11, 2024

Choose a reason for hiding this comment

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

It could be empty if we haven't initialized anything in storage yet.

@eivindjahren eivindjahren force-pushed the stateful_dark_storage_test branch from 7d8d5df to d1363a3 Compare October 11, 2024 08:31
Copy link
Contributor

@andreas-el andreas-el left a comment

Choose a reason for hiding this comment

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

💯

@eivindjahren eivindjahren merged commit ed4ba12 into equinor:main Oct 11, 2024
56 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-notes:bug-fix Automatically categorise as bug fix in release notes
Projects
None yet
3 participants