fix(#13212): ui: usage details is missing on dashboard and ml model page (#13214)

Co-authored-by: Chirag Madlani <12962843+chirag-madlani@users.noreply.github.com>
This commit is contained in:
Sachin Chaurasiya 2023-09-20 00:20:15 +05:30 committed by GitHub
parent ad27b09fac
commit 2b77795162
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -120,6 +120,15 @@ export const getDataAssetsHeaderInfo = (
value={dashboardDetails.project}
/>
)}
{dashboardDetails?.usageSummary && (
<ExtraInfoLabel
label={t('label.usage')}
value={getUsagePercentile(
dashboardDetails.usageSummary?.weeklyStats?.percentileRank || 0,
false
)}
/>
)}
</>
);
@ -179,6 +188,15 @@ export const getDataAssetsHeaderInfo = (
value={entityName}
/>
)}
{mlModelDetail?.usageSummary && (
<ExtraInfoLabel
label={t('label.usage')}
value={getUsagePercentile(
mlModelDetail.usageSummary?.weeklyStats?.percentileRank || 0,
false
)}
/>
)}
</>
);