Skip to content

Commit 5c254d3

Browse files
authored
Reopened update set (#95)
1 parent c533a0f commit 5c254d3

File tree

2 files changed

+54
-0
lines changed

2 files changed

+54
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,10 @@ This is a table check on the incidents table that verifies if there are closed o
122122
Finds integration users that have assigned admin role - there are two types:
123123
- webapi with a flag: Web service access only | web_service_access_only
124124
- internal with a flag: Internal Integration User ! internal_integration_user
125+
126+
### Update set In Progress previously completed
127+
Already completed Update Set shouldn't be set back to In Pogress
128+
There is risk that even for a moment completed update set were retrieved to higher environment and won't be retrieved once again after more modifications are done on lower environment
125129

126130
## Category: Upgradability
127131

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<unload unload_date="2023-10-17 07:07:27">
3+
<scan_table_check action="INSERT_OR_UPDATE">
4+
<active>true</active>
5+
<advanced>true</advanced>
6+
<category>manageability</category>
7+
<conditions table="sys_update_set">state=in progress^EQ<item goto="false" or="false" field="state" endquery="false" value="in progress" operator="=" newquery="false"/>
8+
<item goto="false" or="false" field="" endquery="true" value="" operator="=" newquery="false"/>
9+
</conditions>
10+
<description/>
11+
<documentation_url/>
12+
<finding_type>scan_finding</finding_type>
13+
<name>Update set In Progress previously completed</name>
14+
<priority>3</priority>
15+
<resolution_details/>
16+
<run_condition/>
17+
<score_max>100</score_max>
18+
<score_min>0</score_min>
19+
<score_scale>1</score_scale>
20+
<script><![CDATA[(function (finding, current) {
21+
22+
var usSysId = current.getUniqueValue();
23+
var audit = new GlideRecord('sys_audit');
24+
audit.addEncodedQuery('fieldname=state^tablename=sys_update_set^oldvalue=complete^newvalue=in progress');
25+
audit.addQuery('documentkey', usSysId);
26+
audit.setLimit(1);
27+
audit.query();
28+
29+
if(audit.hasNext()){
30+
finding.increment();
31+
}
32+
33+
})(finding, current);]]></script>
34+
<short_description>Already completed Update Set shouldn't be set back to In Pogress</short_description>
35+
<sys_class_name>scan_table_check</sys_class_name>
36+
<sys_created_by>admin</sys_created_by>
37+
<sys_created_on>2023-10-13 23:33:30</sys_created_on>
38+
<sys_id>62e0ecfa2ff9b110b0b62d5df699b6ee</sys_id>
39+
<sys_mod_count>3</sys_mod_count>
40+
<sys_name>Update set In Progress previously completed</sys_name>
41+
<sys_package display_value="Global" source="global">global</sys_package>
42+
<sys_policy/>
43+
<sys_scope display_value="Global">global</sys_scope>
44+
<sys_update_name>scan_table_check_62e0ecfa2ff9b110b0b62d5df699b6ee</sys_update_name>
45+
<sys_updated_by>admin</sys_updated_by>
46+
<sys_updated_on>2023-10-17 06:49:47</sys_updated_on>
47+
<table>sys_update_set</table>
48+
<use_manifest>false</use_manifest>
49+
</scan_table_check>
50+
</unload>

0 commit comments

Comments
 (0)