-
Notifications
You must be signed in to change notification settings - Fork 98
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
feat(hpc-vmware-managed-vcd): add iam checks #13384
base: feat/hpc-vcd-beta
Are you sure you want to change the base?
Conversation
<EditableTileItem label={label} onClickEdit={() => {}} />, | ||
<EditableTileItem | ||
urn="urn" | ||
iamActions={[]} |
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 required to give empty array ? We cannot just no define iamActions
?
urn="urn" | ||
iamActions={[]} | ||
label={label} | ||
onClickEdit={() => {}} |
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 required to give empty function ? We cannot just no defineonClickEdit
?
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.
onClickEdit
is not an optional props on this component
(because this component is used to edit content, should not be used without an edit function)
return isLoading ? ( | ||
<OsdsSkeleton size={ODS_SKELETON_SIZE.xs} /> | ||
) : ( | ||
<Description>{vDatacentres?.data?.length.toString()}</Description> | ||
); |
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.
return isLoading ? ( | |
<OsdsSkeleton size={ODS_SKELETON_SIZE.xs} /> | |
) : ( | |
<Description>{vDatacentres?.data?.length.toString()}</Description> | |
); | |
if (isLoading) return <OsdsSkeleton size={ODS_SKELETON_SIZE.xs} /> | |
return <Description>{vDatacentres?.data?.length.toString()}</Description> |
export type Iam = { | ||
id: string; | ||
urn: string; | ||
displayName?: 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.
It's not a general Type ? It's not possible to export it on IAM module ? May be a suggestion for next developpement ?
84a5fc5
to
09bc957
Compare
@@ -49,6 +54,9 @@ export default function ComputeListingPage() { | |||
const { t } = useTranslation('hpc-vmware-managed-vcd/datacentres/compute'); | |||
const { t: tVdc } = useTranslation('hpc-vmware-managed-vcd/datacentres'); | |||
const navigate = useNavigate(); | |||
const { data: vcdOrganization, isLoading } = useManagedVcdOrganization({ |
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.
error management is missing
@@ -52,6 +57,9 @@ export default function StorageListingPage() { | |||
'hpc-vmware-managed-vcd/datacentres/compute', | |||
); | |||
const navigate = useNavigate(); | |||
const { data: vcdOrganization, isLoading } = useManagedVcdOrganization({ |
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.
error management is missing as well
value: isLoading ? ( | ||
<OsdsSkeleton /> | ||
) : ( | ||
<Description>{user?.email}</Description> | ||
), |
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 should we display Skeleton when isLoadingBillingServices while we might have user's data ?
value: isLoading ? ( | ||
<OsdsSkeleton /> | ||
) : ( | ||
<div className="flex-wrap"> | ||
<div className="flex items-center gap-x-2"> | ||
<OsdsLink disabled> | ||
{t('managed_vcd_dashboard_password_renew')} | ||
</OsdsLink> | ||
<OsdsTooltip className="flex items-center"> | ||
<OsdsIcon | ||
className="cursor-pointer" | ||
name={ODS_ICON_NAME.HELP} | ||
size={ODS_ICON_SIZE.xxs} | ||
color={ODS_THEME_COLOR_INTENT.text} | ||
/> | ||
<OsdsTooltipContent | ||
slot="tooltip-content" | ||
className="break-normal" | ||
> | ||
{t('managed_vcd_dashboard_password_tooltip')} | ||
</OsdsTooltipContent> | ||
</OsdsTooltip> | ||
</div> | ||
<OsdsChip | ||
inline | ||
color={ODS_THEME_COLOR_INTENT.primary} | ||
className="ml-3" | ||
size={ODS_CHIP_SIZE.sm} | ||
> | ||
{t('managed_vcd_dashboard_coming_soon')} | ||
</OsdsChip> | ||
</div> |
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 should we display Skeleton when isLoadingBillingServices while we have no data loading here ?
09bc957
to
8efbca5
Compare
ref: MANAGER-15226 Signed-off-by: Nicolas Pierre-charles <[email protected]>
8efbca5
to
2b3e8f6
Compare
Quality Gate failedFailed conditions |
ref: MANAGER-15226
develop
Only FR translations have been updatedBreaking change is mentioned in relevant commitsDescription
Related