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 1861473: Watch ConsoleLinks so they update in the UI without refreshing #6180
Bug 1861473: Watch ConsoleLinks so they update in the UI without refreshing #6180
Conversation
Need to revisit next week when I'm not working from a moving truck. :) |
2bd07af
to
dc26249
Compare
/bugzilla refresh |
@rhamilto: No Bugzilla bug is referenced in the title of this pull request. 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. |
@rhamilto: This pull request references Bugzilla bug 1861473, 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. 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.
@rhamilto I think we either need to change how the topology watches links or hold a single global watch like we do for APIService
frontend/packages/dev-console/src/components/guided-tour/GuidedTourText.tsx
Show resolved
Hide resolved
frontend/packages/dev-console/src/components/topology/TopologyEdgePanel.tsx
Outdated
Show resolved
Hide resolved
const [consoleLinks] = useK8sWatchResource<K8sResourceKind[]>({ | ||
isList: true, | ||
kind: referenceForModel(ConsoleLinkModel), | ||
}); | ||
const cheURL = getCheURL(consoleLinks); |
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.
You should be able to watch the one link with name che
. But again I think we should avoid a separate watch for each node.
frontend/public/components/dashboard/project-dashboard/project-dashboard.tsx
Show resolved
Hide resolved
dc26249
to
40d8e10
Compare
/hold for broken merge queue |
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
Thanks @rhamilto 👍
/hold cancel |
/retest |
/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. |
40d8e10
to
bfc3737
Compare
Rebase required. Please retag, @spadgett. |
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
/retest Please review the full test history for this PR and help us cut down flakes. |
1 similar comment
/retest Please review the full test history for this PR and help us cut down flakes. |
/hold Needs rebase again :( |
bfc3737
to
a04d5ef
Compare
/hold cancel Rebased. @spadgett, PTAL. |
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
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: rhamilto, spadgett 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 |
/hold for broken CI |
/hold cancel |
/retest |
/retest Please review the full test history for this PR and help us cut down flakes. |
@rhamilto: All pull requests linked via external trackers have merged: openshift/console#6180. Bugzilla bug 1861473 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. |
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1861473
Existing bug discovered: https://bugzilla.redhat.com/show_bug.cgi?id=1865930