diff --git a/plugins/arcgis/service/src/ArcGISConfig.ts b/plugins/arcgis/service/src/ArcGISConfig.ts index a0904daee..b0e19631d 100644 --- a/plugins/arcgis/service/src/ArcGISConfig.ts +++ b/plugins/arcgis/service/src/ArcGISConfig.ts @@ -8,10 +8,10 @@ export interface FeatureServiceConfig { */ url: string - /** - * Serialized ArcGISIdentityManager - */ - identityManager: string + /** + * Serialized ArcGISIdentityManager + */ + identityManager: string /** * The feature layers. diff --git a/plugins/arcgis/service/src/index.ts b/plugins/arcgis/service/src/index.ts index b70e32333..948c68b54 100644 --- a/plugins/arcgis/service/src/index.ts +++ b/plugins/arcgis/service/src/index.ts @@ -172,7 +172,7 @@ const arcgisPluginHooks: InitPluginHook = { return { url: updateService.url, layers: updateService.layers, - identityManager: existingService?.identityManager + identityManager: existingService?.identityManager || '' } }) diff --git a/plugins/arcgis/web-app/projects/main/src/lib/arc-admin/arc-admin.component.html b/plugins/arcgis/web-app/projects/main/src/lib/arc-admin/arc-admin.component.html index 316095fb9..d09362254 100644 --- a/plugins/arcgis/web-app/projects/main/src/lib/arc-admin/arc-admin.component.html +++ b/plugins/arcgis/web-app/projects/main/src/lib/arc-admin/arc-admin.component.html @@ -3,80 +3,88 @@

ArcGIS Configuration

- Processing + Processing MAGE ArcGIS plugin processing settings. -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Enabled - - {{config.enabled}}
Base URL - - {{config.baseUrl}}
Interval (s) - - {{config.intervalSeconds}}
Startup Interval (s) - - {{config.startupIntervalSeconds}}
Update Interval (s) - - {{config.updateIntervalSeconds}}
Batch Size - - {{config.batchSize}}
Attachment Tolerance (ms) - - {{config.attachmentModifiedTolerance}}
+
+
+
+ + Enabled + + true + false + + Process observations and send to configured ArcGIS feature layers + +
+
+ + Base URL + + Mage server base URL + +
+
+ + Interval + + Observation query and processing frequency time interval in seconds + +
+
+ + Startup Interval + + Startup interval in seconds to wait for feature layer processors to be ready + +
+
+ + Update Interval + + Processing wait time interval in seconds when pending observation updates exist + +
+
+ + Batch Size + + Maximum number of observations to process during a single time interval + +
+
+ + Attachment Tolerance + + Time tolerance in milliseconds to consider an attachment as modified compared to the observation + +
+
- + + @@ -651,104 +659,6 @@

{{infoTitle}}

- -

Processing Configuration

- -
-
- - - true - false - - - -
-
- - - - -
-
- - Interval - - - -
-
- - Startup Interval - - - -
-
- - Update Interval - - - -
-
- - Batch Size - - - -
-
- - Attachment Tolerance - - - -
-
-
- - - - -

Attributes Configuration

@@ -888,8 +798,8 @@

Attributes Configuration

- +
diff --git a/plugins/arcgis/web-app/projects/main/src/lib/arc-admin/arc-admin.component.scss b/plugins/arcgis/web-app/projects/main/src/lib/arc-admin/arc-admin.component.scss index 0cd37aa01..f308245d6 100644 --- a/plugins/arcgis/web-app/projects/main/src/lib/arc-admin/arc-admin.component.scss +++ b/plugins/arcgis/web-app/projects/main/src/lib/arc-admin/arc-admin.component.scss @@ -7,6 +7,10 @@ padding: 1rem; } +.edit-processing-form .mat-form-field { + margin-bottom: 1.5rem !important; +} + section { >* { margin-inline-start: 0em; diff --git a/plugins/arcgis/web-app/projects/main/src/lib/arc-admin/arc-admin.component.ts b/plugins/arcgis/web-app/projects/main/src/lib/arc-admin/arc-admin.component.ts index 6d8ff2336..5171c4ea3 100644 --- a/plugins/arcgis/web-app/projects/main/src/lib/arc-admin/arc-admin.component.ts +++ b/plugins/arcgis/web-app/projects/main/src/lib/arc-admin/arc-admin.component.ts @@ -57,7 +57,7 @@ export class ArcAdminComponent implements OnInit { constructor(private arcService: ArcService, private dialog: MatDialog, private fb: FormBuilder) { this.config = defaultArcGISPluginConfig; - this.editConfig = defaultArcGISPluginConfig; + this.editConfig = this.copyConfig(); this.editFieldMappings = false; this.attributesForm = this.fb.group({ observationIdField: [''], @@ -79,6 +79,7 @@ export class ArcAdminComponent implements OnInit { if (!this.config.baseUrl) { this.config.baseUrl = window.location.origin } + this.editConfig = this.copyConfig(); arcService.fetchPopulatedEvents().subscribe(x => this.handleEventResults(x)); }) } @@ -141,7 +142,7 @@ export class ArcAdminComponent implements OnInit { console.log('Form Submitted:', this.editConfig); console.log('formValue: ', formValue); - this.editConfig = this.copyConfig(); + this.saveEdit(); } else{ console.log('Form is invalid, please correct the errors.') @@ -192,11 +193,6 @@ export class ArcAdminComponent implements OnInit { this.saveConfig(); } - onEditProcessing() { - this.editConfig = this.copyConfig() - this.dialog.open(this.editProcessingTemplate) - } - setField(field: string, value: any) { if (value != undefined && value.length == 0) { value = undefined @@ -303,6 +299,7 @@ export class ArcAdminComponent implements OnInit { cancelEdit() { console.log('Canceled configuration edit') + this.editConfig = this.copyConfig(); } keys(value: any): string[] {