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

Do no create experiment and case on start-up #5799

Merged
merged 1 commit into from
Aug 7, 2023
Merged

Conversation

dafeda
Copy link
Contributor

@dafeda dafeda commented Aug 3, 2023

This fixes the bug where we end up with two default-cases when running a single experiment.

I propose we initially set the drop-down list of cases as inactive:

Screenshot 2023-08-07 at 09 19 37

The drop-down list will be set to active when gui updates. The drop-down list stays inactive while the simulation window is open though. This could perhaps be fixed.

Screenshot 2023-08-07 at 09 22 09

Once closed though, the list is updated:

Screenshot 2023-08-07 at 09 24 28

The Initialize button in "Initialize from scratch" is now deactivated if there are no cases:

Screenshot 2023-08-07 at 12 24 37

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.
  • Updated documentation
  • Ensured new behaviour is tested

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

@dafeda dafeda self-assigned this Aug 3, 2023
@dafeda dafeda added the release-notes:skip If there should be no mention of this in release notes label Aug 3, 2023
@dafeda dafeda requested a review from oyvindeide August 3, 2023 13:35
@dafeda dafeda force-pushed the no_default branch 2 times, most recently from 9e886bd to 29a3575 Compare August 7, 2023 10:23
@dafeda dafeda added release-notes:bug-fix Automatically categorise as bug fix in release notes and removed release-notes:skip If there should be no mention of this in release notes labels Aug 7, 2023
This fixes the bug where we end up with two default-cases
when running a single experiment.

Deactivating current case drop-down list, and
initialize-button in initialize from scratch if there are no
cases.
Copy link
Collaborator

@oyvindeide oyvindeide left a comment

Choose a reason for hiding this comment

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

Behaves as I would expect, LGTM!

@dafeda dafeda merged commit bc87957 into equinor:main Aug 7, 2023
40 of 42 checks passed
@dafeda dafeda deleted the no_default branch August 7, 2023 16:11
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
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants