Skip to content

Commit f4bf30e

Browse files
committed
Merge remote-tracking branch 'origin/release/v11.2.3' into release/v11.2.3
2 parents 576874f + 0ca5bfb commit f4bf30e

File tree

5 files changed

+11
-3
lines changed

5 files changed

+11
-3
lines changed

.github/workflows/v11-deployment-pipeline.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ jobs:
522522
-H "Content-Type: application/json" \
523523
-H "id: $auth_id" \
524524
-H "key: $auth_key" \
525-
-d "{\"instance_id\": \"$instance_id\", \"version\": \"$TAG\"}")
525+
-d "{\"instances_ids\": [\"$instance_id\"], \"version\": \"$TAG\"}")
526526
527527
http_code=$(echo "$response" | tail -n1)
528528
body=$(echo "$response" | sed '$d')

backend/src/main/java/com/park/utmstack/service/correlation/rules/UtmCorrelationRulesService.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ public void setRuleActivation(Long ruleId, boolean setActive) throws Exception {
125125
.orElseThrow(() -> new RuntimeException(ctx + ": The rule you're trying to activate or deactivate is not present in database."));
126126
try {
127127
rule.setRuleActive(setActive);
128+
rule.setRuleLastUpdate(Instant.now());
128129
this.utmCorrelationRulesRepository.save(rule);
129130
} catch (Exception ex) {
130131
throw new RuntimeException(ctx + ": An error occurred while adding a rule.", ex);

backend/src/main/java/com/park/utmstack/service/logstash_filter/UtmLogstashFilterService.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import org.springframework.stereotype.Service;
77
import org.springframework.transaction.annotation.Transactional;
88

9+
import java.time.Instant;
910
import java.util.List;
1011
import java.util.Optional;
1112

@@ -36,6 +37,7 @@ public UtmLogstashFilterService(UtmLogstashFilterRepository logstashFilterReposi
3637
public UtmLogstashFilter save(UtmLogstashFilter logstashFilter) {
3738
final String ctx = CLASSNAME + ".save";
3839
try {
40+
logstashFilter.setUpdatedAt(Instant.now());
3941
logstashFilter.setSystemOwner(false);
4042
return logstashFilterRepository.save(logstashFilter);
4143
} catch (Exception e) {

backend/src/main/java/com/park/utmstack/web/rest/logstash_filter/UtmFilterResource.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public ResponseEntity<UtmLogstashFilter> createLogstashFilter(@Valid @RequestBod
7272
// If you provide a pipelineId we create relation, otherwise only create the filter
7373
if (pipelineId!=null) {
7474
Optional<UtmLogstashPipeline> pipeline = pipelineService.findOne(pipelineId);
75-
if (!pipeline.isPresent()) {
75+
if (pipeline.isEmpty()) {
7676
throw new Exception("The pipeline with ID (" + pipelineId + ") not exists");
7777
}
7878
UtmLogstashFilter filter = logstashFilterService.save(logstashFilter);

plugins/alerts/main.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,12 @@ func newAlert(alert *plugins.Alert, parentId *string) error {
335335
}
336336

337337
a.Id = alert.Id
338-
a.ParentId = alert.ParentId
338+
a.ParentId = func() string {
339+
if parentId != nil {
340+
return *parentId
341+
}
342+
return ""
343+
}()
339344
a.Name = alert.Name
340345
a.Category = alert.Category
341346
a.Description = alert.Description

0 commit comments

Comments
 (0)