create topology side panel using dynamic plugin extensions#9306
create topology side panel using dynamic plugin extensions#9306openshift-merge-robot merged 5 commits intoopenshift:masterfrom
Conversation
|
/retest |
84bcbcd to
bae8517
Compare
There was a problem hiding this comment.
link function will be called twice on the last match instead of only once.
There was a problem hiding this comment.
yes, this is intentional as we need to find the callback that doesn't return null and undefined and get result from that callback.
Couldn't find a lodash utility that does this.
There was a problem hiding this comment.
Is this a WIP for another PR? If so add a comment.
If not, you should make use of the actions extensions to populate a menu.
There was a problem hiding this comment.
Don't we store these values in user settings for health checks?
There was a problem hiding this comment.
Why is this added to the API?
I don't think an alert needs to know when it is dismissed.
There was a problem hiding this comment.
Why remove the type?
There was a problem hiding this comment.
keys should be unique
There was a problem hiding this comment.
We're going to have a lot of sections.
The first check must be made efficiently to filter out all the sections which do not apply to the given element.
These should not be rendered as a hook.
After successfully passing the check, they should return a component which itself can use hooks within.
There was a problem hiding this comment.
There needs to be a fallback resource link if one is not supplied via extension.
- extract the resource and create a ResourceLink
- render a non-linkable text based on the element's label
There was a problem hiding this comment.
Why both before and after properties?
Note that the order in which they are defined should remain in tact so long as they are defined by the same plugin.
Therefore if the helm plugin is contributing all help sections, we should not even need to define the before or after properties.
bcb77f4 to
7b8963f
Compare
7b8963f to
61ac134
Compare
|
/assign |
rohitkrai03
left a comment
There was a problem hiding this comment.
/approve
Changes looks good to me. Tested locally. Works as expected.
|
/lgtm |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
4 similar comments
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
7 similar comments
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
|
/hold CI is continuously failing. |
61ac134 to
d29c2e2
Compare
| const { t } = useTranslation(); | ||
| const actions = React.useMemo( | ||
| () => [ | ||
| getHelmUpgradeAction(scope, t), | ||
| getHelmRollbackAction(scope, t), | ||
| getHelmDeleteAction(scope, t), | ||
| ], | ||
| [scope, t], | ||
| ); |
There was a problem hiding this comment.
We can actually re use the original provider.
| const { t } = useTranslation(); | |
| const actions = React.useMemo( | |
| () => [ | |
| getHelmUpgradeAction(scope, t), | |
| getHelmRollbackAction(scope, t), | |
| getHelmDeleteAction(scope, t), | |
| ], | |
| [scope, t], | |
| ); | |
| const actions = useHelmActionProvider(scope); |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: rohitkrai03, sahil143 The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/retest |
|
/retest |
|
/hold cancel |
fixes: https://issues.redhat.com/browse/ODC-5845
This PR creates the topology side panel to use the dynamic plugin extensions