Skip to content

Commit a34952a

Browse files
regexowlkingsleyzissou
authored andcommitted
ImagesTable: Remove Azure source id
Azure source_id is no longer included in the API, should we remove it?
1 parent 5a6c2a4 commit a34952a

File tree

1 file changed

+0
-32
lines changed

1 file changed

+0
-32
lines changed

src/Components/ImagesTable/ImageDetails.tsx

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -73,29 +73,6 @@ const SourceNotFoundPopover = () => {
7373
);
7474
};
7575

76-
type AzureSourceNamePropTypes = {
77-
id: string;
78-
};
79-
80-
const AzureSourceName = ({ id }: AzureSourceNamePropTypes) => {
81-
const { data: rawSources, isSuccess } = useGetSourceListQuery({
82-
provider: 'azure',
83-
});
84-
85-
if (!isSuccess) {
86-
return <Skeleton />;
87-
}
88-
89-
const sources = extractProvisioningList(rawSources);
90-
91-
const sourcename = sources?.find((source) => source?.id === id);
92-
if (sourcename) {
93-
return <p>{sourcename.name}</p>;
94-
}
95-
96-
return <SourceNotFoundPopover />;
97-
};
98-
9976
type AwsSourceNamePropTypes = {
10077
id: string;
10178
};
@@ -248,7 +225,6 @@ export const AzureDetails = ({ compose }: AzureDetailsPropTypes) => {
248225
);
249226
}
250227

251-
const sourceId = options.source_id;
252228
const resourceGroup = options.resource_group;
253229

254230
const uploadStatus = composeStatus?.image_status.upload_status?.options;
@@ -281,14 +257,6 @@ export const AzureDetails = ({ compose }: AzureDetailsPropTypes) => {
281257
{compose.request.image_requests[0].architecture}
282258
</DescriptionListDescription>
283259
</DescriptionListGroup>
284-
{sourceId && (
285-
<DescriptionListGroup>
286-
<DescriptionListTerm>Source</DescriptionListTerm>
287-
<DescriptionListDescription>
288-
<AzureSourceName id={sourceId} />
289-
</DescriptionListDescription>
290-
</DescriptionListGroup>
291-
)}
292260
<DescriptionListGroup>
293261
<DescriptionListTerm>Resource Group</DescriptionListTerm>
294262
<DescriptionListDescription>

0 commit comments

Comments
 (0)