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
Add clickable action to monitoring dashboard graph #3954
Conversation
/kind feature |
@@ -69,6 +71,7 @@ type PrometheusGraphLinkProps = { | |||
canAccessMonitoring: boolean; | |||
perspective: string; | |||
query: string; | |||
namespace: string; |
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.
should we have namespace
as optional here
React.useEffect(() => { | ||
patchQuery({ text: params.query0 }); | ||
runQueries(); | ||
}, [params, patchQuery, runQueries]); |
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.
can we extract it above and just have query0
as dependency to useEffect
instead of params
5b72d57
to
5f37b1b
Compare
@@ -6,7 +6,7 @@ import { TechPreviewBadge, ALL_NAMESPACES_KEY } from '@console/shared'; | |||
import NamespacedPage, { NamespacedPageVariants } from '../NamespacedPage'; | |||
import ProjectListPage from '../projects/ProjectListPage'; | |||
import MonitoringDashboard from './dashboard/MonitoringDashboard'; | |||
import MonitoringMetrics from './metrics/MonitoringMetrics'; | |||
import ConectedMonitoringMetrics from './metrics/MonitoringMetrics'; |
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.
nit: typo ConnectedMonitoringMetrics
f730609
to
1315ef9
Compare
/approve |
/lgtm verified locally works as expected |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: christianvogt, invincibleJai, 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. |
1 similar comment
/retest Please review the full test history for this PR and help us cut down flakes. |
Story - https://issues.redhat.com/browse/ODC-2588
Review this commit - ff608ae