From 81bb3546ae9585658eccfbad9c6c1417720824f9 Mon Sep 17 00:00:00 2001 From: "anandhanatarajan.kuppusamy@zemosolabs.com" Date: Wed, 22 May 2024 17:31:40 +0530 Subject: [PATCH 1/2] fix:[CORE-2016]Filter DB Changes --- installer/resources/pacbot_app/files/DB.sql | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/installer/resources/pacbot_app/files/DB.sql b/installer/resources/pacbot_app/files/DB.sql index 8da0c64a77..a70ce620ae 100644 --- a/installer/resources/pacbot_app/files/DB.sql +++ b/installer/resources/pacbot_app/files/DB.sql @@ -3119,7 +3119,9 @@ INSERT IGNORE INTO pac_v2_ui_options (filterId,optionName,optionValue,optionURL) INSERT IGNORE INTO pac_v2_ui_options (filterId,optionName,optionValue,optionURL) VALUES (19,'Type','groupType','/admin/asset-group/filter'); INSERT IGNORE INTO pac_v2_ui_options (filterId,optionName,optionValue,optionURL) VALUES (19,'Number of assets','assetCount','/admin/asset-group/filter'); INSERT IGNORE INTO pac_v2_ui_options (filterId,optionName,optionValue,optionURL) VALUES (19,'Created By','createdBy','/admin/asset-group/filter'); - +INSERT IGNORE INTO pac_v2_ui_options (filterId,optionName,optionValue,optionURL) VALUES (17,'DisabledReason','DisabledReason','/compliance/v1/filters/policy'); +INSERT IGNORE INTO pac_v2_ui_options (filterId,optionName,optionValue,optionURL) VALUES (17,'DisabledOn','DisabledOn','/compliance/v1/filters/policy'); +INSERT IGNORE INTO pac_v2_ui_options (filterId,optionName,optionValue,optionURL) VALUES (17,'DisableExpiredOn','DisableExpiredOn','/compliance/v1/filters/policy'); /* Plugin developed using PluginEngine V1 */ INSERT INTO pac_config_properties (`cfkey`,`value`,`application`,`profile`,`label`,`createdBy`,`createdDate`,`modifiedBy`,`modifiedDate`) VALUES ('plugins.in.v1','gcp,redhat,contrast,checkmarx,crowdstrike,rapid7,wiz','job-scheduler','prd','latest','System',now(),NULL,NULL) ON DUPLICATE KEY UPDATE value = 'gcp,redhat,contrast,checkmarx,crowdstrike,rapid7', modifiedBy='System', modifiedDate=now(); From 558105f08c9bfaa80a78903afffb5a85d6853a82 Mon Sep 17 00:00:00 2001 From: "anandhanatarajan.kuppusamy@zemosolabs.com" Date: Thu, 23 May 2024 21:03:36 +0530 Subject: [PATCH 2/2] Adding serviceId for Admin Polciy --- installer/resources/pacbot_app/files/DB.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installer/resources/pacbot_app/files/DB.sql b/installer/resources/pacbot_app/files/DB.sql index a70ce620ae..0408653792 100644 --- a/installer/resources/pacbot_app/files/DB.sql +++ b/installer/resources/pacbot_app/files/DB.sql @@ -1541,7 +1541,7 @@ INSERT IGNORE INTO pac_v2_ui_download_filters (serviceId,serviceName,serviceEndp (16,'Recommendation','/api/asset/v1/recommendations'), (17,'CloudNotificationsWithOutGlobal','/api/asset/v1/cloud/notifications?global=false'), (18,'CloudNotificationsWithGlobal','/api/asset/v1/cloud/notifications?global=true'); - +INSERT IGNORE INTO pac_v2_ui_download_filters(serviceId,serviceName,serviceEndpoint) value(19,'AdminPolicies','/api/admin/policy/list'); INSERT IGNORE INTO pac_config_relation (`application`,`parent`) VALUES ('application','root'); INSERT IGNORE INTO pac_config_relation (`application`,`parent`) VALUES ('batch','application');