From a5f796f8ac1f3a48bdd76acb3146b1acb578ef94 Mon Sep 17 00:00:00 2001 From: leSamo Date: Tue, 13 Jun 2023 16:32:33 +0200 Subject: [PATCH 1/9] Add advisory availability filter to both detail pages --- locales/en.json | 3 ++ .../AdvisoryAvailabilityFilter.js | 30 +++++++++++++++++++ .../SystemCves/SystemCveTableToolbar.js | 8 +++-- .../SmartComponents/SystemCves/SystemCves.js | 1 + .../SystemsExposedTable.js | 6 ++-- src/Helpers/Hooks.js | 3 +- src/Helpers/constants.js | 11 +++++++ src/Messages.js | 15 ++++++++++ 8 files changed, 72 insertions(+), 5 deletions(-) create mode 100644 src/Components/PresentationalComponents/Filters/PrimaryToolbarFilters/AdvisoryAvailabilityFilter.js diff --git a/locales/en.json b/locales/en.json index 53a4baff6..408659d83 100644 --- a/locales/en.json +++ b/locales/en.json @@ -13,6 +13,7 @@ "affectsSystems": "Systems", "ansibleRemediationTooltip": "You can create Ansible Playbooks and remediate your systems with Remediation application", "associatedCves": "Associated CVEs:", + "available": "Available", "businessRisk": "Business risk", "businessRiskHighToLow": "Business risk: High to Low", "businessRiskLowToHigh": "Business risk: Low to High", @@ -156,6 +157,7 @@ "filter.withoutSecurityRule": "Does not have security rule", "filterByAffectedSystems": "Filter by {count, plural, =-1 {affected systems} one {# system} other {# systems}}", "hasKnownExploit": "Has a known exploit", + "hideCvesWithoutAdvisories": "Hide CVEs without Advisories", "high": "High", "impactList.critical": "Critical", "impactList.high": "High", @@ -282,6 +284,7 @@ "selectPage": "Select page ({count, plural, one {# item} other {# items}})", "severityHighToLow": "Severity: High to Low", "severityLowToHigh": "Severity: Low to High", + "showCvesWithoutAdvisories": "Show CVEs without Advisories", "status": "Status", "systemKebab.disableAnalysis": "Disable Vulnerability analysis on {count, plural, one {system} other {systems}}", "systemKebab.enableAnalysis": "Enable Vulnerability analysis on {count, plural, one {system} other {systems}}", diff --git a/src/Components/PresentationalComponents/Filters/PrimaryToolbarFilters/AdvisoryAvailabilityFilter.js b/src/Components/PresentationalComponents/Filters/PrimaryToolbarFilters/AdvisoryAvailabilityFilter.js new file mode 100644 index 000000000..85b3fdf86 --- /dev/null +++ b/src/Components/PresentationalComponents/Filters/PrimaryToolbarFilters/AdvisoryAvailabilityFilter.js @@ -0,0 +1,30 @@ +import { conditionalFilterType } from '@redhat-cloud-services/frontend-components/ConditionalFilter'; +import { ADVISORY_AVAILABILITY_FILTER_OPTIONS } from '../../../../Helpers/constants'; +import { intl } from '../../../../Utilities/IntlProvider'; +import messages from '../../../../Messages'; + +const AdvisoryAvailabilityFilter = (apply, currentFilter = {}) => { + let { advisory_available: currentValue } = currentFilter; + + const filterByAdvisoryAvailability = values => { + apply({ + advisory_available: values.length > 0 ? values?.join(',') : undefined, + page: 1 + }); + }; + + return { + label: intl.formatMessage(messages.advisory), + type: conditionalFilterType.checkbox, + key: 'advisory_available', + filterValues: { + onChange: (event, value) => { + filterByAdvisoryAvailability(value); + }, + items: ADVISORY_AVAILABILITY_FILTER_OPTIONS.map(({ label, value }) => ({ label, value })), + value: currentValue?.split(',') + } + }; +}; + +export default AdvisoryAvailabilityFilter; diff --git a/src/Components/SmartComponents/SystemCves/SystemCveTableToolbar.js b/src/Components/SmartComponents/SystemCves/SystemCveTableToolbar.js index 264e2a653..aa6b33287 100644 --- a/src/Components/SmartComponents/SystemCves/SystemCveTableToolbar.js +++ b/src/Components/SmartComponents/SystemCves/SystemCveTableToolbar.js @@ -23,6 +23,7 @@ import { removeFilters } from '../../../Helpers/TableToolbarHelper'; import { ANSIBLE_REMEDIATION, ONLY_NON_VULNERABLE_SYSTEMS, RULE_PRESENCE_OPTIONS } from '../../../Helpers/constants'; +import advisoryAvailabilityFilter from '../../PresentationalComponents/Filters/PrimaryToolbarFilters/AdvisoryAvailabilityFilter'; const SystemCveToolbarWithContext = ({ entity, @@ -32,7 +33,8 @@ const SystemCveToolbarWithContext = ({ customAction, canSelect, canManageColumns, - filters + filters, + showingCvesWithoutErrata }) => { const { cves, systemCVEs, parameters, methods, selectedCves, canEditPairStatus } = context; const { filter, advisory } = parameters; @@ -75,6 +77,7 @@ const SystemCveToolbarWithContext = ({ businessRiskFilter(methods.apply, parameters), publishDateFilter(methods.apply, parameters), statusFilter(methods.apply, parameters), + ...showingCvesWithoutErrata ? [advisoryAvailabilityFilter(methods.apply, parameters)] : [], useSearchFilter('advisory', messages.advisoryName, messages.searchFilterByAdvisoryName, advisory, methods.apply), remediationFilter(methods.apply, parameters) ]; @@ -139,7 +142,8 @@ SystemCveToolbarWithContext.propTypes = { customAction: propTypes.oneOf([propTypes.node, propTypes.func]), canSelect: propTypes.bool, canManageColumns: propTypes.bool, - filters: propTypes.arrayOf(propTypes.string) + filters: propTypes.arrayOf(propTypes.string), + showingCvesWithoutErrata: propTypes.bool }; const SystemCveToolbar = props => ( diff --git a/src/Components/SmartComponents/SystemCves/SystemCves.js b/src/Components/SmartComponents/SystemCves/SystemCves.js index 2393e9029..07c2fdf46 100644 --- a/src/Components/SmartComponents/SystemCves/SystemCves.js +++ b/src/Components/SmartComponents/SystemCves/SystemCves.js @@ -234,6 +234,7 @@ export const SystemCVEs = ({ canSelect={canSelect} canManageColumns={canManageColumns} filters={filters} + showingCvesWithoutErrata={cves?.meta?.cves_without_errata} /> diff --git a/src/Components/SmartComponents/SystemsExposedTable/SystemsExposedTable.js b/src/Components/SmartComponents/SystemsExposedTable/SystemsExposedTable.js index 9587bdad8..81690237c 100644 --- a/src/Components/SmartComponents/SystemsExposedTable/SystemsExposedTable.js +++ b/src/Components/SmartComponents/SystemsExposedTable/SystemsExposedTable.js @@ -45,6 +45,7 @@ import statusFilter from '../../PresentationalComponents/Filters/PrimaryToolbarF import useSearchFilter from '../../PresentationalComponents/Filters/PrimaryToolbarFilters/SearchFilter'; import useOsVersionFilter from '../../PresentationalComponents/Filters/PrimaryToolbarFilters/OsVersionFilter'; import remediationFilter from '../../PresentationalComponents/Filters/PrimaryToolbarFilters/RemediationFilter'; +import advisoryAvailabilityFilter from '../../PresentationalComponents/Filters/PrimaryToolbarFilters/AdvisoryAvailabilityFilter'; const SystemsExposedTable = ({ intl, cveName, cveStatusDetails, filterRuleValues, @@ -174,7 +175,7 @@ const SystemsExposedTable = ({ apply ); - const advisoryFilter = useSearchFilter( + const advisoryNameFilter = useSearchFilter( 'advisory', messages.advisoryName, messages.searchFilterByAdvisoryName, @@ -302,7 +303,8 @@ const SystemsExposedTable = ({ } ), statusFilter(apply, parameters), - advisoryFilter, + ...meta?.cves_without_errata ? [advisoryAvailabilityFilter(apply, parameters)] : [], + advisoryNameFilter, ...osVersionFilter, remediationFilter(apply, parameters) ] diff --git a/src/Helpers/Hooks.js b/src/Helpers/Hooks.js index 45709122e..721afc249 100644 --- a/src/Helpers/Hooks.js +++ b/src/Helpers/Hooks.js @@ -78,7 +78,8 @@ export const useGetEntities = (fetchApi, { id, setUrlParams, createRows }) => { meta: { page: items?.meta?.page, sort: items?.meta?.sort, - page_size: items?.meta?.page_size + page_size: items?.meta?.page_size, + cves_without_errata: items?.meta?.cves_without_errata } }; }; diff --git a/src/Helpers/constants.js b/src/Helpers/constants.js index 62c35db2f..a4be4d34e 100644 --- a/src/Helpers/constants.js +++ b/src/Helpers/constants.js @@ -169,6 +169,17 @@ export const EXCLUDED_FILTER_OPTIONS = [ } ]; +export const ADVISORY_AVAILABILITY_FILTER_OPTIONS = [ + { + value: 'true', + label: intl.formatMessage(messages.available) + }, + { + value: 'false', + label: intl.formatMessage(messages.notAvailable) + } +]; + export const subtractDays = (toSubtract, currDate = new Date()) => { return currDate.setDate(currDate.getDate() - toSubtract); }; diff --git a/src/Messages.js b/src/Messages.js index 9aeed5150..a8e2df7b9 100644 --- a/src/Messages.js +++ b/src/Messages.js @@ -57,6 +57,11 @@ export default defineMessages({ description: 'Advisory name label for filter', defaultMessage: 'Advisory name' }, + available: { + id: 'available', + description: 'Available', + defaultMessage: 'Available' + }, notAvailable: { id: 'notAvailable', description: 'Not available', @@ -1846,5 +1851,15 @@ export default defineMessages({ id: 'tagFilter.failure', description: 'Text for error notification when tags are unable to be loaded', defaultMessage: 'Unable to load tags' + }, + showCvesWithoutAdvisories: { + id: 'showCvesWithoutAdvisories', + description: 'Button inside CVE list toolbar', + defaultMessage: 'Show CVEs without Advisories' + }, + hideCvesWithoutAdvisories: { + id: 'hideCvesWithoutAdvisories', + description: 'Button inside CVE list toolbar', + defaultMessage: 'Hide CVEs without Advisories' } }); From 4de355e5582a0e3505ba186a4f1577dbf1f103ef Mon Sep 17 00:00:00 2001 From: leSamo Date: Sun, 25 Jun 2023 19:41:42 +0200 Subject: [PATCH 2/9] Add CVEs without errata toggle button --- .../SmartComponents/CVEs/CVEsTableToolbar.js | 13 +++++++++++- .../CVEs/__snapshots__/CVEs.test.js.snap | 20 +++++++++++++++++++ .../CVEsTableToolbar.test.js.snap | 20 +++++++++++++++++++ src/Helpers/APIHelper.js | 4 ++++ 4 files changed, 56 insertions(+), 1 deletion(-) diff --git a/src/Components/SmartComponents/CVEs/CVEsTableToolbar.js b/src/Components/SmartComponents/CVEs/CVEsTableToolbar.js index 752a7ec1e..d2ca21f4d 100644 --- a/src/Components/SmartComponents/CVEs/CVEsTableToolbar.js +++ b/src/Components/SmartComponents/CVEs/CVEsTableToolbar.js @@ -32,6 +32,7 @@ import { RULE_PRESENCE_OPTIONS } from '../../../Helpers/constants'; import { fetchCvesIds } from '../../../Store/Actions/Actions'; +import { setCvesWithoutErrata } from '../../../Helpers/APIHelper'; const CVEsTableToolbarWithContext = ({ context, canEditStatusOrBusinessRisk, canExport, intl }) => { const [exportPDF, setExportPDF] = useState(false); @@ -86,7 +87,17 @@ const CVEsTableToolbarWithContext = ({ context, canEditStatusOrBusinessRisk, can { label: intl.formatMessage(messages.columnManagementModalTitle), onClick: () => methods.setColumnManagementModalOpen(true) - } + }, + cves?.meta?.cves_without_errata ? + { + label: intl.formatMessage(messages.hideCvesWithoutAdvisories), + onClick: () => setCvesWithoutErrata(false).then(() => methods.apply({ page: 1 })) + } : + { + label: intl.formatMessage(messages.showCvesWithoutAdvisories), + onClick: () => setCvesWithoutErrata(true).then(() => methods.apply({ page: 1 })) + } + ]; return ( diff --git a/src/Components/SmartComponents/CVEs/__snapshots__/CVEs.test.js.snap b/src/Components/SmartComponents/CVEs/__snapshots__/CVEs.test.js.snap index 73275c954..bc9f9ff15 100644 --- a/src/Components/SmartComponents/CVEs/__snapshots__/CVEs.test.js.snap +++ b/src/Components/SmartComponents/CVEs/__snapshots__/CVEs.test.js.snap @@ -515,6 +515,10 @@ exports[`CVEs Should render without props 1`] = ` "label": "Manage columns", "onClick": [Function], }, + { + "label": "Show CVEs without Advisories", + "onClick": [Function], + }, ], "dropdownProps": { "ouiaId": "toolbar-actions", @@ -2199,6 +2203,10 @@ exports[`CVEs Should render without props 1`] = ` "label": "Manage columns", "onClick": [Function], }, + { + "label": "Show CVEs without Advisories", + "onClick": [Function], + }, ] } dropdownProps={ @@ -2573,6 +2581,12 @@ exports[`CVEs Should render without props 1`] = ` > Manage columns , + + Show CVEs without Advisories + , ] } isOpen={false} @@ -2611,6 +2625,12 @@ exports[`CVEs Should render without props 1`] = ` > Manage columns , + + Show CVEs without Advisories + , ] } isFlipEnabled={true} diff --git a/src/Components/SmartComponents/CVEs/__snapshots__/CVEsTableToolbar.test.js.snap b/src/Components/SmartComponents/CVEs/__snapshots__/CVEsTableToolbar.test.js.snap index caba5bed3..91d343716 100644 --- a/src/Components/SmartComponents/CVEs/__snapshots__/CVEsTableToolbar.test.js.snap +++ b/src/Components/SmartComponents/CVEs/__snapshots__/CVEsTableToolbar.test.js.snap @@ -205,6 +205,10 @@ exports[`CVEsTableToolbar Should render without errors 1`] = ` "label": "Manage columns", "onClick": [Function], }, + { + "label": "Show CVEs without Advisories", + "onClick": [Function], + }, ], "dropdownProps": { "ouiaId": "toolbar-actions", @@ -1906,6 +1910,10 @@ exports[`CVEsTableToolbar Should render without errors 1`] = ` "label": "Manage columns", "onClick": [Function], }, + { + "label": "Show CVEs without Advisories", + "onClick": [Function], + }, ] } dropdownProps={ @@ -2280,6 +2288,12 @@ exports[`CVEsTableToolbar Should render without errors 1`] = ` > Manage columns , + + Show CVEs without Advisories + , ] } isOpen={false} @@ -2318,6 +2332,12 @@ exports[`CVEsTableToolbar Should render without errors 1`] = ` > Manage columns , + + Show CVEs without Advisories + , ] } isFlipEnabled={true} diff --git a/src/Helpers/APIHelper.js b/src/Helpers/APIHelper.js index 8e0b048b3..de524167b 100644 --- a/src/Helpers/APIHelper.js +++ b/src/Helpers/APIHelper.js @@ -273,6 +273,10 @@ export function getDashbar(apiProps) { return result; } +export function setCvesWithoutErrata(setEnabled) { + return api.setCvesWithoutErrata({ enable: setEnabled }); +} + export function getOperatingSystems() { return systemProfile.apiSystemProfileGetOperatingSystem(); } From 711ce4a4ad4b69fce914fa5b7d4e392eafa5d7c3 Mon Sep 17 00:00:00 2001 From: leSamo Date: Thu, 29 Jun 2023 18:57:54 +0200 Subject: [PATCH 3/9] Update vulnerabilities-client --- package-lock.json | 36 +++++++++++++++++++----------------- package.json | 2 +- 2 files changed, 20 insertions(+), 18 deletions(-) diff --git a/package-lock.json b/package-lock.json index 67d189429..ffd925aec 100644 --- a/package-lock.json +++ b/package-lock.json @@ -21,7 +21,7 @@ "@redhat-cloud-services/frontend-components-translations": "^3.2.4", "@redhat-cloud-services/frontend-components-utilities": "^3.7.0", "@redhat-cloud-services/host-inventory-client": "^1.0.116", - "@redhat-cloud-services/vulnerabilities-client": "^1.0.116", + "@redhat-cloud-services/vulnerabilities-client": "^1.2.4", "@scalprum/react-core": "^0.1.9", "@unleash/proxy-client-react": "^3.6.0", "axios": "^1.4.0", @@ -5092,19 +5092,20 @@ "integrity": "sha512-1aqJcgQZq4uih+LxRpVJQblt2x4o/hlrqSZMYFhWyTLgnVNhJ8Y7B5pwoVjpA5PCE1fBNahrydVwugEKMsDDtg==" }, "node_modules/@redhat-cloud-services/vulnerabilities-client": { - "version": "1.0.116", - "resolved": "https://registry.npmjs.org/@redhat-cloud-services/vulnerabilities-client/-/vulnerabilities-client-1.0.116.tgz", - "integrity": "sha512-jEr5rvAdrBmsxWX+KkU6fE1OVVimnopmrABEXnU7gjG0LP5PUM6G8FNJNNnhm03KVAL9HLJuJJopXOXKKv6W1A==", + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/@redhat-cloud-services/vulnerabilities-client/-/vulnerabilities-client-1.2.4.tgz", + "integrity": "sha512-mjsMjHgXeiyw7GEnWl98TV0oqvSDzpmDERCvHDoPwbpqLOw9YRS4YTALfWivlBY/JT9HCG7o9kqdHB+nR/rOPw==", "dependencies": { - "axios": "^0.21.1" + "axios": "^0.27.2" } }, "node_modules/@redhat-cloud-services/vulnerabilities-client/node_modules/axios": { - "version": "0.21.4", - "resolved": "https://registry.npmjs.org/axios/-/axios-0.21.4.tgz", - "integrity": "sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==", + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/axios/-/axios-0.27.2.tgz", + "integrity": "sha512-t+yRIyySRTp/wua5xEr+z1q60QmLq8ABsS5O9Me1AsE5dfKqgnCFzwiCZZ/cGNd1lq4/7akDWMxdhVlucjmnOQ==", "dependencies": { - "follow-redirects": "^1.14.0" + "follow-redirects": "^1.14.9", + "form-data": "^4.0.0" } }, "node_modules/@rollup/plugin-commonjs": { @@ -30605,19 +30606,20 @@ "integrity": "sha512-1aqJcgQZq4uih+LxRpVJQblt2x4o/hlrqSZMYFhWyTLgnVNhJ8Y7B5pwoVjpA5PCE1fBNahrydVwugEKMsDDtg==" }, "@redhat-cloud-services/vulnerabilities-client": { - "version": "1.0.116", - "resolved": "https://registry.npmjs.org/@redhat-cloud-services/vulnerabilities-client/-/vulnerabilities-client-1.0.116.tgz", - "integrity": "sha512-jEr5rvAdrBmsxWX+KkU6fE1OVVimnopmrABEXnU7gjG0LP5PUM6G8FNJNNnhm03KVAL9HLJuJJopXOXKKv6W1A==", + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/@redhat-cloud-services/vulnerabilities-client/-/vulnerabilities-client-1.2.4.tgz", + "integrity": "sha512-mjsMjHgXeiyw7GEnWl98TV0oqvSDzpmDERCvHDoPwbpqLOw9YRS4YTALfWivlBY/JT9HCG7o9kqdHB+nR/rOPw==", "requires": { - "axios": "^0.21.1" + "axios": "^0.27.2" }, "dependencies": { "axios": { - "version": "0.21.4", - "resolved": "https://registry.npmjs.org/axios/-/axios-0.21.4.tgz", - "integrity": "sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==", + "version": "0.27.2", + "resolved": "https://registry.npmjs.org/axios/-/axios-0.27.2.tgz", + "integrity": "sha512-t+yRIyySRTp/wua5xEr+z1q60QmLq8ABsS5O9Me1AsE5dfKqgnCFzwiCZZ/cGNd1lq4/7akDWMxdhVlucjmnOQ==", "requires": { - "follow-redirects": "^1.14.0" + "follow-redirects": "^1.14.9", + "form-data": "^4.0.0" } } } diff --git a/package.json b/package.json index d6d653f0d..9dd3f29c8 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "@redhat-cloud-services/frontend-components-translations": "^3.2.4", "@redhat-cloud-services/frontend-components-utilities": "^3.7.0", "@redhat-cloud-services/host-inventory-client": "^1.0.116", - "@redhat-cloud-services/vulnerabilities-client": "^1.0.116", + "@redhat-cloud-services/vulnerabilities-client": "^1.2.4", "@scalprum/react-core": "^0.1.9", "@unleash/proxy-client-react": "^3.6.0", "axios": "^1.4.0", From e64ca160413f1dd38dea4bf60089c331627c126f Mon Sep 17 00:00:00 2001 From: leSamo Date: Fri, 30 Jun 2023 15:09:03 +0200 Subject: [PATCH 4/9] Add advisory available column with tooltip to CVE list table --- package-lock.json | 14 +- package.json | 2 +- .../CVEs/__snapshots__/CVEs.test.js.snap | 1099 ++++++++++++++++- .../CVEs/__snapshots__/CVEsTable.test.js.snap | 1068 +++++++++++++++- .../Modals/ReportConfigModal.js | 3 +- .../ReportConfigModal.test.js.snap | 374 +++++- .../__snapshots__/ReportsPage.test.js.snap | 2 + src/Helpers/ReportsHelper.js | 6 + src/Helpers/VulnerabilityHelper.js | 9 + .../VulnerabilityHelper.test.js.snap | 15 + src/Helpers/constants.js | 22 + src/Messages.js | 5 + 12 files changed, 2492 insertions(+), 127 deletions(-) diff --git a/package-lock.json b/package-lock.json index ffd925aec..2c7aa78b3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -21,7 +21,7 @@ "@redhat-cloud-services/frontend-components-translations": "^3.2.4", "@redhat-cloud-services/frontend-components-utilities": "^3.7.0", "@redhat-cloud-services/host-inventory-client": "^1.0.116", - "@redhat-cloud-services/vulnerabilities-client": "^1.2.4", + "@redhat-cloud-services/vulnerabilities-client": "^1.2.5", "@scalprum/react-core": "^0.1.9", "@unleash/proxy-client-react": "^3.6.0", "axios": "^1.4.0", @@ -5092,9 +5092,9 @@ "integrity": "sha512-1aqJcgQZq4uih+LxRpVJQblt2x4o/hlrqSZMYFhWyTLgnVNhJ8Y7B5pwoVjpA5PCE1fBNahrydVwugEKMsDDtg==" }, "node_modules/@redhat-cloud-services/vulnerabilities-client": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/@redhat-cloud-services/vulnerabilities-client/-/vulnerabilities-client-1.2.4.tgz", - "integrity": "sha512-mjsMjHgXeiyw7GEnWl98TV0oqvSDzpmDERCvHDoPwbpqLOw9YRS4YTALfWivlBY/JT9HCG7o9kqdHB+nR/rOPw==", + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/@redhat-cloud-services/vulnerabilities-client/-/vulnerabilities-client-1.2.5.tgz", + "integrity": "sha512-A/dgGs8vnP+KGCwUv8Go/euqyNZqF7AWmL2S8tMumrrSQQqa1gNADb/wHN/9RWPUzLg9MFOcd2NHcVNs8vgdeA==", "dependencies": { "axios": "^0.27.2" } @@ -30606,9 +30606,9 @@ "integrity": "sha512-1aqJcgQZq4uih+LxRpVJQblt2x4o/hlrqSZMYFhWyTLgnVNhJ8Y7B5pwoVjpA5PCE1fBNahrydVwugEKMsDDtg==" }, "@redhat-cloud-services/vulnerabilities-client": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/@redhat-cloud-services/vulnerabilities-client/-/vulnerabilities-client-1.2.4.tgz", - "integrity": "sha512-mjsMjHgXeiyw7GEnWl98TV0oqvSDzpmDERCvHDoPwbpqLOw9YRS4YTALfWivlBY/JT9HCG7o9kqdHB+nR/rOPw==", + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/@redhat-cloud-services/vulnerabilities-client/-/vulnerabilities-client-1.2.5.tgz", + "integrity": "sha512-A/dgGs8vnP+KGCwUv8Go/euqyNZqF7AWmL2S8tMumrrSQQqa1gNADb/wHN/9RWPUzLg9MFOcd2NHcVNs8vgdeA==", "requires": { "axios": "^0.27.2" }, diff --git a/package.json b/package.json index 9dd3f29c8..9c5333ad1 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "@redhat-cloud-services/frontend-components-translations": "^3.2.4", "@redhat-cloud-services/frontend-components-utilities": "^3.7.0", "@redhat-cloud-services/host-inventory-client": "^1.0.116", - "@redhat-cloud-services/vulnerabilities-client": "^1.2.4", + "@redhat-cloud-services/vulnerabilities-client": "^1.2.5", "@scalprum/react-core": "^0.1.9", "@unleash/proxy-client-react": "^3.6.0", "axios": "^1.4.0", diff --git a/src/Components/SmartComponents/CVEs/__snapshots__/CVEs.test.js.snap b/src/Components/SmartComponents/CVEs/__snapshots__/CVEs.test.js.snap index bc9f9ff15..29f7870e0 100644 --- a/src/Components/SmartComponents/CVEs/__snapshots__/CVEs.test.js.snap +++ b/src/Components/SmartComponents/CVEs/__snapshots__/CVEs.test.js.snap @@ -129,6 +129,32 @@ exports[`CVEs Should render without props 1`] = ` [Function], ], }, + { + "isShownByDefault": true, + "key": "advisory_available", + "title": + Advisory + + + + , + "transforms": [ + [Function], + [Function], + ], + }, ] } applyColumns={[Function]} @@ -398,6 +424,11 @@ exports[`CVEs Should render without props 1`] = ` On-hold , }, + { + "title": + Not available + , + }, ], "exposed_systems_count": 1, "id": "CVE-2019-6454", @@ -3864,6 +3895,32 @@ exports[`CVEs Should render without props 1`] = ` [Function], ], }, + { + "isShownByDefault": true, + "key": "advisory_available", + "title": + Advisory + + + + , + "transforms": [ + [Function], + [Function], + ], + }, ] } > @@ -3932,6 +3989,11 @@ exports[`CVEs Should render without props 1`] = ` On-hold , }, + { + "title": + Not available + , + }, ], "exposed_systems_count": 1, "id": "CVE-2019-6454", @@ -4055,6 +4117,32 @@ exports[`CVEs Should render without props 1`] = ` [Function], ], }, + { + "isShownByDefault": true, + "key": "advisory_available", + "title": + Advisory + + + + , + "transforms": [ + [Function], + [Function], + ], + }, ] } > @@ -4142,6 +4230,32 @@ exports[`CVEs Should render without props 1`] = ` [Function], ], }, + { + "isShownByDefault": true, + "key": "advisory_available", + "title": + Advisory + + + + , + "transforms": [ + [Function], + [Function], + ], + }, ] } className="" @@ -4224,6 +4338,11 @@ exports[`CVEs Should render without props 1`] = ` On-hold , }, + { + "title": + Not available + , + }, ], "exposed_systems_count": 1, "id": "CVE-2019-6454", @@ -4771,6 +4890,7 @@ exports[`CVEs Should render without props 1`] = ` "transforms": [ [Function], [Function], + [Function], ], }, "data": undefined, @@ -4781,7 +4901,7 @@ exports[`CVEs Should render without props 1`] = ` "allRowsExpanded": false, "allRowsSelected": false, "areActionsDisabled": undefined, - "canCollapseAll": true, + "canCollapseAll": false, "canSelectAll": false, "canSortFavorites": true, "collapseAllAriaLabel": "", @@ -4804,16 +4924,88 @@ exports[`CVEs Should render without props 1`] = ` }, "header": { "formatters": [], - "label": "", + "label": + Advisory + + + + , "transforms": [ [Function], [Function], [Function], + [Function], ], }, "property": "column-9", "props": { "data-key": 9, + "data-label": "column-9", + }, + }, + { + "cell": { + "formatters": [ + [Function], + ], + "transforms": [ + [Function], + [Function], + ], + }, + "data": undefined, + "extraParams": { + "actionResolver": [Function], + "actions": undefined, + "actionsToggle": undefined, + "allRowsExpanded": false, + "allRowsSelected": false, + "areActionsDisabled": undefined, + "canCollapseAll": true, + "canSelectAll": false, + "canSortFavorites": true, + "collapseAllAriaLabel": "", + "contentId": "expanded-content", + "dropdownDirection": "down", + "dropdownPosition": "right", + "expandId": "expandable-toggle", + "firstUserColumnIndex": 2, + "isHeaderSelectDisabled": false, + "menuAppendTo": "inline", + "onCollapse": [Function], + "onExpand": undefined, + "onFavorite": undefined, + "onRowEdit": undefined, + "onSelect": [Function], + "onSort": [Function], + "rowLabeledBy": "simple-node", + "selectVariant": "checkbox", + "sortBy": {}, + }, + "header": { + "formatters": [], + "label": "", + "transforms": [ + [Function], + [Function], + [Function], + ], + }, + "property": "column-10", + "props": { + "data-key": 10, "data-label": "", }, }, @@ -5403,6 +5595,7 @@ exports[`CVEs Should render without props 1`] = ` "transforms": [ [Function], [Function], + [Function], ], }, "data": undefined, @@ -5413,7 +5606,7 @@ exports[`CVEs Should render without props 1`] = ` "allRowsExpanded": false, "allRowsSelected": false, "areActionsDisabled": undefined, - "canCollapseAll": true, + "canCollapseAll": false, "canSelectAll": false, "canSortFavorites": true, "collapseAllAriaLabel": "", @@ -5436,16 +5629,88 @@ exports[`CVEs Should render without props 1`] = ` }, "header": { "formatters": [], - "label": "", + "label": + Advisory + + + + , "transforms": [ [Function], [Function], [Function], + [Function], ], }, "property": "column-9", "props": { "data-key": 9, + "data-label": "column-9", + }, + }, + { + "cell": { + "formatters": [ + [Function], + ], + "transforms": [ + [Function], + [Function], + ], + }, + "data": undefined, + "extraParams": { + "actionResolver": [Function], + "actions": undefined, + "actionsToggle": undefined, + "allRowsExpanded": false, + "allRowsSelected": false, + "areActionsDisabled": undefined, + "canCollapseAll": true, + "canSelectAll": false, + "canSortFavorites": true, + "collapseAllAriaLabel": "", + "contentId": "expanded-content", + "dropdownDirection": "down", + "dropdownPosition": "right", + "expandId": "expandable-toggle", + "firstUserColumnIndex": 2, + "isHeaderSelectDisabled": false, + "menuAppendTo": "inline", + "onCollapse": [Function], + "onExpand": undefined, + "onFavorite": undefined, + "onRowEdit": undefined, + "onSelect": [Function], + "onSort": [Function], + "rowLabeledBy": "simple-node", + "selectVariant": "checkbox", + "sortBy": {}, + }, + "header": { + "formatters": [], + "label": "", + "transforms": [ + [Function], + [Function], + [Function], + ], + }, + "property": "column-10", + "props": { + "data-key": 10, "data-label": "", }, }, @@ -6017,6 +6282,7 @@ exports[`CVEs Should render without props 1`] = ` "transforms": [ [Function], [Function], + [Function], ], }, "data": undefined, @@ -6027,7 +6293,7 @@ exports[`CVEs Should render without props 1`] = ` "allRowsExpanded": false, "allRowsSelected": false, "areActionsDisabled": undefined, - "canCollapseAll": true, + "canCollapseAll": false, "canSelectAll": false, "canSortFavorites": true, "collapseAllAriaLabel": "", @@ -6050,16 +6316,88 @@ exports[`CVEs Should render without props 1`] = ` }, "header": { "formatters": [], - "label": "", + "label": + Advisory + + + + , "transforms": [ [Function], [Function], [Function], + [Function], ], }, "property": "column-9", "props": { "data-key": 9, + "data-label": "column-9", + }, + }, + { + "cell": { + "formatters": [ + [Function], + ], + "transforms": [ + [Function], + [Function], + ], + }, + "data": undefined, + "extraParams": { + "actionResolver": [Function], + "actions": undefined, + "actionsToggle": undefined, + "allRowsExpanded": false, + "allRowsSelected": false, + "areActionsDisabled": undefined, + "canCollapseAll": true, + "canSelectAll": false, + "canSortFavorites": true, + "collapseAllAriaLabel": "", + "contentId": "expanded-content", + "dropdownDirection": "down", + "dropdownPosition": "right", + "expandId": "expandable-toggle", + "firstUserColumnIndex": 2, + "isHeaderSelectDisabled": false, + "menuAppendTo": "inline", + "onCollapse": [Function], + "onExpand": undefined, + "onFavorite": undefined, + "onRowEdit": undefined, + "onSelect": [Function], + "onSort": [Function], + "rowLabeledBy": "simple-node", + "selectVariant": "checkbox", + "sortBy": {}, + }, + "header": { + "formatters": [], + "label": "", + "transforms": [ + [Function], + [Function], + [Function], + ], + }, + "property": "column-10", + "props": { + "data-key": 10, "data-label": "", }, }, @@ -6894,26 +7232,244 @@ exports[`CVEs Should render without props 1`] = ` + + + + + + + + + + + + Advisory + + + + , "transforms": [ [Function], [Function], [Function], + [Function], ], }, "property": "column-9", "props": { "data-key": 9, + "data-label": "column-9", + }, + }, + { + "cell": { + "formatters": [ + [Function], + ], + "transforms": [ + [Function], + [Function], + ], + }, + "data": undefined, + "extraParams": { + "actionResolver": [Function], + "actions": undefined, + "actionsToggle": undefined, + "allRowsExpanded": false, + "allRowsSelected": false, + "areActionsDisabled": undefined, + "canCollapseAll": true, + "canSelectAll": false, + "canSortFavorites": true, + "collapseAllAriaLabel": "", + "contentId": "expanded-content", + "dropdownDirection": "down", + "dropdownPosition": "right", + "expandId": "expandable-toggle", + "firstUserColumnIndex": 2, + "isHeaderSelectDisabled": false, + "menuAppendTo": "inline", + "onCollapse": [Function], + "onExpand": undefined, + "onFavorite": undefined, + "onRowEdit": undefined, + "onSelect": [Function], + "onSort": [Function], + "rowLabeledBy": "simple-node", + "selectVariant": "checkbox", + "sortBy": {}, + }, + "header": { + "formatters": [], + "label": "", + "transforms": [ + [Function], + [Function], + [Function], + ], + }, + "property": "column-10", + "props": { + "data-key": 10, "data-label": "", }, }, @@ -7573,6 +8202,11 @@ exports[`CVEs Should render without props 1`] = ` On-hold , }, + { + "title": + Not available + , + }, ], "exposed_systems_count": 1, "id": "CVE-2019-6454", @@ -7671,7 +8305,21 @@ exports[`CVEs Should render without props 1`] = ` On-hold , }, + { + "title": + Not available + , + }, ], + "column-9": { + "formatters": [], + "props": { + "isVisible": true, + }, + "title": + Not available + , + }, "cve-id": { "formatters": [], "props": { @@ -7868,7 +8516,21 @@ exports[`CVEs Should render without props 1`] = ` On-hold , }, + { + "title": + Not available + , + }, ], + "column-9": { + "formatters": [], + "props": { + "isVisible": true, + }, + "title": + Not available + , + }, "cve-id": { "formatters": [], "props": { @@ -8497,10 +9159,83 @@ exports[`CVEs Should render without props 1`] = ` [Function], ], }, - "property": "status", + "property": "status", + "props": { + "data-key": 8, + "data-label": "Status", + }, + }, + { + "cell": { + "formatters": [ + [Function], + ], + "transforms": [ + [Function], + [Function], + [Function], + ], + }, + "data": undefined, + "extraParams": { + "actionResolver": [Function], + "actions": undefined, + "actionsToggle": undefined, + "allRowsExpanded": false, + "allRowsSelected": false, + "areActionsDisabled": undefined, + "canCollapseAll": false, + "canSelectAll": false, + "canSortFavorites": true, + "collapseAllAriaLabel": "", + "contentId": "expanded-content", + "dropdownDirection": "down", + "dropdownPosition": "right", + "expandId": "expandable-toggle", + "firstUserColumnIndex": 2, + "isHeaderSelectDisabled": false, + "menuAppendTo": "inline", + "onCollapse": [Function], + "onExpand": undefined, + "onFavorite": undefined, + "onRowEdit": undefined, + "onSelect": [Function], + "onSort": [Function], + "rowLabeledBy": "simple-node", + "selectVariant": "checkbox", + "sortBy": {}, + }, + "header": { + "formatters": [], + "label": + Advisory + + + + , + "transforms": [ + [Function], + [Function], + [Function], + [Function], + ], + }, + "property": "column-9", "props": { - "data-key": 8, - "data-label": "Status", + "data-key": 9, + "data-label": "column-9", }, }, { @@ -8551,9 +9286,9 @@ exports[`CVEs Should render without props 1`] = ` [Function], ], }, - "property": "column-9", + "property": "column-10", "props": { - "data-key": 9, + "data-key": 10, "data-label": "", }, }, @@ -8630,7 +9365,21 @@ exports[`CVEs Should render without props 1`] = ` On-hold , }, + { + "title": + Not available + , + }, ], + "column-9": { + "formatters": [], + "props": { + "isVisible": true, + }, + "title": + Not available + , + }, "cve-id": { "formatters": [], "props": { @@ -8851,7 +9600,21 @@ exports[`CVEs Should render without props 1`] = ` On-hold , }, + { + "title": + Not available + , + }, ], + "column-9": { + "formatters": [], + "props": { + "isVisible": true, + }, + "title": + Not available + , + }, "cve-id": { "formatters": [], "props": { @@ -9050,7 +9813,21 @@ exports[`CVEs Should render without props 1`] = ` On-hold , }, + { + "title": + Not available + , + }, ], + "column-9": { + "formatters": [], + "props": { + "isVisible": true, + }, + "title": + Not available + , + }, "cve-id": { "formatters": [], "props": { @@ -9706,6 +10483,7 @@ exports[`CVEs Should render without props 1`] = ` "transforms": [ [Function], [Function], + [Function], ], }, "data": undefined, @@ -9716,7 +10494,7 @@ exports[`CVEs Should render without props 1`] = ` "allRowsExpanded": false, "allRowsSelected": false, "areActionsDisabled": undefined, - "canCollapseAll": true, + "canCollapseAll": false, "canSelectAll": false, "canSortFavorites": true, "collapseAllAriaLabel": "", @@ -9739,16 +10517,88 @@ exports[`CVEs Should render without props 1`] = ` }, "header": { "formatters": [], - "label": "", + "label": + Advisory + + + + , "transforms": [ [Function], [Function], [Function], + [Function], ], }, "property": "column-9", "props": { "data-key": 9, + "data-label": "column-9", + }, + }, + { + "cell": { + "formatters": [ + [Function], + ], + "transforms": [ + [Function], + [Function], + ], + }, + "data": undefined, + "extraParams": { + "actionResolver": [Function], + "actions": undefined, + "actionsToggle": undefined, + "allRowsExpanded": false, + "allRowsSelected": false, + "areActionsDisabled": undefined, + "canCollapseAll": true, + "canSelectAll": false, + "canSortFavorites": true, + "collapseAllAriaLabel": "", + "contentId": "expanded-content", + "dropdownDirection": "down", + "dropdownPosition": "right", + "expandId": "expandable-toggle", + "firstUserColumnIndex": 2, + "isHeaderSelectDisabled": false, + "menuAppendTo": "inline", + "onCollapse": [Function], + "onExpand": undefined, + "onFavorite": undefined, + "onRowEdit": undefined, + "onSelect": [Function], + "onSort": [Function], + "rowLabeledBy": "simple-node", + "selectVariant": "checkbox", + "sortBy": {}, + }, + "header": { + "formatters": [], + "label": "", + "transforms": [ + [Function], + [Function], + [Function], + ], + }, + "property": "column-10", + "props": { + "data-key": 10, "data-label": "", }, }, @@ -9832,7 +10682,21 @@ exports[`CVEs Should render without props 1`] = ` On-hold , }, + { + "title": + Not available + , + }, ], + "column-9": { + "formatters": [], + "props": { + "isVisible": true, + }, + "title": + Not available + , + }, "cve-id": { "formatters": [], "props": { @@ -9999,7 +10863,21 @@ exports[`CVEs Should render without props 1`] = ` On-hold , }, + { + "title": + Not available + , + }, ], + "column-9": { + "formatters": [], + "props": { + "isVisible": true, + }, + "title": + Not available + , + }, "cve-id": { "formatters": [], "props": { @@ -10451,7 +11329,7 @@ exports[`CVEs Should render without props 1`] = ` + + + + + + + + Advisory + + + + , "transforms": [ [Function], [Function], [Function], + [Function], ], }, "property": "column-9", "props": { "data-key": 9, + "data-label": "column-9", + }, + }, + { + "cell": { + "formatters": [ + [Function], + ], + "transforms": [ + [Function], + [Function], + ], + }, + "data": undefined, + "extraParams": { + "actionResolver": [Function], + "actions": undefined, + "actionsToggle": undefined, + "allRowsExpanded": true, + "allRowsSelected": true, + "areActionsDisabled": undefined, + "canCollapseAll": true, + "canSelectAll": false, + "canSortFavorites": true, + "collapseAllAriaLabel": "", + "contentId": "expanded-content", + "dropdownDirection": "down", + "dropdownPosition": "right", + "expandId": "expandable-toggle", + "firstUserColumnIndex": 2, + "isHeaderSelectDisabled": false, + "menuAppendTo": "inline", + "onCollapse": [Function], + "onExpand": undefined, + "onFavorite": undefined, + "onRowEdit": undefined, + "onSelect": [Function], + "onSort": [Function], + "rowLabeledBy": "simple-node", + "selectVariant": "checkbox", + "sortBy": {}, + }, + "header": { + "formatters": [], + "label": "", + "transforms": [ + [Function], + [Function], + [Function], + ], + }, + "property": "column-10", + "props": { + "data-key": 10, "data-label": "", }, }, @@ -3810,6 +4408,11 @@ exports[`CVEs: Should match the snapshot 1`] = ` On-hold , }, + { + "title": + Not available + , + }, ], "exposed_systems_count": 1, "id": "CVE-2019-6454", @@ -3907,7 +4510,21 @@ exports[`CVEs: Should match the snapshot 1`] = ` On-hold , }, + { + "title": + Not available + , + }, ], + "column-9": { + "formatters": [], + "props": { + "isVisible": true, + }, + "title": + Not available + , + }, "cve-id": { "formatters": [], "props": { @@ -4102,7 +4719,21 @@ exports[`CVEs: Should match the snapshot 1`] = ` On-hold , }, + { + "title": + Not available + , + }, ], + "column-9": { + "formatters": [], + "props": { + "isVisible": true, + }, + "title": + Not available + , + }, "cve-id": { "formatters": [], "props": { @@ -4676,8 +5307,64 @@ exports[`CVEs: Should match the snapshot 1`] = ` }, "property": "business-risk", "props": { - "data-key": 7, - "data-label": "Business risk", + "data-key": 7, + "data-label": "Business risk", + }, + }, + { + "cell": { + "formatters": [ + [Function], + ], + "transforms": [ + [Function], + [Function], + [Function], + ], + }, + "data": undefined, + "extraParams": { + "actionResolver": [Function], + "actions": undefined, + "actionsToggle": undefined, + "allRowsExpanded": true, + "allRowsSelected": true, + "areActionsDisabled": undefined, + "canCollapseAll": true, + "canSelectAll": false, + "canSortFavorites": true, + "collapseAllAriaLabel": "", + "contentId": "expanded-content", + "dropdownDirection": "down", + "dropdownPosition": "right", + "expandId": "expandable-toggle", + "firstUserColumnIndex": 2, + "isHeaderSelectDisabled": false, + "menuAppendTo": "inline", + "onCollapse": [Function], + "onExpand": undefined, + "onFavorite": undefined, + "onRowEdit": undefined, + "onSelect": [Function], + "onSort": [Function], + "rowLabeledBy": "simple-node", + "selectVariant": "checkbox", + "sortBy": {}, + }, + "header": { + "formatters": [], + "label": "Status", + "transforms": [ + [Function], + [Function], + [Function], + [Function], + ], + }, + "property": "status", + "props": { + "data-key": 8, + "data-label": "Status", }, }, { @@ -4699,7 +5386,7 @@ exports[`CVEs: Should match the snapshot 1`] = ` "allRowsExpanded": true, "allRowsSelected": true, "areActionsDisabled": undefined, - "canCollapseAll": true, + "canCollapseAll": false, "canSelectAll": false, "canSortFavorites": true, "collapseAllAriaLabel": "", @@ -4722,7 +5409,24 @@ exports[`CVEs: Should match the snapshot 1`] = ` }, "header": { "formatters": [], - "label": "Status", + "label": + Advisory + + + + , "transforms": [ [Function], [Function], @@ -4730,10 +5434,10 @@ exports[`CVEs: Should match the snapshot 1`] = ` [Function], ], }, - "property": "status", + "property": "column-9", "props": { - "data-key": 8, - "data-label": "Status", + "data-key": 9, + "data-label": "column-9", }, }, { @@ -4784,9 +5488,9 @@ exports[`CVEs: Should match the snapshot 1`] = ` [Function], ], }, - "property": "column-9", + "property": "column-10", "props": { - "data-key": 9, + "data-key": 10, "data-label": "", }, }, @@ -4862,7 +5566,21 @@ exports[`CVEs: Should match the snapshot 1`] = ` On-hold , }, + { + "title": + Not available + , + }, ], + "column-9": { + "formatters": [], + "props": { + "isVisible": true, + }, + "title": + Not available + , + }, "cve-id": { "formatters": [], "props": { @@ -5081,7 +5799,21 @@ exports[`CVEs: Should match the snapshot 1`] = ` On-hold , }, + { + "title": + Not available + , + }, ], + "column-9": { + "formatters": [], + "props": { + "isVisible": true, + }, + "title": + Not available + , + }, "cve-id": { "formatters": [], "props": { @@ -5278,7 +6010,21 @@ exports[`CVEs: Should match the snapshot 1`] = ` On-hold , }, + { + "title": + Not available + , + }, ], + "column-9": { + "formatters": [], + "props": { + "isVisible": true, + }, + "title": + Not available + , + }, "cve-id": { "formatters": [], "props": { @@ -5933,6 +6679,7 @@ exports[`CVEs: Should match the snapshot 1`] = ` "transforms": [ [Function], [Function], + [Function], ], }, "data": undefined, @@ -5943,7 +6690,7 @@ exports[`CVEs: Should match the snapshot 1`] = ` "allRowsExpanded": true, "allRowsSelected": true, "areActionsDisabled": undefined, - "canCollapseAll": true, + "canCollapseAll": false, "canSelectAll": false, "canSortFavorites": true, "collapseAllAriaLabel": "", @@ -5966,16 +6713,88 @@ exports[`CVEs: Should match the snapshot 1`] = ` }, "header": { "formatters": [], - "label": "", + "label": + Advisory + + + + , "transforms": [ [Function], [Function], [Function], + [Function], ], }, "property": "column-9", "props": { "data-key": 9, + "data-label": "column-9", + }, + }, + { + "cell": { + "formatters": [ + [Function], + ], + "transforms": [ + [Function], + [Function], + ], + }, + "data": undefined, + "extraParams": { + "actionResolver": [Function], + "actions": undefined, + "actionsToggle": undefined, + "allRowsExpanded": true, + "allRowsSelected": true, + "areActionsDisabled": undefined, + "canCollapseAll": true, + "canSelectAll": false, + "canSortFavorites": true, + "collapseAllAriaLabel": "", + "contentId": "expanded-content", + "dropdownDirection": "down", + "dropdownPosition": "right", + "expandId": "expandable-toggle", + "firstUserColumnIndex": 2, + "isHeaderSelectDisabled": false, + "menuAppendTo": "inline", + "onCollapse": [Function], + "onExpand": undefined, + "onFavorite": undefined, + "onRowEdit": undefined, + "onSelect": [Function], + "onSort": [Function], + "rowLabeledBy": "simple-node", + "selectVariant": "checkbox", + "sortBy": {}, + }, + "header": { + "formatters": [], + "label": "", + "transforms": [ + [Function], + [Function], + [Function], + ], + }, + "property": "column-10", + "props": { + "data-key": 10, "data-label": "", }, }, @@ -6058,7 +6877,21 @@ exports[`CVEs: Should match the snapshot 1`] = ` On-hold , }, + { + "title": + Not available + , + }, ], + "column-9": { + "formatters": [], + "props": { + "isVisible": true, + }, + "title": + Not available + , + }, "cve-id": { "formatters": [], "props": { @@ -6223,7 +7056,21 @@ exports[`CVEs: Should match the snapshot 1`] = ` On-hold , }, + { + "title": + Not available + , + }, ], + "column-9": { + "formatters": [], + "props": { + "isVisible": true, + }, + "title": + Not available + , + }, "cve-id": { "formatters": [], "props": { @@ -6673,7 +7520,7 @@ exports[`CVEs: Should match the snapshot 1`] = ` +
+ +
@@ -632,7 +678,7 @@ exports[`Report config modal component Should match snapshots 1`] = ` > @@ -3644,7 +3962,7 @@ exports[`Report config modal component Should match snapshots 1`] = ` >