Fixes 4426: Confirm Image builder is using origin

This commit is contained in:
Andrew Dewar 2024-08-15 13:15:32 -06:00 committed by Klara Simickova
parent 7a18bd0abb
commit be95cd9dc0
6 changed files with 23 additions and 8 deletions

View file

@ -11,6 +11,7 @@ import {
} from '@patternfly/react-core';
import { Table, Tbody, Td, Th, Thead, Tr } from '@patternfly/react-table';
import { ContentOrigin } from '../../../../constants';
import {
ApiSnapshotForDate,
useListRepositoriesQuery,
@ -36,7 +37,7 @@ const RepoName = ({ repoUrl }: repoPropType) => {
// @ts-ignore if repoUrl is undefined the query is going to get skipped, so it's safe to ignore the linter here
url: repoUrl,
contentType: 'rpm',
origin: 'external',
origin: ContentOrigin.EXTERNAL,
},
{ skip: !repoUrl }
);
@ -128,7 +129,7 @@ export const SnapshotTable = ({
}) => {
const { data, isSuccess, isLoading, isError } = useListRepositoriesQuery({
uuid: snapshotForDate.map(({ repository_uuid }) => repository_uuid).join(),
origin: 'red_hat,external', // Make sure to show both redhat and custom
origin: ContentOrigin.REDHAT + ',' + ContentOrigin.EXTERNAL, // Make sure to show both redhat and external
});
const isAfterSet = new Set(