Skip to content

Commit

Permalink
Merge branch 'master' into prash-checks
Browse files Browse the repository at this point in the history
  • Loading branch information
SapphicFire authored Oct 29, 2024
2 parents 226c515 + 86a3ea6 commit 2ab6806
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@ Script Includes names should not include spaces since it is not possible to call
### Roles assigned to non-existing users
Identify role assignments (sys_user_has_role) for users that do not exists

### Assign roles to Group
Assign Roles to sys_user_group , Rather than assigning roles to sys_user , It becomes difficult while adding lot of roles

### Check the incidents that are closed or canceled but still active
This is a table check on the incidents table that verifies if there are closed or canceled incidents in the active state, which would be a sign that the close_states are not set correctly on the incident table. This check can be done on any table, especially there where the State model was changed from OOTB or for custom extended tables. The problem with this kind of records is that they can influence the reports on active records on the respective table.

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<?xml version="1.0" encoding="UTF-8"?><record_update table="scan_table_check">
<scan_table_check action="INSERT_OR_UPDATE">
<active>true</active>
<advanced>true</advanced>
<category>performance</category>
<conditions/>
<description>Business Rules Inactive Status , Shouldnt be Visible</description>
<documentation_url/>
<finding_type>scan_finding</finding_type>
<name>Business_Rule_Active_Status</name>
<priority>3</priority>
<resolution_details/>
<run_condition/>
<score_max>100</score_max>
<score_min>0</score_min>
<score_scale>1</score_scale>
<script><![CDATA[(function (engine) {
if (!current.active) {
gs.addErrorMessage('Inactive Business Rule: ' + current.name);
}
})(engine);]]></script>
<short_description>Check the Active Status of Business Rules</short_description>
<sys_class_name>scan_table_check</sys_class_name>
<sys_created_by>admin</sys_created_by>
<sys_created_on>2024-10-28 09:25:41</sys_created_on>
<sys_id>01342bc1c3ed12103acc7275e40131eb</sys_id>
<sys_mod_count>0</sys_mod_count>
<sys_name>Business_Rule_Active_Status</sys_name>
<sys_package display_value="Example Instance Checks" source="x_appe_exa_checks">ca8467c41b9abc10ce0f62c3b24bcbaa</sys_package>
<sys_policy/>
<sys_scope display_value="Example Instance Checks">ca8467c41b9abc10ce0f62c3b24bcbaa</sys_scope>
<sys_update_name>scan_table_check_01342bc1c3ed12103acc7275e40131eb</sys_update_name>
<sys_updated_by>admin</sys_updated_by>
<sys_updated_on>2024-10-28 09:25:41</sys_updated_on>
<table>sys_script</table>
<use_manifest>false</use_manifest>
</scan_table_check>
<sys_translated_text action="delete_multiple" query="documentkey=01342bc1c3ed12103acc7275e40131eb"/>
<sys_es_latest_script action="INSERT_OR_UPDATE">
<id>01342bc1c3ed12103acc7275e40131eb</id>
<sys_created_by>admin</sys_created_by>
<sys_created_on>2024-10-28 09:25:40</sys_created_on>
<sys_id>39946781c3ed12103acc7275e4013112</sys_id>
<sys_mod_count>0</sys_mod_count>
<sys_updated_by>admin</sys_updated_by>
<sys_updated_on>2024-10-28 09:25:40</sys_updated_on>
<table>scan_table_check</table>
<use_es_latest>true</use_es_latest>
</sys_es_latest_script>
</record_update>

0 comments on commit 2ab6806

Please sign in to comment.