From 3545b008155a710150db6d165914eb7b3b5be0a7 Mon Sep 17 00:00:00 2001 From: Vladyslav_Prykhodko Date: Thu, 6 Nov 2025 11:04:09 +0200 Subject: [PATCH] UI: Add scheduledUpdateInterval in CalculatedFieldRelatedAggregationConfiguration --- .../related-entities-aggregation-component.component.ts | 2 ++ ui-ngx/src/app/shared/models/calculated-field.models.ts | 1 + 2 files changed, 3 insertions(+) diff --git a/ui-ngx/src/app/modules/home/components/calculated-fields/components/related-entities-aggregation-configuration/related-entities-aggregation-component.component.ts b/ui-ngx/src/app/modules/home/components/calculated-fields/components/related-entities-aggregation-configuration/related-entities-aggregation-component.component.ts index af21e0ebdf..1df5f192c3 100644 --- a/ui-ngx/src/app/modules/home/components/calculated-fields/components/related-entities-aggregation-configuration/related-entities-aggregation-component.component.ts +++ b/ui-ngx/src/app/modules/home/components/calculated-fields/components/related-entities-aggregation-configuration/related-entities-aggregation-component.component.ts @@ -107,6 +107,7 @@ export class RelatedEntitiesAggregationComponentComponent implements ControlValu map(argumentsObj => getCalculatedFieldArgumentsHighlights(argumentsObj)) ); + private readonly minAllowedScheduledUpdateIntervalInSecForCF = getCurrentAuthState(this.store).minAllowedScheduledUpdateIntervalInSecForCF; private propagateChange: (config: CalculatedFieldRelatedAggregationConfiguration) => void = () => { }; constructor(private fb: FormBuilder, @@ -151,6 +152,7 @@ export class RelatedEntitiesAggregationComponentComponent implements ControlValu private updatedModel(value: CalculatedFieldRelatedAggregationConfiguration): void { value.type = CalculatedFieldType.RELATED_ENTITIES_AGGREGATION; + value.scheduledUpdateInterval = this.minAllowedScheduledUpdateIntervalInSecForCF; this.propagateChange(value); } } diff --git a/ui-ngx/src/app/shared/models/calculated-field.models.ts b/ui-ngx/src/app/shared/models/calculated-field.models.ts index 0ef454ae1f..324dfe0169 100644 --- a/ui-ngx/src/app/shared/models/calculated-field.models.ts +++ b/ui-ngx/src/app/shared/models/calculated-field.models.ts @@ -116,6 +116,7 @@ export interface CalculatedFieldRelatedAggregationConfiguration { arguments: Record; metrics: Record; deduplicationIntervalInSec: number; + scheduledUpdateInterval?: number; useLatestTs: boolean; output: Omit; }