Skip to content

Commit

Permalink
NRPT-71-2: recordName keyword search (#410)
Browse files Browse the repository at this point in the history
* NRPT-71-2: recordName keyword search
- add admin recordName subset keyword search
- add recordName subset
- add recordName subset text index migration

* NRPT-71-2: update recordName materializedView to reference master field

* NRPT-71-2: Move recordName from lng section to master section
  • Loading branch information
NickPhura authored Jun 24, 2020
1 parent 3c67088 commit 3b8203f
Show file tree
Hide file tree
Showing 48 changed files with 242 additions and 138 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ <h4>Basic Information</h4>
<option *ngFor="let author of authors" [ngValue]="author">{{ author }}</option>
</select>
</div>
<div class="label-pair">
<label for="recordName">Record Name</label>
<input name="recordName" id="recordName" type="text" formControlName="recordName" class="form-control" />
</div>
</div>
</section>

Expand Down Expand Up @@ -207,12 +211,6 @@ <h4 class="blue-header mb-0">LNG Site Content</h4>
<span class="grey-subtext d-block">*Changes made will take effect once you click "Update Record"</span>
</div>
</div>
<div class="flex-container">
<div class="label-pair">
<label for="recordName">Record Name</label>
<input name="recordName" id="recordName" type="text" formControlName="recordName" class="form-control" />
</div>
</div>
<div class="flex-container">
<div class="label-pair med">
<label for="lngDescription">Description</label>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ <h4 class="grid-section-header-title-text blue-header">Shared Data [Master]</h4>
<label class="grid-item-name">Date Issued</label>
<span class="gird-item-value">{{ (data && data._master.dateIssued | date: 'mediumDate') || '-' }}</span>
</div>
<div class="grid-item__row">
<label class="grid-item-name">Record Name</label>
<span class="grid-item-value">{{ (data && data._master.recordName) || '-' }}</span>
</div>
</div>
<div class="grid-section section-2">
<div class="grid-item__row">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@
</div>
</div>
<div class="grid-section section-1">
<div class="grid-item__row">
<label class="grid-item-name">Record Name</label>
<span class="grid-item-value">{{ (data && data.recordName) || '-' }}</span>
</div>
<div class="grid-item__row">
<label class="grid-item-name">Description</label>
<span class="grid-item-value">{{ (data && data.description) || '-' }}</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ <h4>Basic Information</h4>
<option *ngFor="let author of authors" [ngValue]="author">{{ author }}</option>
</select>
</div>
<div class="label-pair">
<label for="recordName">Record Name</label>
<input name="recordName" id="recordName" type="text" formControlName="recordName" class="form-control" />
</div>
</div>
</section>

Expand Down Expand Up @@ -221,12 +225,6 @@ <h4 class="blue-header mb-0">LNG Site Content</h4>
<span class="grey-subtext d-block">*Changes made will take effect once you click "Update Record"</span>
</div>
</div>
<div class="flex-container">
<div class="label-pair">
<label for="recordName">Record Name</label>
<input name="recordName" id="recordName" type="text" formControlName="recordName" class="form-control" />
</div>
</div>
<div class="flex-container">
<div class="label-pair med">
<label for="lngDescription">Description</label>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ <h4 class="grid-section-header-title-text blue-header">Shared Data [Master]</h4>
<label class="grid-item-name">Date Issued</label>
<span class="gird-item-value">{{ (data && data._master.dateIssued | date: 'mediumDate') || '-' }}</span>
</div>
<div class="grid-item__row">
<label class="grid-item-name">Record Name</label>
<span class="grid-item-value">{{ (data && data._master.recordName) || '-' }}</span>
</div>
</div>
<div class="grid-section section-2">
<div class="grid-item__row">
Expand All @@ -51,7 +55,7 @@ <h4 class="grid-section-header-title-text blue-header">Shared Data [Master]</h4>
<span class="grid-item-value">{{ (data && data._master.sourceSystemRef) || '-' }}</span>
</div>
</div>
<div class="grid-section-border"></div>
<div class="grid-section-border"></div>
<div class="grid-section-sub-header">
<span class="grid-section-sub-header-text">Penalties</span>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@
</div>
</div>
<div class="grid-section section-1">
<div class="grid-item__row">
<label class="grid-item-name">Record Name</label>
<span class="grid-item-value">{{ (data && data.recordName) || '-' }}</span>
</div>
<div class="grid-item__row">
<label class="grid-item-name">Description</label>
<span class="grid-item-value">{{ (data && data.description) || '-' }}</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ <h4>Basic Information</h4>
<span class="grey-subtext ml-2">(This value cannot be changed)</span>
<input readonly name="recordType" id="recordType" type="text" value="Agreement" class="form-control" />
</div>
<div class="label-pair">
<label for="recordName">Record Name</label>
<input name="recordName" id="recordName" type="text" formControlName="recordName" class="form-control" />
</div>
</div>
</section>

Expand Down Expand Up @@ -118,12 +122,6 @@ <h4 class="blue-header mb-0">LNG Site Content</h4>
<span class="grey-subtext d-block">*Changes made will take effect once you click "Update Record"</span>
</div>
</div>
<div class="flex-container">
<div class="label-pair">
<label for="recordName">Record Name</label>
<input name="recordName" id="recordName" type="text" formControlName="recordName" class="form-control" />
</div>
</div>
<div class="flex-container">
<div class="label-pair med">
<label for="lngDescription">Description</label>
Expand Down Expand Up @@ -165,4 +163,4 @@ <h4 class="blue-header mb-0">LNG Site Content</h4>
</div>
</div>
</div>
</main>
</main>
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ <h4 class="grid-section-header-title-text blue-header">Shared Data [Master]</h4>
<label class="grid-item-name">Nation</label>
<span class="gird-item-value">{{ (data && data._master.nationName) || '-' }}</span>
</div>
<div class="grid-item__row">
<label class="grid-item-name">Record Name</label>
<span class="grid-item-value">{{ (data && data._master.recordName) || '-' }}</span>
</div>
</div>
<div class="grid-section section-2">
<div class="grid-item__row">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@
</div>
</div>
<div class="grid-section section-1">
<div class="grid-item__row">
<label class="grid-item-name">Record Name</label>
<span class="grid-item-value">{{ (data && data.recordName) || '-' }}</span>
</div>
<div class="grid-item__row">
<label class="grid-item-name">Description</label>
<span class="grid-item-value">{{ (data && data.description) || '-' }}</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ <h4>Basic Information</h4>
<option *ngFor="let agency of agencies" [ngValue]="agency">{{ agency }}</option>
</select>
</div>
<div class="label-pair">
<label for="recordName">Record Name</label>
<input name="recordName" id="recordName" type="text" formControlName="recordName" class="form-control" />
</div>
</div>
</section>

Expand Down Expand Up @@ -170,12 +174,6 @@ <h4 class="blue-header mb-0">LNG Site Content</h4>
<span class="grey-subtext d-block">*Changes made will take effect once you click "Update Record"</span>
</div>
</div>
<div class="flex-container">
<div class="label-pair">
<label for="recordName">Record Name</label>
<input name="recordName" id="recordName" type="text" formControlName="recordName" class="form-control" />
</div>
</div>
<div class="flex-container">
<div class="label-pair med">
<label for="lngDescription">Description</label>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ <h4 class="grid-section-header-title-text blue-header">Shared Data [Master]</h4>
<label class="grid-item-name">Date Issued</label>
<span class="gird-item-value">{{ (data && data._master.dateIssued | date: 'mediumDate') || '-' }}</span>
</div>
<div class="grid-item__row">
<label class="grid-item-name">Record Name</label>
<span class="grid-item-value">{{ (data && data._master.recordName) || '-' }}</span>
</div>
</div>
<div class="grid-section section-2">
<div class="grid-item__row">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@
</div>
</div>
<div class="grid-section section-1">
<div class="grid-item__row">
<label class="grid-item-name">Record Name</label>
<span class="grid-item-value">{{ (data && data.recordName) || '-' }}</span>
</div>
<div class="grid-item__row">
<label class="grid-item-name">Description</label>
<span class="grid-item-value">{{ (data && data.description) || '-' }}</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ <h4>Basic Information</h4>
value="Construction Plan"
class="form-control" />
</div>
<div class="label-pair">
<label for="recordName">Record Name</label>
<input name="recordName" id="recordName" type="text" formControlName="recordName" class="form-control" />
</div>
</div>
</section>

Expand Down Expand Up @@ -143,10 +147,6 @@ <h4 class="blue-header mb-0">LNG Site Content</h4>
</div>
</div>
<div class="flex-container">
<div class="label-pair">
<label for="recordName">Record Name</label>
<input name="recordName" id="recordName" type="text" formControlName="recordName" class="form-control" />
</div>
<div class="label-pair">
<label for="lngRelatedPhase">Related Phase</label>
<input
Expand Down Expand Up @@ -196,4 +196,4 @@ <h4 class="blue-header mb-0">LNG Site Content</h4>
</div>
</div>
</div>
</main>
</main>
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ <h4 class="grid-section-header-title-text blue-header">Shared Data [Master]</h4>
<label class="grid-item-name">Date</label>
<span class="gird-item-value">{{ (data && data._master.dateIssued | date: 'mediumDate') || '-' }}</span>
</div>
<div class="grid-item__row">
<label class="grid-item-name">Record Name</label>
<span class="grid-item-value">{{ (data && data._master.recordName) || '-' }}</span>
</div>
</div>
<div class="grid-section section-2">
<div class="grid-item__row">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@
</div>
</div>
<div class="grid-section section-1">
<div class="grid-item__row">
<label class="grid-item-name">Record Name</label>
<span class="grid-item-value">{{ (data && data.recordName) || '-' }}</span>
</div>
<div class="grid-item__row">
<label class="grid-item-name">Related Phase</label>
<span class="grid-item-value">{{ (data && data.relatedPhase) || '-' }}</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ <h4>Basic Information</h4>
<option *ngFor="let author of authors" [ngValue]="author">{{ author }}</option>
</select>
</div>
<div class="label-pair">
<label for="recordName">Record Name</label>
<input name="recordName" id="recordName" type="text" formControlName="recordName" class="form-control" />
</div>
</div>
</section>

Expand Down Expand Up @@ -209,12 +213,6 @@ <h4 class="blue-header mb-0">LNG Site Content</h4>
<span class="grey-subtext d-block">*Changes made will take effect once you click "Update Record"</span>
</div>
</div>
<div class="flex-container">
<div class="label-pair">
<label for="recordName">Record Name</label>
<input name="recordName" id="recordName" type="text" formControlName="recordName" class="form-control" />
</div>
</div>
<div class="flex-container">
<div class="label-pair med">
<label for="lngDescription">Description</label>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ <h4 class="grid-section-header-title-text blue-header">Shared Data [Master]</h4>
<label class="grid-item-name">Date Issued</label>
<span class="gird-item-value">{{ (data && data._master.dateIssued | date: 'mediumDate') || '-' }}</span>
</div>
<div class="grid-item__row">
<label class="grid-item-name">Record Name</label>
<span class="grid-item-value">{{ (data && data._master.recordName) || '-' }}</span>
</div>
</div>
<div class="grid-section section-2">
<div class="grid-item__row">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@
</div>
</div>
<div class="grid-section section-1">
<div class="grid-item__row">
<label class="grid-item-name">Record Name</label>
<span class="grid-item-value">{{ (data && data.recordName) || '-' }}</span>
</div>
<div class="grid-item__row">
<label class="grid-item-name">Description</label>
<span class="grid-item-value">{{ (data && data.description) || '-' }}</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ <h4>Basic Information</h4>
<option *ngFor="let author of authors" [ngValue]="author">{{ author }}</option>
</select>
</div>
<div class="label-pair">
<label for="recordName">Record Name</label>
<input name="recordName" id="recordName" type="text" formControlName="recordName" class="form-control" />
</div>
</div>
</section>

Expand Down Expand Up @@ -229,12 +233,6 @@ <h4 class="blue-header mb-0">LNG Site Content</h4>
<span class="grey-subtext d-block">*Changes made will take effect once you click "Update Record"</span>
</div>
</div>
<div class="flex-container">
<div class="label-pair">
<label for="recordName">Record Name</label>
<input name="recordName" id="recordName" type="text" formControlName="recordName" class="form-control" />
</div>
</div>
<div class="flex-container">
<div class="label-pair med">
<label for="lngDescription">Description</label>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ <h4 class="grid-section-header-title-text blue-header">Shared Data [Master]</h4>
<label class="grid-item-name">Date Issued</label>
<span class="gird-item-value">{{ (data && data._master.dateIssued | date: 'mediumDate') || '-' }}</span>
</div>
<div class="grid-item__row">
<label class="grid-item-name">Record Name</label>
<span class="grid-item-value">{{ (data && data._master.recordName) || '-' }}</span>
</div>
</div>
<div class="grid-section section-2">
<div class="grid-item__row">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@
</div>
</div>
<div class="grid-section section-1">
<div class="grid-item__row">
<label class="grid-item-name">Record Name</label>
<span class="grid-item-value">{{ (data && data.recordName) || '-' }}</span>
</div>
<div class="grid-item__row">
<label class="grid-item-name">Description</label>
<span class="grid-item-value">{{ (data && data.description) || '-' }}</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ <h4>Basic Information</h4>
<span class="grey-subtext ml-2">(This value cannot be changed)</span>
<input readonly name="recordType" id="recordType" type="text" value="Management Plan" class="form-control" />
</div>
<div class="label-pair">
<label for="recordName">Record Name</label>
<input name="recordName" id="recordName" type="text" formControlName="recordName" class="form-control" />
</div>
</div>
</section>

Expand Down Expand Up @@ -137,10 +141,6 @@ <h4 class="blue-header mb-0">LNG Site Content</h4>
</div>
</div>
<div class="flex-container">
<div class="label-pair">
<label for="recordName">Record Name</label>
<input name="recordName" id="recordName" type="text" formControlName="recordName" class="form-control" />
</div>
<div class="label-pair">
<label for="lngRelatedPhase">Related Phase</label>
<input
Expand Down Expand Up @@ -190,4 +190,4 @@ <h4 class="blue-header mb-0">LNG Site Content</h4>
</div>
</div>
</div>
</main>
</main>
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ <h4 class="grid-section-header-title-text blue-header">Shared Data [Master]</h4>
<label class="grid-item-name">Date</label>
<span class="gird-item-value">{{ (data && data._master.dateIssued | date: 'mediumDate') || '-' }}</span>
</div>
<div class="grid-item__row">
<label class="grid-item-name">Record Name</label>
<span class="grid-item-value">{{ (data && data._master.recordName) || '-' }}</span>
</div>
</div>
<div class="grid-section section-2">
<div class="grid-item__row">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@
</div>
</div>
<div class="grid-section section-1">
<div class="grid-item__row">
<label class="grid-item-name">Record Name</label>
<span class="grid-item-value">{{ (data && data.recordName) || '-' }}</span>
</div>
<div class="grid-item__row">
<label class="grid-item-name">Related Phase</label>
<span class="grid-item-value">{{ (data && data.relatedPhase) || '-' }}</span>
Expand Down
Loading

0 comments on commit 3b8203f

Please sign in to comment.