webpack/redux/actions/RedHatRepositories/enabled.js in katello-3.9.1 vs webpack/redux/actions/RedHatRepositories/enabled.js in katello-3.10.0.rc1
- old
+ new
@@ -1,7 +1,12 @@
import api, { orgId } from '../../../services/api';
-import { normalizeRepositorySets, repoTypeFilterToSearchQuery, joinSearchQueries } from './helpers';
+import {
+ normalizeRepositorySets,
+ repoTypeFilterToSearchQuery,
+ productsIdsToSearchQuery,
+ joinSearchQueries,
+} from './helpers';
import { apiError, apiSuccess } from '../../../move_to_foreman/common/helpers.js';
import {
ENABLED_REPOSITORIES_REQUEST,
ENABLED_REPOSITORIES_SUCCESS,
@@ -21,9 +26,10 @@
export const createEnabledRepoParams = (extendedParams = {}) => {
const searchParams = extendedParams.search || {};
const search = joinSearchQueries([
'redhat = true',
repoTypeFilterToSearchQuery(searchParams.filters || []),
+ productsIdsToSearchQuery(searchParams.products || []),
searchParams.query,
]);
const repoParams = {
...{ organization_id: orgId(), enabled: 'true' },