webpack/redux/actions/RedHatRepositories/helpers.js in katello-3.9.1 vs webpack/redux/actions/RedHatRepositories/helpers.js in katello-3.10.0.rc1
- old
+ new
@@ -51,9 +51,13 @@
export const repoTypeFilterToSearchQuery = filters => filters
.map(f => `(${maptToSearchQuery(f)})`)
.join(' or ');
+export const productsIdsToSearchQuery = productIds => productIds
+ .map(id => `(product_id = "${id}")`)
+ .join(' or ');
+
export const joinSearchQueries = parts => parts
.filter(v => (v && v !== ''))
.map(v => `(${v})`)
.join(' and ');