-
Notifications
You must be signed in to change notification settings - Fork 6
Update run to reset log suppression after running component #486
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
Conversation
@BHoMBot check compliance |
@FraserGreenroyd to confirm, the following actions are now queued:
There are 12 requests in the queue ahead of you. |
@BHoMBot check core |
@FraserGreenroyd to confirm, the following actions are now queued:
There are 12 requests in the queue ahead of you. |
@FraserGreenroyd just to let you know, I have provided a |
@FraserGreenroyd just to let you know, I have provided a |
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.
Makes sense, and doesn't break current bhom UI function. Also correctly resets the error suppression to what it was originally.
@BHoMBot check ready-to-merge |
@Tom-Kingstone to confirm, the following actions are now queued:
|
did more testing and found that stopping suppression no longer works
@FraserGreenroyd to confirm, the following actions are now queued:
|
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.
Approval based on discussion, and after testing, errors are suppressed within the called method if the method suppresses, and suppression is reset after method call.
@BHoMBot check ready-to-merge |
@Tom-Kingstone to confirm, the following actions are now queued:
|
NOTE: Depends on
BHoM/BHoM_Engine#3307
Issues addressed by this PR
Fixes #485
Additional comments
You may be wondering why I've opted to query the suppression state to then reset it, however, the use case for this is if a user of visual programming has, for whatever reason, opted to suppress things themselves, we don't want to blindly reset the suppression after a method runs in case it failed to reset it itself.
The UX on that would be this:
This could also be the case for methods which don't crash:
Therefore, the way of doing it in this PR allows for this UX instead:
Now, we can debate whether a user should ever be suppressing their own errors or not as much as we like (and I would gladly welcome it), however, BHoM philosophy is that methods are reflected up at all times, which is the case for suppressing events as well, which means that, regardless of how we feel as to whether users should do that, they can do it and thus we need to support that UX.
Hopefully that all makes sense!
Edit to capture a conversation had with @IsakNaslundBh:
While this works well for the use cases above and the use case captured in #485 , this does now mean the following situation is possible:
It's a convoluted system however, @IsakNaslundBh and I have both agreed this is an acceptable risk at this time because: