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 1806914: redirect to topology when resource created from dev-catalog #4459
Bug 1806914: redirect to topology when resource created from dev-catalog #4459
Conversation
@sahil143: This pull request references Bugzilla bug 1806914, 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. |
)}/${referenceForModel(operandModel)}`, | ||
), | ||
) | ||
.then(() => history.push(`/topology`)) |
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.
Maybe check for dev perspective? Not sure we want to do this at all times.
/kind bug |
f079ca5
to
8c2fcf1
Compare
8c2fcf1
to
7f2aa16
Compare
/retest |
)}/${referenceForModel(operandModel)}`, | ||
), | ||
) | ||
params.has('redirect') |
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.
Why not use perspective extension to get the redirect URL based on perspective similar to how import from git does it right now?
@@ -346,7 +357,7 @@ export class CatalogTileViewPage extends React.Component< | |||
<div className="co-catalog-page__overlay-actions"> | |||
<Link | |||
className="pf-c-button pf-m-primary co-catalog-page__overlay-action" | |||
to={detailsItem.href} | |||
to={this.appendTopologyRedirect(detailsItem.href)} |
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.
It's just hard coding the URL redirect to topology which means that user can be in any perspective and still he will be redirected to topology. Is this the behavior that we want here? I would prefer if the redirect happens based on current perspective. cc: @christianvogt
Below screencast shows that even if the user is in admin perspective, he is redirected to topology.
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.
This can be avoided now that the implementation is changed to use active Perspective.
)}/${props.match.params.plural}`; | ||
const resourceObjPath = () => { | ||
const params = new URLSearchParams(window.location.href); | ||
return params.has('redirect') |
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.
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.
@rohitkrai03 Not sure why the param is being removed but I changed the implementation to use activePerspective.
7f2aa16
to
8c2fcf1
Compare
/assign |
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
We want to provide a catalog extension in the future for contributing items to the dev catalog. In doing that we will refactor how operands are created via the catalog to avoid reusing the same shared route. We will then remove the additions here which redirect to topology. |
What happens when the template instance fails? This might also be really confusing if the template doesn't create any resources that are visible in the topology. |
I have a similar question for operator-backed resources. Will the thing you create and its status always be apparent from the topology page? |
@spadgett had the same concerns before and UX said they wanted to always redirect to topology out of the dev catalog in the developer perspective. cc @openshift/team-devconsole-ux |
/approve |
45369f0
to
ccded55
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: andrewballantyne, christianvogt, rohitkrai03, sahil143 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 |
/test e2e-gcp-console |
/retest Please review the full test history for this PR and help us cut down flakes. |
2 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. |
@sahil143: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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. I understand the commands that are listed here. |
/retest Please review the full test history for this PR and help us cut down flakes. |
6 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. |
add activePErspective
ccded55
to
1d7137f
Compare
/retest |
/cherrypick release-4.4 |
@sahil143: 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. |
@sahil143: All pull requests linked via external trackers have merged. Bugzilla bug 1806914 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. |
@sahil143: #4459 failed to apply on top of branch "release-4.4":
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. |
/cherrypick release-4.4 |
@sahil143: new pull request created: #4661 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. |
ODC-Bug: https://issues.redhat.com/browse/ODC-3152
This PR adds functionality to redirect page to the topology page when a resource is installed from dev-catalog.
Template
Operator-backed