-
Notifications
You must be signed in to change notification settings - Fork 131
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
fix(app): RHIDP-2266 add condition error handling #1245
Conversation
The image is available at: |
The image is available at: |
The image is available at: |
/retest |
The image is available at: |
The image is available at: |
Verified this is working great. I have this config
As well as an exception in
When tested on main branch it throws an error and breaks the entire UI. While with this PR's update it loads the rest of catalog entity tabs only the simple-test-component doesn't get load. Also the warning in console shows up as expected. |
/lgtm |
verfied the changes locally |
/approve |
This change adds exception handling to the two points where plugin supplied condition functions are evaluated, once when rendering the catalog entity tabs, and a second time when a plugin's mountpoint configuration is being checked. This change also makes the ApiHolder context object available as a 2nd argument; available at the second evaluation point. Signed-off-by: Stan Lewis <gashcrumb@gmail.com>
Quality Gate passedIssues Measures |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ciiay, debsmita1, invincibleJai The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
The image is available at: |
/retest |
/retest |
/retest |
Description
This change adds exception handling to the two points where plugin supplied condition functions are evaluated, once when rendering the catalog entity tabs, and a second time when a plugin's mountpoint configuration is being checked. This change also makes the ApiHolder context object available as a 2nd argument; available at the second evaluation point.
Which issue(s) does this PR fix
PR acceptance criteria
Please make sure that the following steps are complete:
How to test changes / Special notes to the reviewer
An easy way to test this is to throw an exception from here and use this plugin. The configuration for this would look like: