-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Materialize Processing Section #231
Open
Jordanafoster6
wants to merge
1
commit into
develop
Choose a base branch
from
ArcProcessingFacelift
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,80 +3,88 @@ <h1>ArcGIS Configuration</h1> | |
<mat-card appearance="outlined"> | ||
<mat-card-header> | ||
<mat-card-title> | ||
Processing <button class="edit-button" mat-icon-button (click)="onEditProcessing()"><mat-icon>edit</mat-icon></button> | ||
Processing | ||
</mat-card-title> | ||
<mat-card-subtitle>MAGE ArcGIS plugin processing settings.</mat-card-subtitle> | ||
</mat-card-header> | ||
<mat-card-content> | ||
<div class="processing"> | ||
<table class="processing-table"> | ||
<tr> | ||
<th>Enabled | ||
<button class="info-button" mat-icon-button | ||
(click)="showInfo('Enabled', 'Process observations and send to configured ArcGIS feature layers')"> | ||
<mat-icon class="info-icon" [inline]="true">info_outline</mat-icon> | ||
</button> | ||
</th> | ||
<td>{{config.enabled}}</td> | ||
</tr> | ||
<tr> | ||
<th>Base URL | ||
<button class="info-button" mat-icon-button (click)="showInfo('Base URL', 'MAGE server base URL')"> | ||
<mat-icon class="info-icon" [inline]="true">info_outline</mat-icon> | ||
</button> | ||
</th> | ||
<td>{{config.baseUrl}}</td> | ||
</tr> | ||
<tr> | ||
<th>Interval (s) | ||
<button class="info-button" mat-icon-button | ||
(click)="showInfo('Interval', 'Observation query and processing frequency time interval in seconds')"> | ||
<mat-icon class="info-icon" [inline]="true">info_outline</mat-icon> | ||
</button> | ||
</th> | ||
<td>{{config.intervalSeconds}}</td> | ||
</tr> | ||
<tr> | ||
<th>Startup Interval (s) | ||
<button class="info-button" mat-icon-button | ||
(click)="showInfo('Startup Interval', 'Startup interval in seconds to wait for feature layer processors to be ready')"> | ||
<mat-icon class="info-icon" [inline]="true">info_outline</mat-icon> | ||
</button> | ||
</th> | ||
<td>{{config.startupIntervalSeconds}}</td> | ||
</tr> | ||
<tr> | ||
<th>Update Interval (s) | ||
<button class="info-button" mat-icon-button | ||
(click)="showInfo('Update Interval', 'Processing wait time interval in seconds when pending observation updates exist')"> | ||
<mat-icon class="info-icon" [inline]="true">info_outline</mat-icon> | ||
</button> | ||
</th> | ||
<td>{{config.updateIntervalSeconds}}</td> | ||
</tr> | ||
<tr> | ||
<th>Batch Size | ||
<button class="info-button" mat-icon-button | ||
(click)="showInfo('Batch Size', 'Maximum number of observations to process during a single time interval')"> | ||
<mat-icon class="info-icon" [inline]="true">info_outline</mat-icon> | ||
</button> | ||
</th> | ||
<td>{{config.batchSize}}</td> | ||
</tr> | ||
<tr> | ||
<th>Attachment Tolerance (ms) | ||
<button class="info-button" mat-icon-button | ||
(click)="showInfo('Attachment Tolerance', 'Time tolerance in milliseconds to consider an attachment as modified compared to the observation')"> | ||
<mat-icon class="info-icon" [inline]="true">info_outline</mat-icon> | ||
</button> | ||
</th> | ||
<td>{{config.attachmentModifiedTolerance}}</td> | ||
</tr> | ||
</table> | ||
<div style="width: 100%;"> | ||
<div class="edit-processing-form"> | ||
<div class="edit-enabled-field"> | ||
<mat-form-field appearance="fill"> | ||
<mat-label>Enabled</mat-label> | ||
<mat-select placeholder="Enabled" [(value)]="editConfig.enabled" | ||
(selectionChange)="setField('enabled', $event.value)"> | ||
<mat-option [value]="true">true</mat-option> | ||
<mat-option [value]="false">false</mat-option> | ||
</mat-select> | ||
<mat-hint>Process observations and send to configured ArcGIS feature layers</mat-hint> | ||
</mat-form-field> | ||
</div> | ||
<div class="edit-enabled-field"> | ||
<mat-form-field appearance="fill" floatLabel="always"> | ||
<mat-label>Base URL</mat-label> | ||
<input type="text" matInput value="{{editConfig.baseUrl}}" | ||
placeholder="https://mock.mage.com" | ||
(keyup)="setField('baseUrl', baseUrlField.value)" | ||
(input)="setField('baseUrl', baseUrlField.value)" #baseUrlField /> | ||
<mat-hint>Mage server base URL</mat-hint> | ||
</mat-form-field> | ||
</div> | ||
<div class="edit-interval-field"> | ||
<mat-form-field appearance="fill"> | ||
<mat-label>Interval</mat-label> | ||
<input type="number" min="0" matInput value="{{editConfig.intervalSeconds}}" | ||
(keyup)="setNumberField('intervalSeconds', intervalSecondsField.value, 0)" | ||
(input)="setNumberField('intervalSeconds', intervalSecondsField.value, 0)" #intervalSecondsField /> | ||
<mat-hint>Observation query and processing frequency time interval in seconds</mat-hint> | ||
</mat-form-field> | ||
</div> | ||
<div class="edit-startup-interval-field"> | ||
<mat-form-field appearance="fill"> | ||
<mat-label>Startup Interval</mat-label> | ||
<input type="number" min="0" matInput value="{{editConfig.startupIntervalSeconds}}" | ||
(keyup)="setNumberField('startupIntervalSeconds', startupIntervalSecondsField.value, 0)" | ||
(input)="setNumberField('startupIntervalSeconds', startupIntervalSecondsField.value, 0)" | ||
#startupIntervalSecondsField /> | ||
<mat-hint>Startup interval in seconds to wait for feature layer processors to be ready</mat-hint> | ||
</mat-form-field> | ||
</div> | ||
<div class="edit-update-interval-field"> | ||
<mat-form-field appearance="fill"> | ||
<mat-label>Update Interval</mat-label> | ||
<input type="number" min="0" matInput value="{{editConfig.updateIntervalSeconds}}" | ||
(keyup)="setNumberField('updateIntervalSeconds', updateIntervalSecondsField.value, 0)" | ||
(input)="setNumberField('updateIntervalSeconds', updateIntervalSecondsField.value, 0)" | ||
#updateIntervalSecondsField /> | ||
<mat-hint>Processing wait time interval in seconds when pending observation updates exist</mat-hint> | ||
</mat-form-field> | ||
</div> | ||
<div class="batch-size-field"> | ||
<mat-form-field appearance="fill"> | ||
<mat-label>Batch Size</mat-label> | ||
<input type="number" min="1" matInput value="{{editConfig.batchSize}}" | ||
(keyup)="setNumberField('batchSize', batchSizeField.value, 1)" | ||
(input)="setNumberField('batchSize', batchSizeField.value, 1)" #batchSizeField /> | ||
<mat-hint>Maximum number of observations to process during a single time interval</mat-hint> | ||
</mat-form-field> | ||
</div> | ||
<div class="attachment-modified-tolerance-field"> | ||
<mat-form-field appearance="fill"> | ||
<mat-label>Attachment Tolerance</mat-label> | ||
<input type="number" min="0" matInput value="{{editConfig.attachmentModifiedTolerance}}" | ||
(keyup)="setNumberField('attachmentModifiedTolerance', attachmentModifiedToleranceField.value, 0)" | ||
(input)="setNumberField('attachmentModifiedTolerance', attachmentModifiedToleranceField.value, 0)" | ||
#attachmentModifiedToleranceField /> | ||
<mat-hint>Time tolerance in milliseconds to consider an attachment as modified compared to the observation</mat-hint> | ||
</mat-form-field> | ||
</div> | ||
</div> | ||
</div> | ||
</mat-card-content> | ||
<mat-card-actions> | ||
<button (click)="onEditProcessing()" mat-button>Edit</button> | ||
<button mat-button matDialogClose (click)="cancelEdit()">CANCEL</button> | ||
<button mat-flat-button color="primary" matDialogClose (click)="saveEdit()">SAVE</button> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think these should be flipped, putting SAVE before CANCEL, for sake of consistency |
||
</mat-card-actions> | ||
</mat-card> | ||
<arc-layer [config]="config" (configChanged)="configChanged($event)"></arc-layer> | ||
|
@@ -651,104 +659,6 @@ <h3 matDialogTitle>{{infoTitle}}</h3> | |
</div> | ||
</mat-dialog-content> | ||
</ng-template> | ||
<ng-template #editProcessingDialog let-data> | ||
<h2 matDialogTitle>Processing Configuration</h2> | ||
<mat-dialog-content> | ||
<div class="edit-processing-form"> | ||
<div class="edit-enabled-field"> | ||
<mat-form-field [style.width.%]="90"> | ||
<mat-select placeholder="Enabled" [(value)]="editConfig.enabled" | ||
(selectionChange)="setField('enabled', $event.value)"> | ||
<mat-option [value]="true">true</mat-option> | ||
<mat-option [value]="false">false</mat-option> | ||
</mat-select> | ||
</mat-form-field> | ||
<button class="info-button" mat-icon-button | ||
(click)="showInfo('Enabled', 'Process observations and send to configured ArcGIS feature layers')"> | ||
<mat-icon class="info-icon" [inline]="true">info_outline</mat-icon> | ||
</button> | ||
</div> | ||
<div class="edit-enabled-field"> | ||
<mat-form-field [style.width.%]="90"> | ||
<input type="text" matInput value="{{editConfig.baseUrl}}" | ||
(keyup)="setField('baseUrl', baseUrlField.value)" | ||
(input)="setField('baseUrl', baseUrlField.value)" #baseUrlField /> | ||
</mat-form-field> | ||
<button class="info-button" mat-icon-button | ||
(click)="showInfo('Base URL', 'Mage server base URL')"> | ||
<mat-icon class="info-icon" [inline]="true">info_outline</mat-icon> | ||
</button> | ||
</div> | ||
<div class="edit-interval-field"> | ||
<mat-form-field [style.width.%]="90"> | ||
<mat-label>Interval</mat-label> | ||
<input type="number" min="0" matInput value="{{editConfig.intervalSeconds}}" | ||
(keyup)="setNumberField('intervalSeconds', intervalSecondsField.value, 0)" | ||
(input)="setNumberField('intervalSeconds', intervalSecondsField.value, 0)" #intervalSecondsField /> | ||
</mat-form-field> | ||
<button class="info-button" mat-icon-button | ||
(click)="showInfo('Interval', 'Observation query and processing frequency time interval in seconds')"> | ||
<mat-icon class="info-icon" [inline]="true">info_outline</mat-icon> | ||
</button> | ||
</div> | ||
<div class="edit-startup-interval-field"> | ||
<mat-form-field [style.width.%]="90"> | ||
<mat-label>Startup Interval</mat-label> | ||
<input type="number" min="0" matInput value="{{editConfig.startupIntervalSeconds}}" | ||
(keyup)="setNumberField('startupIntervalSeconds', startupIntervalSecondsField.value, 0)" | ||
(input)="setNumberField('startupIntervalSeconds', startupIntervalSecondsField.value, 0)" | ||
#startupIntervalSecondsField /> | ||
</mat-form-field> | ||
<button class="info-button" mat-icon-button | ||
(click)="showInfo('Startup Interval', 'Startup interval in seconds to wait for feature layer processors to be ready')"> | ||
<mat-icon class="info-icon" [inline]="true">info_outline</mat-icon> | ||
</button> | ||
</div> | ||
<div class="edit-update-interval-field"> | ||
<mat-form-field [style.width.%]="90"> | ||
<mat-label>Update Interval</mat-label> | ||
<input type="number" min="0" matInput value="{{editConfig.updateIntervalSeconds}}" | ||
(keyup)="setNumberField('updateIntervalSeconds', updateIntervalSecondsField.value, 0)" | ||
(input)="setNumberField('updateIntervalSeconds', updateIntervalSecondsField.value, 0)" | ||
#updateIntervalSecondsField /> | ||
</mat-form-field> | ||
<button class="info-button" mat-icon-button | ||
(click)="showInfo('Update Interval', 'Processing wait time interval in seconds when pending observation updates exist')"> | ||
<mat-icon class="info-icon" [inline]="true">info_outline</mat-icon> | ||
</button> | ||
</div> | ||
<div class="batch-size-field"> | ||
<mat-form-field [style.width.%]="90"> | ||
<mat-label>Batch Size</mat-label> | ||
<input type="number" min="1" matInput value="{{editConfig.batchSize}}" | ||
(keyup)="setNumberField('batchSize', batchSizeField.value, 1)" | ||
(input)="setNumberField('batchSize', batchSizeField.value, 1)" #batchSizeField /> | ||
</mat-form-field> | ||
<button class="info-button" mat-icon-button | ||
(click)="showInfo('Batch Size', 'Maximum number of observations to process during a single time interval')"> | ||
<mat-icon class="info-icon" [inline]="true">info_outline</mat-icon> | ||
</button> | ||
</div> | ||
<div class="attachment-modified-tolerance-field"> | ||
<mat-form-field [style.width.%]="90"> | ||
<mat-label>Attachment Tolerance</mat-label> | ||
<input type="number" min="0" matInput value="{{editConfig.attachmentModifiedTolerance}}" | ||
(keyup)="setNumberField('attachmentModifiedTolerance', attachmentModifiedToleranceField.value, 0)" | ||
(input)="setNumberField('attachmentModifiedTolerance', attachmentModifiedToleranceField.value, 0)" | ||
#attachmentModifiedToleranceField /> | ||
</mat-form-field> | ||
<button class="info-button" mat-icon-button | ||
(click)="showInfo('Attachment Tolerance', 'Time tolerance in milliseconds to consider an attachment as modified compared to the observation')"> | ||
<mat-icon class="info-icon" [inline]="true">info_outline</mat-icon> | ||
</button> | ||
</div> | ||
</div> | ||
</mat-dialog-content> | ||
<mat-dialog-actions align="end"> | ||
<button mat-button matDialogClose (click)="cancelEdit()">CANCEL</button> | ||
<button mat-flat-button color="primary" matDialogClose (click)="saveEdit()">SAVE</button> | ||
</mat-dialog-actions> | ||
</ng-template> | ||
<ng-template #editAttributesDialog let-data> | ||
<h2 matDialogTitle>Attributes Configuration</h2> | ||
<mat-dialog-content> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be a toggle?