Browse Source

UI: Add new tenant profile configuration minAllowedDeduplicationIntervalInSecForCF

pull/14141/head
Vladyslav_Prykhodko 10 months ago
parent
commit
bb308919ce
  1. 1
      ui-ngx/src/app/core/auth/auth.models.ts
  2. 1
      ui-ngx/src/app/core/auth/auth.reducer.ts
  3. 14
      ui-ngx/src/app/modules/home/components/profile/tenant/default-tenant-profile-configuration.component.html
  4. 1
      ui-ngx/src/app/modules/home/components/profile/tenant/default-tenant-profile-configuration.component.ts
  5. 2
      ui-ngx/src/app/shared/models/tenant.model.ts
  6. 3
      ui-ngx/src/assets/locale/locale.constant-en_US.json

1
ui-ngx/src/app/core/auth/auth.models.ts

@ -31,6 +31,7 @@ export interface SysParamsState {
maxDebugModeDurationMinutes: number;
maxDataPointsPerRollingArg: number;
maxArgumentsPerCF: number;
minAllowedDeduplicationIntervalInSecForCF: number;
minAllowedScheduledUpdateIntervalInSecForCF: number;
maxRelationLevelPerCfArgument: number;
ruleChainDebugPerTenantLimitsConfiguration?: string;

1
ui-ngx/src/app/core/auth/auth.reducer.ts

@ -33,6 +33,7 @@ const emptyUserAuthState: AuthPayload = {
mobileQrEnabled: false,
maxResourceSize: 0,
maxArgumentsPerCF: 0,
minAllowedDeduplicationIntervalInSecForCF: 0,
minAllowedScheduledUpdateIntervalInSecForCF: 0,
maxRelationLevelPerCfArgument: 0,
maxDataPointsPerRollingArg: 0,

14
ui-ngx/src/app/modules/home/components/profile/tenant/default-tenant-profile-configuration.component.html

@ -354,7 +354,19 @@
</mat-error>
<mat-hint translate>tenant-profile.relation-search-entity-limit-hint</mat-hint>
</mat-form-field>
<div class="flex-1"></div>
<mat-form-field class="mat-block flex-1" appearance="fill" subscriptSizing="dynamic">
<mat-label translate>tenant-profile.min-allowed-deduplication-interval</mat-label>
<input matInput required min="0" step="1"
formControlName="minAllowedDeduplicationIntervalInSecForCF"
type="number">
<mat-error *ngIf="tenantProfileConfigurationForm.get('minAllowedDeduplicationIntervalInSecForCF').hasError('required')">
{{ 'tenant-profile.min-allowed-deduplication-interval-required' | translate}}
</mat-error>
<mat-error *ngIf="tenantProfileConfigurationForm.get('minAllowedDeduplicationIntervalInSecForCF').hasError('min')">
{{ 'tenant-profile.min-allowed-deduplication-interval-range' | translate}}
</mat-error>
<mat-hint></mat-hint>
</mat-form-field>
</div>
</ng-template>
</mat-expansion-panel>

1
ui-ngx/src/app/modules/home/components/profile/tenant/default-tenant-profile-configuration.component.ts

@ -116,6 +116,7 @@ export class DefaultTenantProfileConfigurationComponent implements ControlValueA
maxCalculatedFieldsPerEntity: [0, [Validators.required, Validators.min(0)]],
maxArgumentsPerCF: [0, [Validators.required, Validators.min(0)]],
maxRelationLevelPerCfArgument: [1, [Validators.required, Validators.min(1)]],
minAllowedDeduplicationIntervalInSecForCF: [0, [Validators.required, Validators.min(0)]],
maxRelatedEntitiesToReturnPerCfArgument: [1, [Validators.required, Validators.min(1)]],
minAllowedScheduledUpdateIntervalInSecForCF: [0, [Validators.required, Validators.min(0)]],
maxDataPointsPerRollingArg: [0, [Validators.required, Validators.min(0)]],

2
ui-ngx/src/app/shared/models/tenant.model.ts

@ -107,6 +107,7 @@ export interface DefaultTenantProfileConfiguration {
maxCalculatedFieldsPerEntity: number;
maxArgumentsPerCF: number;
maxRelationLevelPerCfArgument: number;
minAllowedDeduplicationIntervalInSecForCF: number;
maxRelatedEntitiesToReturnPerCfArgument: number;
minAllowedScheduledUpdateIntervalInSecForCF: number;
maxDataPointsPerRollingArg: number;
@ -174,6 +175,7 @@ export function createTenantProfileConfiguration(type: TenantProfileType): Tenan
maxArgumentsPerCF: 10,
maxDataPointsPerRollingArg: 1000,
maxRelationLevelPerCfArgument: 10,
minAllowedDeduplicationIntervalInSecForCF: 3600,
maxRelatedEntitiesToReturnPerCfArgument: 100,
minAllowedScheduledUpdateIntervalInSecForCF: 0,
maxStateSizeInKBytes: 32,

3
ui-ngx/src/assets/locale/locale.constant-en_US.json

@ -5876,6 +5876,9 @@
"max-related-level-per-argument-required": "Relation level per 'Related entities' argument max number is required",
"min-allowed-scheduled-update-interval": "Min allowed update interval for 'Related entities' arguments (seconds)",
"min-allowed-scheduled-update-interval-range": "Min allowed update interval min number can't be negative",
"min-allowed-deduplication-interval": "Min allowed deduplication interval (seconds)",
"min-allowed-deduplication-interval-range": "Min allowed deduplication interval value can't be negative",
"min-allowed-deduplication-interval-required": "Min allowed deduplication interval is required",
"min-allowed-scheduled-update-interval-required": "Min allowed update interval min number is required",
"max-state-size": "State maximum size in KB",
"max-state-size-range": "State maximum size in KB can't be negative",

Loading…
Cancel
Save