Browse Source

UI: Add scheduledUpdateInterval in CalculatedFieldRelatedAggregationConfiguration

pull/14280/head
Vladyslav_Prykhodko 9 months ago
parent
commit
3545b00815
  1. 2
      ui-ngx/src/app/modules/home/components/calculated-fields/components/related-entities-aggregation-configuration/related-entities-aggregation-component.component.ts
  2. 1
      ui-ngx/src/app/shared/models/calculated-field.models.ts

2
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);
}
}

1
ui-ngx/src/app/shared/models/calculated-field.models.ts

@ -116,6 +116,7 @@ export interface CalculatedFieldRelatedAggregationConfiguration {
arguments: Record<string, CalculatedFieldArgument>;
metrics: Record<string, CalculatedFieldAggMetric>;
deduplicationIntervalInSec: number;
scheduledUpdateInterval?: number;
useLatestTs: boolean;
output: Omit<CalculatedFieldSimpleOutput, 'name'>;
}

Loading…
Cancel
Save