Fixes 4426: Confirm Image builder is using origin
This commit is contained in:
parent
7a18bd0abb
commit
be95cd9dc0
6 changed files with 23 additions and 8 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue