-
Notifications
You must be signed in to change notification settings - Fork 15
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
Implement missing-info warnings #1004
Implement missing-info warnings #1004
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1004 +/- ##
==========================================
+ Coverage 68.84% 68.92% +0.07%
==========================================
Files 115 115
Lines 6417 6443 +26
==========================================
+ Hits 4418 4441 +23
- Misses 1999 2002 +3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Very good! |
1ae8749
to
870bd0c
Compare
if step is self.configure_step and not self.structure_model.confirmed: | ||
step.show_missing_information_warning() | ||
elif step is self.submit_step and not self.configure_model.confirmed: | ||
step.show_missing_information_warning() | ||
elif step is self.results_step and not self.submit_model.confirmed: | ||
step.show_missing_information_warning() |
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.
Instead of checking it manually, I think we can do this in an automatic manner: one step depends on its previous step.
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.
Yeah, probably. But maybe we can do that in another PR? Low on time at the moment. Let's try to get this in for the release and open an issue to revisit this.
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.
Good to me!
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.
Thanks for the work! Please open an issue after merging the PR.
870bd0c
to
e4d87d8
Compare
…1032) This PR resolves issues with #1004 (incorrect handling of step-to-step switching/rendering) by treating the app steps more uniformly. It also introduces a simple locking mechanism on submission that disconnects all observations of step confirmation, thus rendering the app in a "locked" state by permanently disabling confirm/submit buttons.
This PR introduces guards on subsequent steps that inform the user if dependencies have yet to be met, i.e., previous step(s) not confirmed.
Pros
Cons
*Not exactly true. The exploration is still available, but now in a prescribed (correct) order.
@cpignedoli @giovannipizzi thoughts?