Closed FraserGreenroyd closed 6 months ago
@BHoMBot check compliance
@BHoMBot check core
@BHoMBot check ready-to-merge
@BHoMBot check versioning @BHoMBot check installer @BHoMBot check compliance @BHoMBot check core
@BHoMBot check ready-to-merge
NOTE: Depends on
https://github.com/BHoM/BHoM_Engine/pull/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: