-
Notifications
You must be signed in to change notification settings - Fork 32
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
Fix tooltips messages in the graphs at DR Policy dashboard #1061
Fix tooltips messages in the graphs at DR Policy dashboard #1061
Conversation
@GowthamShanmugam Please review |
@TimothyAsirJeyasing: The following test failed, say
Full PR test history. Your PR dashboard. 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. |
plz add screenshots to the PR (all pages where changes have been made)... |
<p className="odf-dashboard-body"> | ||
Note: Only inbound values are displayed exclusively for block | ||
volumes (ceph rbd) and include snapshots from all applications | ||
excluding apps using file voluems (cephfs). |
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.
excluding apps using file voluems (cephfs). | |
excluding apps using file volumes (cephfs). |
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.
Here all text under Note should be muted
@@ -16,6 +19,12 @@ export const AlertsCard: React.FC = () => { | |||
alerts={alerts} | |||
AlertItemComponent={AlertItem} | |||
alertsFilter={filterDRAlerts} | |||
titleToolTip={ | |||
<Trans t={t}> | |||
<b>Note:</b> Alerts are deployed for both <b>ApplicationsSet</b>{' '} |
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.
<b>Note:</b> Alerts are deployed for both <b>ApplicationsSet</b>{' '} | |
<b>Note:</b> Alerts are deployed for both <b>ApplicationSet</b>{' '} |
<p className="odf-dashboard-body"> | ||
Note: Only inbound values are displayed exclusively for block | ||
volumes (ceph rbd) and include snapshots from all applications | ||
excluding apps using file voluems (cephfs). |
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.
excluding apps using file voluems (cephfs). | |
excluding apps using file volumes (cephfs). |
This graph provides an overview of the total number of snapshots | ||
synced across your clusters. | ||
</p> | ||
<p className="odf-dashboard-body"> |
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.
<p className="odf-dashboard-body"> | |
<p className="text-muted mco-cluster-app__text--margin-top"> |
incase mco-cluster-app__text--margin-top is giving too much space try to create new class
for the cluster i.e, rate at which data is replicated within the | ||
cluster. | ||
</p> | ||
<p className="odf-dashboard-body"> |
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.
<p className="odf-dashboard-body"> | |
refer: https://github.com/red-hat-storage/odf-console/pull/1061/files#r1343941666
<FieldLevelHelp> | ||
<Trans t={t}> | ||
<b>Note:</b> The applications count displayed herein pertain | ||
exclusively to <b>ApplicationsSet</b> type applications. |
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.
exclusively to <b>ApplicationsSet</b> type applications. | |
exclusively to <b>ApplicationSet</b> type applications. |
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 comment is still active
You missed two changes from UX:
|
39006b2
to
6280876
Compare
@@ -16,6 +19,12 @@ export const AlertsCard: React.FC = () => { | |||
alerts={alerts} | |||
AlertItemComponent={AlertItem} | |||
alertsFilter={filterDRAlerts} | |||
titleToolTip={ | |||
<Trans t={t}> | |||
<b>Note:</b> Alerts are deployed for both <b>ApplicationSet</b>{' '} |
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.
<b>Note:</b> Alerts are deployed for both <b>ApplicationSet</b>{' '} | |
<b>Note:</b> Alerts are displayed for both <b>ApplicationSet</b>{' '} |
protectedPVCData={protectedPVCData} | ||
clusterName={clusterName} | ||
selectedAppSet={null} |
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.
selectedAppSet={null} | |
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.
check this comment
const updateProtectedPVC = React.useCallback(() => { | ||
const placementInfo = selectedAppSet?.placementInfo?.[0]; | ||
|
||
const issueCount = | ||
protectedPVCData?.reduce((acc, protectedPVCItem) => { | ||
const drpcChecks = | ||
selectedAppSet && | ||
protectedPVCItem?.drpcName === placementInfo?.drpcName && | ||
protectedPVCItem?.drpcNamespace === placementInfo?.drpcNamespace; | ||
|
||
const replicationHealth = getVolumeReplicationHealth( | ||
getTimeDifferenceInSeconds(protectedPVCItem?.lastSyncTime), | ||
protectedPVCItem?.schedulingInterval | ||
)[0]; | ||
|
||
if ( | ||
(!selectedAppSet && | ||
replicationHealth !== VOLUME_REPLICATION_HEALTH.HEALTHY) || | ||
(selectedAppSet && | ||
drpcChecks && | ||
replicationHealth !== VOLUME_REPLICATION_HEALTH.HEALTHY) | ||
) { | ||
return acc + 1; | ||
} else { | ||
return acc; | ||
} | ||
}, 0) || 0; | ||
|
||
setProtectedPVC([protectedPVCData?.length || 0, issueCount]); | ||
}, [selectedAppSet, protectedPVCData, setProtectedPVC]); |
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.
const updateProtectedPVC = React.useCallback(() => { | |
const placementInfo = selectedAppSet?.placementInfo?.[0]; | |
const issueCount = | |
protectedPVCData?.reduce((acc, protectedPVCItem) => { | |
const drpcChecks = | |
selectedAppSet && | |
protectedPVCItem?.drpcName === placementInfo?.drpcName && | |
protectedPVCItem?.drpcNamespace === placementInfo?.drpcNamespace; | |
const replicationHealth = getVolumeReplicationHealth( | |
getTimeDifferenceInSeconds(protectedPVCItem?.lastSyncTime), | |
protectedPVCItem?.schedulingInterval | |
)[0]; | |
if ( | |
(!selectedAppSet && | |
replicationHealth !== VOLUME_REPLICATION_HEALTH.HEALTHY) || | |
(selectedAppSet && | |
drpcChecks && | |
replicationHealth !== VOLUME_REPLICATION_HEALTH.HEALTHY) | |
) { | |
return acc + 1; | |
} else { | |
return acc; | |
} | |
}, 0) || 0; | |
setProtectedPVC([protectedPVCData?.length || 0, issueCount]); | |
}, [selectedAppSet, protectedPVCData, setProtectedPVC]); | |
const updateProtectedPVC = React.useCallback(() => { | |
const placementInfo = selectedAppSet?.placementInfo?.[0]; | |
const issueCount = | |
protectedPVCData?.reduce((acc, protectedPVCItem) => { | |
const replicationHealth = getVolumeReplicationHealth( | |
getTimeDifferenceInSeconds(protectedPVCItem?.lastSyncTime), | |
protectedPVCItem?.schedulingInterval | |
)[0]; | |
!!selectedAppSet : | |
protectedPVCItem?.drpcName === placementInfo?.drpcName && | |
protectedPVCItem?.drpcNamespace === placementInfo?.drpcNamespace && | |
replicationHealth !== VOLUME_REPLICATION_HEALTH.HEALTHY && acc ++ | |
? replicationHealth !== VOLUME_REPLICATION_HEALTH.HEALTHY && acc ++ | |
return acc; | |
}, 0) || 0; | |
setProtectedPVC([protectedPVCData?.length || 0, issueCount]); | |
}, [selectedAppSet, protectedPVCData, setProtectedPVC]); |
<FieldLevelHelp> | ||
<Trans t={t}> | ||
<b>Note:</b> The applications count displayed herein pertain | ||
exclusively to <b>ApplicationsSet</b> type applications. |
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 comment is still active
packages/mco/constants/dashboard.ts
Outdated
@@ -1,4 +1,4 @@ | |||
export const ALL_APPS = 'All applications'; | |||
export const ALL_APPS = 'All applicationSet'; |
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.
export const ALL_APPS = 'All applicationSet'; | |
export const ALL_APPS = 'All ApplicationSet'; |
6280876
to
863b650
Compare
863b650
to
4de03e6
Compare
/retest |
/cherry-pick release-4.14 |
@GowthamShanmugam: once the present PR merges, I will cherry-pick it on top of release-4.14 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. |
/cherry-pick release-4.14-compatibility |
@GowthamShanmugam: once the present PR merges, I will cherry-pick it on top of release-4.14-compatibility 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. |
/approve |
/retest |
4de03e6
to
d7b9561
Compare
d7b9561
to
b7e5c7e
Compare
titleToolTip={ | ||
<Trans t={t}> | ||
The graph displays the total number of block volumes inbound | ||
snapshots, by cluster, from all AppicationSet and Subscription |
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.
snapshots, by cluster, from all AppicationSet and Subscription | |
snapshots, by cluster, from all ApplicationSet and Subscription |
<Trans t={t}> | ||
The graph displays the total number of block volumes inbound | ||
snapshots, by cluster, from all AppicationSet and Subscription | ||
type applications. Applications that use file volumes are excluded | ||
in the total snapshot count. | ||
</Trans> |
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.
<Trans t={t}> | |
The graph displays the total number of block volumes inbound | |
snapshots, by cluster, from all AppicationSet and Subscription | |
type applications. Applications that use file volumes are excluded | |
in the total snapshot count. | |
</Trans> | |
t(" | |
The graph displays the total number of block volumes inbound | |
snapshots, by cluster, from all AppicationSet and Subscription | |
type applications. Applications that use file volumes are excluded | |
in the total snapshot count.") |
try t instead of , we dont have any tags inside the string. And test once how it looks like in tooltip,
<Trans t={t}> | ||
The graph displays the average replication throughput inbound, by | ||
cluster, from all ApplicationSet and Subscription type | ||
applications. Applications that use file volumes are excluded in | ||
the replication throughput. | ||
</Trans> |
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.
same here, use t instead of
b7e5c7e
to
d25df0f
Compare
/retest |
import { | ||
HealthSection, | ||
PeerConnectionSection, | ||
ApplicationsSection, | ||
PVCsSection, | ||
// PVCsSection, |
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.
// PVCsSection, |
d25df0f
to
ad9e5b7
Compare
/hold cancel |
/hold |
@@ -228,33 +221,6 @@ export const ApplicationsSection: React.FC<ApplicationsSectionProps> = ({ | |||
); | |||
}; | |||
|
|||
export const PVCsSection: React.FC<PVCsSectionProps> = ({ |
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.
Remove dead code for PVCsSection component(All count_persistentvolumeclaim_total metrics-related queries have to be removed).
ad9e5b7
to
7a65f75
Compare
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: GowthamShanmugam, SanjalKatiyar, TimothyAsirJeyasing 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 cancel |
/hold cancel |
@GowthamShanmugam: new pull request created: #1070 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. |
@GowthamShanmugam: new pull request created: #1071 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. |
https://bugzilla.redhat.com/show_bug.cgi?id=2239093 https://bugzilla.redhat.com/show_bug.cgi?id=2239096 https://bugzilla.redhat.com/show_bug.cgi?id=2239101