Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<databaseChangeLog
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.5.xsd">

<changeSet id="20260908001" author="Alex">
<sql dbms="postgresql" splitStatements="true" stripComments="true">
<![CDATA[
UPDATE public.utm_configuration_parameter
SET conf_param_required = false,
conf_param_regexp = '^$|^(\s*[\w.-]+@[\w.-]+\.\w+(\s*,\s*[\w.-]+@[\w.-]+\.\w+)*\s*|\s*[\w.-]+@[\w.-]+\.\w+\s*)$'
WHERE section_id = 4
AND conf_param_short IN ('utmstack.alert.addressToNotifyAlerts',
'utmstack.alert.addressToNotifyIncidents');
]]>
</sql>
</changeSet>
</databaseChangeLog>
4 changes: 3 additions & 1 deletion backend/src/main/resources/config/liquibase/master.xml
Original file line number Diff line number Diff line change
Expand Up @@ -604,5 +604,7 @@
<include file="/config/liquibase/changelog/20260623001_migrate_compliance_report_config_to_control_config.xml" relativeToChangelogFile="false"/>

<include file="/config/liquibase/changelog/20260831001_update_login_failed_menu_event_code.xml" relativeToChangelogFile="false"/>


<include file="/config/liquibase/changelog/20260908001_allow_empty_alert_notification_emails.xml" relativeToChangelogFile="false"/>

</databaseChangeLog>
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ import {SortEvent} from '../../../shared/directives/sortable/type/sort-event';
import {ElasticOperatorsEnum} from '../../../shared/enums/elastic-operators.enum';
import {DataNatureTypeEnum} from '../../../shared/enums/nature-data.enum';
import {ElasticDataService} from '../../../shared/services/elasticsearch/elastic-data.service';
import {CheckEmailConfigService, ParamShortType} from '../../../shared/services/util/check-email-config.service';
import {AlertTags} from '../../../shared/types/alert/alert-tag.type';
import {UtmAlertType} from '../../../shared/types/alert/utm-alert.type';
import {ElasticFilterType} from '../../../shared/types/filter/elastic-filter.type';
Expand Down Expand Up @@ -79,7 +78,6 @@ export class AlertViewComponent implements OnInit, OnDestroy {
private alertDataTypeBehavior: AlertDataTypeBehavior,
private alertTagService: AlertTagService,
private spinner: NgxSpinnerService,
private checkEmailConfigService: CheckEmailConfigService,
private localStorage: LocalStorageService,
private alertActionRefreshService: AlertActionRefreshService) {
// this.tableWidth = this.pageWidth - 300;
Expand Down Expand Up @@ -150,7 +148,6 @@ export class AlertViewComponent implements OnInit, OnDestroy {

ngOnInit() {
this.openAlerts = this.localStorage.retrieve(OPEN_ALERTS_KEY);
this.checkEmailConfigService.check(ParamShortType.Alert);
this.setInitialWidth();
this.getTags();
this.activatedRoute.queryParams.subscribe(params => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import {IncidentFilterType} from '../../shared/types/incident/incident-filter.ty
import {UtmIncidentType} from '../../shared/types/incident/utm-incident.type';
import {TimeFilterType} from '../../shared/types/time-filter.type';
import {calcTableDimension} from '../../shared/util/screen.util';
import {CheckEmailConfigService, ParamShortType} from "../../shared/services/util/check-email-config.service";

@Component({
selector: 'app-incident-management',
Expand Down Expand Up @@ -60,13 +59,11 @@ export class IncidentManagementComponent implements OnInit, OnDestroy {

constructor(private utmIncidentService: UtmIncidentService,
private modalService: NgbModal,
private activatedRoute: ActivatedRoute,
private checkEmailConfigService: CheckEmailConfigService) {
private activatedRoute: ActivatedRoute) {

}

ngOnInit() {
this.checkEmailConfigService.check(ParamShortType.Incident);
this.setInitialWidth();
this.getIncidents();
this.activatedRoute.queryParams.subscribe(params => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ <h6 class="font-weight-semibold mb-2">{{section.section | titlecase}}</h6>
[required]="conf.confParamRequired"
class="form-control"
rows="4"></textarea>
<small *ngIf="conf.confParamDatatype === configDataTypeEnum.EmailList && !isValid(conf)" class="form-text text-danger">
<small *ngIf="conf.confParamDatatype === configDataTypeEnum.EmailList && conf.confParamValue && !isValid(conf)" class="form-text text-danger">
Please enter valid email addresses separated by commas.
</small>

Expand Down
Loading