Skip to content

Commit 3d03f9d

Browse files
committed
Created a new instance scan checks (Table Check).
1 parent 8e3a111 commit 3d03f9d

File tree

2 files changed

+53
-1
lines changed

2 files changed

+53
-1
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
HTyLYLhnyO9jJ2-wVHbOdN5QH-XVqntqccC6pkvG7d1BybJs18Flv4aXZMFFi0UINXoIixTFVdpu_v2Jo1wDrgq6JHtdYyLYIAzAXNtfykYOcIVYQw0dInO3V6vz-ahJzRQuBv_z7sAvGLAWUQKADubjps7VDo8bEzPbCKDoFdpVsRacY2gQCQKygk6xoNrwLzznHwB3Izkq_nhWki_FPwJdiOJyMwkWRl9r9z94A4uo58WoFb3655hUHuFfGCnAdr0fC5n7NzznSREFMU_Oj2OW_NT8iRzBybmK_DJ3Vibe53W1Q86I7Hy3cRf1mV1VaDCLRYxr01lyiezxZu77TEYe7sOixnHommnqr3-Dxq-dyWGWCX2zRNcFKp9tGgZv8PryA8vf_AqVay6OnM_MiG0KhtG9-48c89zb7ugwS8fy046nadVy5M-qp_SszVp_4IMXhtohP2l57EfeIjGcWqgodxzIDl67r-dIfAUVjKcCGgMCDtzNzmsili-YNVZ5allJukpkCqcs5hbi_u1CAl99XqW5M3fU7u7wrfyl_QklnIVhnLTxGXm_h5jWuJ5BY_mEbDxXLEGAFM0W5ORtUTyTu_BlVx_RtjNr4k9hhVPS6Dabwtavu9VXAHekp9tSd68P10wq0_L9jQTAo8mGVcCtPNlTjsmuNwn8fvdSuaU
1+
uEH-MVj5358yRx1qNhQZQDDN5DRl_EHSvw3CQ3-uqkJ_UjcZdANraoCdU5KL_mwp7x_66jQSj054ighy53LegM7d6xp8_kOx-SoZTIBBtdf3RE1OwevZASv1Xl2dR1lp0CM5i8lVq4rGQFmN2RkUv1xgprPYKTBCZ4CamesJX89wF4nSGzRdUqPHkH_e73S8Jgwmmm4BxHZ0ow4yyQ3QJbAu90kHsbyehFpjxnzDPjiml_OPVkwylOkpqn4QviJ4UAcgb-00eYvr7RSYX2blyPTisybSLuK2ty0jsylJC8xzt5ZuO5ronXCrqPIwN2P9yXqU-nP3xnCZJJXnSGV2xUU-5OkcoMrfEht5HOM39kIOxzzJvGAOXs6wGA7OqEDdoZHQeZL3eR9m6lq_nHMCHPYjl8nFUedj10VV3oF6YETA4MX0MGNrybGVxIFfibgbqAzLnwiUnfKRtdvF3kRpcIBn8WGEiiSSzDDXovB4gY1b8Fhkk8SNhAM8a9518wFfJRbCWj4kwIJRbbKOKmOf1PY31VjHy8tQ0FH8xALm4sbGHfDTgGdo-Cjy3Velkrr3nqFJJOpdpqB1-I4_fXl8clJPYUou8CdxBhc9bhuZbkJvggMU-8Ne18HimH3K9cn2OLyRe7gRi8-nfG8c-pzvY_gW6iYdD3Yvdfqtirxs6gw
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
<?xml version="1.0" encoding="UTF-8"?><record_update table="scan_table_check">
2+
<scan_table_check action="INSERT_OR_UPDATE">
3+
<active>true</active>
4+
<advanced>true</advanced>
5+
<category>manageability</category>
6+
<conditions table="sys_update_set">state=in progress^ORstate=complete^EQ<item display_value="In progress" endquery="false" field="state" goto="false" newquery="false" operator="=" or="false" value="in progress"/>
7+
<item display_value="Complete" endquery="false" field="state" goto="false" newquery="false" operator="=" or="true" value="complete"/>
8+
<item endquery="true" field="" goto="false" newquery="false" operator="=" or="false" value=""/>
9+
</conditions>
10+
<description>Usually, developers mark an updatesets as Ignore if the work done is not required to be promoted or incorrect or irrelavent or due to any other reasons.
11+
However, at times, some of the developers may use the ignored set for any active work instead of creating new one by updating the state from Ignore to In-Progress. It is not a good practice to do the same. It may case the deployment issues and also makes the troubleshooting process cumbersome.
12+
It may also impact the deployment and cause issues in case if the state is changed to In-Progress/Completed for the potential ignored sets.</description>
13+
<documentation_url/>
14+
<finding_type>scan_finding</finding_type>
15+
<name>Update set In Progress/Completed previously Ignored</name>
16+
<priority>3</priority>
17+
<resolution_details>It is always good and recommended to create a new updateset instead of using already Ignored updatesets by changing the state from Ignore to In-Progress/Completed.</resolution_details>
18+
<run_condition/>
19+
<score_max>100</score_max>
20+
<score_min>0</score_min>
21+
<score_scale>1</score_scale>
22+
<script><![CDATA[(function (finding, current) {
23+
24+
var usSysId = current.getUniqueValue();
25+
var audit = new GlideRecord('sys_audit');
26+
audit.addEncodedQuery('fieldname=state^tablename=sys_update_set^oldvalue=ignore^newvalue=in progress^ORnewvalue=complete');
27+
audit.addQuery('documentkey', usSysId);
28+
audit.setLimit(1);
29+
audit.query();
30+
31+
if(audit.hasNext()){
32+
finding.increment();
33+
}
34+
35+
})(finding, current);]]></script>
36+
<short_description>Already Ignored Update Set shouldn't be set back to In Pogress/Completed.</short_description>
37+
<sys_class_name>scan_table_check</sys_class_name>
38+
<sys_created_by>admin</sys_created_by>
39+
<sys_created_on>2024-10-30 19:28:34</sys_created_on>
40+
<sys_id>01c1c08ec3a19610afa6fc84e401310d</sys_id>
41+
<sys_mod_count>0</sys_mod_count>
42+
<sys_name>Update set In Progress/Completed previously Ignored</sys_name>
43+
<sys_package display_value="Example Instance Checks" source="x_appe_exa_checks">ca8467c41b9abc10ce0f62c3b24bcbaa</sys_package>
44+
<sys_policy/>
45+
<sys_scope display_value="Example Instance Checks">ca8467c41b9abc10ce0f62c3b24bcbaa</sys_scope>
46+
<sys_update_name>scan_table_check_01c1c08ec3a19610afa6fc84e401310d</sys_update_name>
47+
<sys_updated_by>admin</sys_updated_by>
48+
<sys_updated_on>2024-10-30 19:28:34</sys_updated_on>
49+
<table>sys_update_set</table>
50+
<use_manifest>false</use_manifest>
51+
</scan_table_check>
52+
</record_update>

0 commit comments

Comments
 (0)