Skip to content

Commit e410565

Browse files
authored
Merge pull request #1002 from utmstack/bugfix/10.5.18/add-compliance
Bugfix/10.5.18/add compliance
2 parents 83af50c + d8c88b0 commit e410565

File tree

6 files changed

+23
-1392
lines changed

6 files changed

+23
-1392
lines changed

CHANGELOG.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
- Fixed time filter updates not reflecting in the filter string.
55
- Fixed index pattern changes not updating the browser URL.
66
- Fixed container memory resource distribution
7+
- Fixed empty column status in cvs export
78
## New Features
89
- Restricted time filter to a maximum range of one month.
910
- Made the timestamp field mandatory and added a summary view when no fields are selected.
1011
- Moved “Add Filter” button to the left and improved filter UI with better icons.
1112
- Removed unnecessary header space to enhance table visibility.
12-
- Added "contains one of" and "does not contain one of" operators to filters.
13-
- Improved compliance report views with added functionalities, including status tracking and evidence attachments.
13+
- Added "contains one of" and "does not contain one of" operators to filters.

backend/src/main/resources/config/application-dev.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ spring:
4444
cache: false
4545

4646
server:
47-
port: 8081
47+
port: 8080
4848

4949
jhipster:
5050
# CORS is only enabled by default with the "dev" profile

backend/src/main/resources/config/liquibase/changelog/20241120001_update_compliance_menu.xml

-18
Original file line numberDiff line numberDiff line change
@@ -24,24 +24,6 @@
2424
name = 'Alerts And Incidents'
2525
WHERE id = 505;
2626
27-
INSERT INTO public.utm_menu (id, name, url, parent_id, type, dashboard_id, position, menu_active, menu_action, menu_icon, module_name_short)
28-
VALUES (507, 'CMMC', 'compliance/report-viewer?standardId=1000000&standardName=CMMC', 500, 1, null, 6, true, false, null, null);
29-
30-
INSERT INTO public.utm_menu (id, name, url, parent_id, type, dashboard_id, position, menu_active, menu_action, menu_icon, module_name_short)
31-
VALUES (508, 'HIPAA', 'compliance/report-viewer?standardId=1000001&standardName=HIPAA', 500, 1, null, 7, true, false, null, null);
32-
33-
INSERT INTO public.utm_menu (id, name, url, parent_id, type, dashboard_id, position, menu_active, menu_action, menu_icon, module_name_short)
34-
VALUES (509, 'BANKING AUDIT', 'compliance/report-viewer?standardId=1000002&standardName=BANKING AUDIT', 500, 1, null, 7, true, false, null, null);
35-
36-
INSERT INTO utm_menu_authority (menu_id, authority_name) VALUES (507, 'ROLE_ADMIN');
37-
INSERT INTO utm_menu_authority (menu_id, authority_name) VALUES (507, 'ROLE_USER');
38-
39-
INSERT INTO utm_menu_authority (menu_id, authority_name) VALUES (508, 'ROLE_ADMIN');
40-
INSERT INTO utm_menu_authority (menu_id, authority_name) VALUES (508, 'ROLE_USER');
41-
42-
INSERT INTO utm_menu_authority (menu_id, authority_name) VALUES (509, 'ROLE_ADMIN');
43-
INSERT INTO utm_menu_authority (menu_id, authority_name) VALUES (509, 'ROLE_USER');
44-
4527
ALTER TABLE utm_compliance_report_config
4628
ADD COLUMN IF NOT EXISTS config_report_note TEXT;
4729

backend/src/main/resources/config/liquibase/changelog/20250127001_add_compliance_data.xml

-1,365
This file was deleted.

backend/src/main/resources/config/liquibase/master.xml

-5
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,4 @@
7171

7272
<include file="/config/liquibase/changelog/20241120001_update_compliance_menu.xml" relativeToChangelogFile="false"/>
7373

74-
<include file="/config/liquibase/changelog/20250127001_add_compliance_data.xml" relativeToChangelogFile="false"/>
75-
76-
77-
78-
7974
</databaseChangeLog>

frontend/src/app/data-management/alert-management/alert-view/alert-view.component.ts

+20-1
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ import {getCurrentAlertStatus, getStatusName} from '../shared/util/alert-util-fu
5656
import {CheckEmailConfigService, ParamShortType} from '../../../shared/services/util/check-email-config.service';
5757
import {Subject} from "rxjs";
5858
import {takeUntil} from "rxjs/operators";
59+
import {ElasticDataTypesEnum} from "../../../shared/enums/elastic-data-types.enum";
5960

6061
@Component({
6162
selector: 'app-alert-view',
@@ -327,7 +328,25 @@ export class AlertViewComponent implements OnInit, OnDestroy {
327328
{centered: true});
328329
modalSaveReport.componentInstance.filters = this.filters;
329330
modalSaveReport.componentInstance.dataType = this.dataType;
330-
modalSaveReport.componentInstance.fields = this.fields.filter(value => value.visible === true);
331+
modalSaveReport.componentInstance.fields = this.getColumnToExport();
332+
}
333+
334+
getColumnToExport() {
335+
let fields = this.fields.filter(value => value.visible === true);
336+
337+
fields = fields.map( f => {
338+
if (f.field === ALERT_STATUS_FIELD) {
339+
f = {
340+
...f,
341+
field: ALERT_STATUS_LABEL_FIELD,
342+
type: ElasticDataTypesEnum.STRING
343+
};
344+
}
345+
346+
return f;
347+
});
348+
349+
return fields;
331350
}
332351

333352
toggleCheck() {

0 commit comments

Comments
 (0)