@@ -276,7 +276,7 @@ const Component = React.memo(({
276
276
isComponentError,
277
277
ocmRepo,
278
278
isParentComponent,
279
- scanCfg ,
279
+ extensionsCfg ,
280
280
findingCfgs,
281
281
} ) => {
282
282
const searchParamContext = React . useContext ( SearchParamContext )
@@ -465,7 +465,7 @@ const Component = React.memo(({
465
465
ocmRepo = { ocmRepo }
466
466
complianceSummaryFetchDetails = { complianceSummaryFetchDetails }
467
467
fetchComplianceSummary = { refreshComplianceSummary }
468
- scanCfg = { scanCfg }
468
+ extensionsCfg = { extensionsCfg }
469
469
findingCfgs = { findingCfgs }
470
470
/>
471
471
</ AccordionDetails >
@@ -479,7 +479,7 @@ Component.propTypes = {
479
479
isComponentError : PropTypes . bool ,
480
480
ocmRepo : PropTypes . string ,
481
481
isParentComponent : PropTypes . bool ,
482
- scanCfg : PropTypes . object ,
482
+ extensionsCfg : PropTypes . object ,
483
483
findingCfgs : PropTypes . arrayOf ( PropTypes . object ) . isRequired ,
484
484
}
485
485
@@ -593,7 +593,7 @@ const ComponentDetails = React.memo(({
593
593
ocmRepo,
594
594
complianceSummaryFetchDetails,
595
595
fetchComplianceSummary,
596
- scanCfg ,
596
+ extensionsCfg ,
597
597
findingCfgs,
598
598
} ) => {
599
599
if ( isComponentError ) return < Alert severity = 'error' > Unable to fetch Component</ Alert >
@@ -607,7 +607,7 @@ const ComponentDetails = React.memo(({
607
607
ocmRepo = { ocmRepo }
608
608
complianceSummaryFetchDetails = { complianceSummaryFetchDetails }
609
609
fetchComplianceSummary = { fetchComplianceSummary }
610
- scanCfg = { scanCfg }
610
+ extensionsCfg = { extensionsCfg }
611
611
findingCfgs = { findingCfgs }
612
612
/>
613
613
}
@@ -629,7 +629,7 @@ ComponentDetails.propTypes = {
629
629
ocmRepo : PropTypes . string ,
630
630
complianceSummaryFetchDetails : PropTypes . object . isRequired ,
631
631
fetchComplianceSummary : PropTypes . func . isRequired ,
632
- scanCfg : PropTypes . object ,
632
+ extensionsCfg : PropTypes . object ,
633
633
findingCfgs : PropTypes . arrayOf ( PropTypes . object ) . isRequired ,
634
634
}
635
635
@@ -638,7 +638,7 @@ const Components = ({
638
638
isComponentsLoading,
639
639
isComponentsError,
640
640
ocmRepo,
641
- scanCfg ,
641
+ extensionsCfg ,
642
642
findingCfgs,
643
643
} ) => {
644
644
return < Box >
@@ -649,7 +649,7 @@ const Components = ({
649
649
isComponentLoading = { isComponentsLoading }
650
650
isComponentError = { isComponentsError }
651
651
ocmRepo = { ocmRepo }
652
- scanCfg = { scanCfg }
652
+ extensionsCfg = { extensionsCfg }
653
653
findingCfgs = { findingCfgs }
654
654
/> )
655
655
}
@@ -661,7 +661,7 @@ Components.propTypes = {
661
661
isComponentsLoading : PropTypes . bool ,
662
662
isComponentsError : PropTypes . bool ,
663
663
ocmRepo : PropTypes . string ,
664
- scanCfg : PropTypes . object ,
664
+ extensionsCfg : PropTypes . object ,
665
665
findingCfgs : PropTypes . arrayOf ( PropTypes . object ) . isRequired ,
666
666
}
667
667
@@ -674,7 +674,7 @@ const ArtefactDetails = ({
674
674
complianceSummaryFetchDetails,
675
675
complianceDataFetchDetails,
676
676
fetchComplianceSummary,
677
- scanCfg ,
677
+ extensionsCfg ,
678
678
findingCfgs,
679
679
} ) => {
680
680
if ( artefacts . length === 0 ) return null
@@ -706,7 +706,7 @@ const ArtefactDetails = ({
706
706
complianceSummaryFetchDetails = { complianceSummaryFetchDetails }
707
707
complianceDataFetchDetails = { complianceDataFetchDetails }
708
708
fetchComplianceSummary = { fetchComplianceSummary }
709
- scanCfg = { scanCfg }
709
+ extensionsCfg = { extensionsCfg }
710
710
findingCfgs = { findingCfgs }
711
711
/>
712
712
} )
@@ -725,7 +725,7 @@ ArtefactDetails.propTypes = {
725
725
complianceSummaryFetchDetails : PropTypes . object . isRequired ,
726
726
complianceDataFetchDetails : PropTypes . object . isRequired ,
727
727
fetchComplianceSummary : PropTypes . func . isRequired ,
728
- scanCfg : PropTypes . object ,
728
+ extensionsCfg : PropTypes . object ,
729
729
findingCfgs : PropTypes . arrayOf ( PropTypes . object ) . isRequired ,
730
730
}
731
731
@@ -735,7 +735,7 @@ const Artefacts = ({
735
735
ocmRepo,
736
736
complianceSummaryFetchDetails,
737
737
fetchComplianceSummary,
738
- scanCfg ,
738
+ extensionsCfg ,
739
739
findingCfgs,
740
740
} ) => {
741
741
const artefacts = React . useMemo ( ( ) => {
@@ -812,7 +812,7 @@ const Artefacts = ({
812
812
complianceSummaryFetchDetails = { complianceSummaryFetchDetails }
813
813
complianceDataFetchDetails = { complianceDataFetchDetails }
814
814
fetchComplianceSummary = { fetchComplianceSummary }
815
- scanCfg = { scanCfg }
815
+ extensionsCfg = { extensionsCfg }
816
816
findingCfgs = { findingCfgs }
817
817
/>
818
818
< ArtefactDetails
@@ -823,7 +823,7 @@ const Artefacts = ({
823
823
complianceSummaryFetchDetails = { complianceSummaryFetchDetails }
824
824
complianceDataFetchDetails = { complianceDataFetchDetails }
825
825
fetchComplianceSummary = { fetchComplianceSummary }
826
- scanCfg = { scanCfg }
826
+ extensionsCfg = { extensionsCfg }
827
827
findingCfgs = { findingCfgs }
828
828
/>
829
829
< ComponentReferences
@@ -838,7 +838,7 @@ Artefacts.propTypes = {
838
838
ocmRepo : PropTypes . string ,
839
839
complianceSummaryFetchDetails : PropTypes . object . isRequired ,
840
840
fetchComplianceSummary : PropTypes . func . isRequired ,
841
- scanCfg : PropTypes . object ,
841
+ extensionsCfg : PropTypes . object ,
842
842
findingCfgs : PropTypes . arrayOf ( PropTypes . object ) . isRequired ,
843
843
}
844
844
@@ -849,7 +849,7 @@ const ArtefactTableRow = ({
849
849
complianceSummaryFetchDetails,
850
850
complianceDataFetchDetails,
851
851
fetchComplianceSummary,
852
- scanCfg ,
852
+ extensionsCfg ,
853
853
findingCfgs,
854
854
} ) => {
855
855
return < TableRow sx = { { '&:last-child td, &:last-child th' : { border : 0 } } } >
@@ -863,7 +863,7 @@ const ArtefactTableRow = ({
863
863
complianceSummaryFetchDetails = { complianceSummaryFetchDetails }
864
864
complianceDataFetchDetails = { complianceDataFetchDetails }
865
865
fetchComplianceSummary = { fetchComplianceSummary }
866
- scanCfg = { scanCfg }
866
+ extensionsCfg = { extensionsCfg }
867
867
findingCfgs = { findingCfgs }
868
868
/>
869
869
}
@@ -877,7 +877,7 @@ ArtefactTableRow.propTypes = {
877
877
complianceSummaryFetchDetails : PropTypes . object . isRequired ,
878
878
complianceDataFetchDetails : PropTypes . object . isRequired ,
879
879
fetchComplianceSummary : PropTypes . func . isRequired ,
880
- scanCfg : PropTypes . object ,
880
+ extensionsCfg : PropTypes . object ,
881
881
findingCfgs : PropTypes . arrayOf ( PropTypes . object ) . isRequired ,
882
882
}
883
883
@@ -1365,7 +1365,7 @@ const FetchComponentRefsTab = React.memo(({
1365
1365
ocmRepo,
1366
1366
searchQuery,
1367
1367
setComponentRefs,
1368
- scanCfg ,
1368
+ extensionsCfg ,
1369
1369
findingCfgs,
1370
1370
} ) => {
1371
1371
const [ componentRefs , state ] = useFetchBom ( {
@@ -1394,7 +1394,7 @@ const FetchComponentRefsTab = React.memo(({
1394
1394
ocmRepo = { ocmRepo }
1395
1395
componentRefs = { componentRefs . componentDependencies }
1396
1396
searchQuery = { searchQuery }
1397
- scanCfg = { scanCfg }
1397
+ extensionsCfg = { extensionsCfg }
1398
1398
findingCfgs = { findingCfgs }
1399
1399
/>
1400
1400
} )
@@ -1404,7 +1404,7 @@ FetchComponentRefsTab.propTypes = {
1404
1404
ocmRepo : PropTypes . string ,
1405
1405
searchQuery : PropTypes . string ,
1406
1406
setComponentRefs : PropTypes . func . isRequired ,
1407
- scanCfg : PropTypes . object ,
1407
+ extensionsCfg : PropTypes . object ,
1408
1408
findingCfgs : PropTypes . arrayOf ( PropTypes . object ) . isRequired ,
1409
1409
}
1410
1410
@@ -1420,7 +1420,7 @@ export const BomTab = React.memo(({
1420
1420
1421
1421
const featureRegistrationContext = React . useContext ( FeatureRegistrationContext )
1422
1422
const [ specialComponentsFeature , setSpecialComponentsFeature ] = React . useState ( )
1423
- const [ scanCfgFeature , setScanCfgFeature ] = React . useState ( )
1423
+ const [ extensionsCfgFeature , setExtensionsCfgFeature ] = React . useState ( )
1424
1424
const [ findingCfgsFeature , setFindingCfgsFeature ] = React . useState ( )
1425
1425
1426
1426
React . useEffect ( ( ) => {
@@ -1434,8 +1434,8 @@ export const BomTab = React.memo(({
1434
1434
React . useEffect ( ( ) => {
1435
1435
return registerCallbackHandler ( {
1436
1436
featureRegistrationContext : featureRegistrationContext ,
1437
- featureName : features . SCAN_CONFIGURATION ,
1438
- callback : ( { feature} ) => setScanCfgFeature ( feature ) ,
1437
+ featureName : features . EXTENSIONS_CONFIGURATION ,
1438
+ callback : ( { feature} ) => setExtensionsCfgFeature ( feature ) ,
1439
1439
} )
1440
1440
} , [ featureRegistrationContext ] )
1441
1441
@@ -1456,7 +1456,7 @@ export const BomTab = React.memo(({
1456
1456
return specialComponentsFeature . cfg . specialComponents . find ( c => c . name === component . name )
1457
1457
}
1458
1458
1459
- const scanCfg = scanCfgFeature ?. isAvailable ? scanCfgFeature . scan_cfg : null
1459
+ const extensionsCfg = extensionsCfgFeature ?. isAvailable ? extensionsCfgFeature . extensions_cfg : null
1460
1460
const findingCfgs = findingCfgsFeature ?. isAvailable ? findingCfgsFeature . finding_cfgs : [ ]
1461
1461
1462
1462
return < Box
@@ -1479,7 +1479,7 @@ export const BomTab = React.memo(({
1479
1479
ocmRepo = { ocmRepo }
1480
1480
searchQuery = { searchQuery }
1481
1481
setComponentRefs = { setComponentRefs }
1482
- scanCfg = { scanCfg }
1482
+ extensionsCfg = { extensionsCfg }
1483
1483
findingCfgs = { findingCfgs }
1484
1484
/>
1485
1485
}
@@ -1500,7 +1500,7 @@ const FetchDependenciesTab = React.memo(({
1500
1500
ocmRepo,
1501
1501
componentRefs,
1502
1502
searchQuery,
1503
- scanCfg ,
1503
+ extensionsCfg ,
1504
1504
findingCfgs,
1505
1505
} ) => {
1506
1506
const compareComponentsByName = ( a , b ) => {
@@ -1560,7 +1560,7 @@ const FetchDependenciesTab = React.memo(({
1560
1560
component = { component }
1561
1561
ocmRepo = { ocmRepo }
1562
1562
isParentComponent = { true }
1563
- scanCfg = { scanCfg }
1563
+ extensionsCfg = { extensionsCfg }
1564
1564
findingCfgs = { findingCfgs }
1565
1565
/>
1566
1566
< div style = { { padding : '0.5em' } } />
@@ -1576,7 +1576,7 @@ const FetchDependenciesTab = React.memo(({
1576
1576
isComponentsLoading = { state . isLoading }
1577
1577
isComponentsError = { state . error }
1578
1578
ocmRepo = { ocmRepo }
1579
- scanCfg = { scanCfg }
1579
+ extensionsCfg = { extensionsCfg }
1580
1580
findingCfgs = { findingCfgs }
1581
1581
/>
1582
1582
</ Box >
@@ -1588,7 +1588,7 @@ const FetchDependenciesTab = React.memo(({
1588
1588
isComponentsLoading = { state . isLoading }
1589
1589
isComponentsError = { state . error }
1590
1590
ocmRepo = { ocmRepo }
1591
- scanCfg = { scanCfg }
1591
+ extensionsCfg = { extensionsCfg }
1592
1592
findingCfgs = { findingCfgs }
1593
1593
/>
1594
1594
</ Box >
@@ -1601,7 +1601,7 @@ FetchDependenciesTab.propTypes = {
1601
1601
ocmRepo : PropTypes . string ,
1602
1602
componentRefs : PropTypes . arrayOf ( PropTypes . object ) . isRequired ,
1603
1603
searchQuery : PropTypes . string ,
1604
- scanCfg : PropTypes . object ,
1604
+ extensionsCfg : PropTypes . object ,
1605
1605
findingCfgs : PropTypes . arrayOf ( PropTypes . object ) . isRequired ,
1606
1606
}
1607
1607
@@ -2090,7 +2090,7 @@ const ComplianceCell = ({
2090
2090
complianceSummaryFetchDetails,
2091
2091
complianceDataFetchDetails,
2092
2092
fetchComplianceSummary,
2093
- scanCfg ,
2093
+ extensionsCfg ,
2094
2094
findingCfgs,
2095
2095
} ) => {
2096
2096
const { complianceSummary, isSummaryError} = complianceSummaryFetchDetails
@@ -2236,13 +2236,13 @@ const ComplianceCell = ({
2236
2236
return < TableCell >
2237
2237
< Grid container direction = 'row-reverse' spacing = { 1 } >
2238
2238
{
2239
- scanCfg ?. issue_replicator && < IssueChip
2239
+ extensionsCfg ?. issue_replicator && < IssueChip
2240
2240
ocmNode = { ocmNode }
2241
- issueReplicatorCfg = { scanCfg . issue_replicator }
2241
+ issueReplicatorCfg = { extensionsCfg . issue_replicator }
2242
2242
/>
2243
2243
}
2244
2244
{
2245
- scanCfg ?. bdba && ocmNode . artefactKind === ARTEFACT_KIND . RESOURCE && retrieveLicenseFindings && < RescoringCell
2245
+ extensionsCfg ?. bdba && ocmNode . artefactKind === ARTEFACT_KIND . RESOURCE && retrieveLicenseFindings && < RescoringCell
2246
2246
ocmNodes = { ocmNodes }
2247
2247
ocmRepo = { ocmRepo }
2248
2248
datasource = { datasources . BDBA }
@@ -2255,7 +2255,7 @@ const ComplianceCell = ({
2255
2255
/>
2256
2256
}
2257
2257
{
2258
- scanCfg ?. clamav && ocmNode . artefactKind === ARTEFACT_KIND . RESOURCE && retrieveMalwareFindings && < RescoringCell
2258
+ extensionsCfg ?. clamav && ocmNode . artefactKind === ARTEFACT_KIND . RESOURCE && retrieveMalwareFindings && < RescoringCell
2259
2259
ocmNodes = { ocmNodes }
2260
2260
ocmRepo = { ocmRepo }
2261
2261
datasource = { datasources . CLAMAV }
@@ -2282,7 +2282,7 @@ const ComplianceCell = ({
2282
2282
/>
2283
2283
}
2284
2284
{
2285
- scanCfg ?. bdba && ocmNode . artefactKind === ARTEFACT_KIND . RESOURCE && retrieveVulnerabilityFindings && < RescoringCell
2285
+ extensionsCfg ?. bdba && ocmNode . artefactKind === ARTEFACT_KIND . RESOURCE && retrieveVulnerabilityFindings && < RescoringCell
2286
2286
ocmNodes = { ocmNodes }
2287
2287
ocmRepo = { ocmRepo }
2288
2288
datasource = { datasources . BDBA }
@@ -2304,7 +2304,7 @@ ComplianceCell.propTypes = {
2304
2304
complianceSummaryFetchDetails : PropTypes . object . isRequired ,
2305
2305
complianceDataFetchDetails : PropTypes . object . isRequired ,
2306
2306
fetchComplianceSummary : PropTypes . func . isRequired ,
2307
- scanCfg : PropTypes . object ,
2307
+ extensionsCfg : PropTypes . object ,
2308
2308
findingCfgs : PropTypes . arrayOf ( PropTypes . object ) . isRequired ,
2309
2309
}
2310
2310
0 commit comments