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
Bug 1807561: show edit option for only resources created via add flow. #4506
Conversation
/retitle Bug 1807561: show edit option for only resources created via add flow. |
@vikram-raj: This pull request references Bugzilla bug 1807561, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/kind bug |
@vikram-raj: This pull request references Bugzilla bug 1807561, which is valid. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
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.
@vikram-raj Clicking/Right-Click on one of the StatefulSets Breaks the UI.
@sahil143 I fixed the issue. PTAL again. |
/bugzilla refresh The requirements for Bugzilla bugs have changed, recalculating validity. |
@openshift-bot: This pull request references Bugzilla bug 1807561, which is valid. 3 validation(s) were run on this bug
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
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.
/lgtm
verified changes locally. Works as expected. Edit flows is disabled(except for the Knative Services) for all the resources that are not created through import flows.
Edit flow is enable for Knative Services created via CLI because this has been fixed in this PR #4464. cc: @invincibleJai |
@@ -25,8 +26,13 @@ export const ModifyApplication = (kind: K8sKind, obj: K8sResourceKind): KebabOpt | |||
}; | |||
|
|||
export const EditApplication = (model: K8sKind, obj: K8sResourceKind): KebabOption => { | |||
const annotation = |
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.
Use optional chaining.
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.
Done.
hidden: | ||
(obj.kind !== ServiceModel.kind && !annotation) || | ||
(annotation && annotation !== 'OpenShiftWebConsole'), |
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.
I'd prefer if we had 2 actions: EditApplication
and EditWebConsoleGeneratedApplication
(naming is hard...)
The first is the current action with no hidden
property and it will be used by knative service.
The second will be used by DC and D models.
Note that a further change is needed still in dev-console/src/utils/kebab-actions
to ensure we only contribute this action to D and DC. Currently it's also present for DS and SS.
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.
I will add 2 separate actions EditApplication
for knative resources and EditWebConsoleGeneratedApplication
for DC and D. And no actions DS and SS.
@invincibleJai are you sure all other flows are working for KSVC generated outside the console? |
@invincibleJai I'm a bit reluctant to enable this for knative service still. Are you sure we can support import from git and container flows if similar resources are created but omit certain details or don't match the same naming scheme for related resources. |
/lgtm |
/cherry-pick release-4.4 |
@vikram-raj: once the present PR merges, I will cherry-pick it on top of release-4.4 in a new PR and assign it to you. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: christianvogt, invincibleJai, sahil143, vikram-raj 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 |
/retest Please review the full test history for this PR and help us cut down flakes. |
11 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. |
/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. |
@vikram-raj: All pull requests linked via external trackers have merged. Bugzilla bug 1807561 has been moved to the MODIFIED state. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@vikram-raj: new pull request created: #4608 In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Fixes:
https://issues.redhat.com/browse/ODC-2975
Analysis / Root cause:
In some cases edit resource is not working if resources is not created via add flow.
Solution Description:
The option to
Edit ${resource name}
on a workload should only be available if the workload was created via theAdd
flow.GIF:
Browser conformance: