Filter content-sources repos by origin and content_type

This commit is contained in:
Justin Sherrill 2023-09-15 16:39:29 -04:00 committed by Lucas Garfield
parent 99ae627007
commit 5d6b6dfbfe
7 changed files with 142 additions and 3 deletions

View file

@ -49,6 +49,8 @@ const CustomButtons = ({
prefetchRepositories({
availableForArch: 'x86_64',
availableForVersion: version,
contentType: 'rpm',
origin: 'external',
});
}
};

View file

@ -212,6 +212,8 @@ const Repositories = (props) => {
{
availableForArch: 'x86_64',
availableForVersion: version,
contentType: 'rpm',
origin: 'external',
limit: 100,
offset: 0,
},
@ -230,6 +232,8 @@ const Repositories = (props) => {
{
availableForArch: 'x86_64',
availableForVersion: version,
contentType: 'rpm',
origin: 'external',
limit: firstRequest?.data?.meta?.count,
offset: 0,
},

View file

@ -18,6 +18,8 @@ import { useListRepositoriesQuery } from '../../../store/contentSourcesApi';
const RepoName = ({ repoUrl }) => {
const { data, isSuccess, isFetching, isError } = useListRepositoriesQuery({
url: repoUrl,
contentType: 'rpm',
origin: 'external',
});
const errorLoading = () => {