Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
229 commits
Select commit Hold shift + click to select a range
0b33900
PSP-11190 : FT-REG: When properties details form is cancelled and the…
Feb 25, 2026
7a9f5fa
IS-118.00 Database Schema
dfilteau Feb 25, 2026
c3cb2e9
Bump version - 118
asanchezr Feb 26, 2026
e676db9
Formatting
asanchezr Feb 27, 2026
db3b4db
Merge pull request #5236 from asanchezr/bump-version-6.1
asanchezr Feb 27, 2026
695c0ff
CI: Bump version to v6.1.0-118.1
github-actions[bot] Feb 27, 2026
80bdc94
Add telemetry middleware to enhance error tracking in Redux store
asanchezr Feb 22, 2026
6a9b2c8
Improve typing
asanchezr Feb 20, 2026
bc0095c
Refactor telemetry configuration: replace global config with Telemetr…
asanchezr Feb 23, 2026
53dea10
Refactor telemetry user instance: rename 'user' to 'UserTelemetry' fo…
asanchezr Feb 24, 2026
b2664bc
Refactor telemetry configuration: update TelemetrySettings interface …
asanchezr Feb 24, 2026
f0b6788
Move utility function to common folder
asanchezr Feb 25, 2026
de1b404
Refactor telemetry integration: streamline telemetry initialization, …
asanchezr Feb 25, 2026
4665c9b
Refactor lease export hooks: update requestId for error handling cons…
asanchezr Feb 25, 2026
7dfe525
Generate example error for demo
asanchezr Feb 25, 2026
7ad413c
Fix unit test
asanchezr Feb 25, 2026
56990bd
Change name of env var for demo
asanchezr Feb 25, 2026
fd218bf
Update telemetry error type to 'bomb.network.error' for improved obse…
asanchezr Feb 25, 2026
3f846db
Refactor configuration handling to use runtime variables instead of c…
asanchezr Feb 26, 2026
f562b69
Remove unused ILeasePaymentService from LeaseController constructor
asanchezr Feb 27, 2026
9d4e96b
Merge pull request #5228 from asanchezr/psp-11187-bomb-errors-observa…
asanchezr Feb 27, 2026
a4e07c3
CI: Bump version to v6.1.0-118.2
github-actions[bot] Feb 27, 2026
8dec818
revert change to description of 'Other' code value.
devinleighsmith Feb 26, 2026
03f91c8
Merge remote-tracking branch 'upstream/test' into backmerge_test_to_dev
asanchezr Feb 27, 2026
177e0c3
Merge pull request #5235 from asanchezr/backmerge_test_to_dev
asanchezr Feb 27, 2026
77b1108
CI: Bump version to v6.1.0-118.3
github-actions[bot] Feb 27, 2026
beb58de
Merge branch 'dev' into psp-11190
Feb 27, 2026
a3968eb
Modified PIMS_LEASE_STAKEHOLDER_TYPE
dfilteau Feb 27, 2026
6706fe1
Merge branch 'bcgov:dev' into IS-118.00
dfilteau Feb 27, 2026
d14b302
Updated 109_DML_PIMS_LEASE_STAKEHOLDER_TYPE.sql
dfilteau Feb 27, 2026
b573ee7
- updates
Feb 27, 2026
062fbb5
Updating autiomated test set
stairaku Mar 2, 2026
e330a8b
linting
stairaku Mar 2, 2026
40cbdc9
Merge branch 'playwright-branch' of https://github.com/stairaku/PSP i…
stairaku Mar 2, 2026
372ece7
PSP-10928 fix
stairaku Mar 2, 2026
ae0cb33
PSP-11027: Verbiage on the workflow Instructions on the property sele…
stairaku Mar 2, 2026
9c79077
PSP-11185 fix
stairaku Mar 2, 2026
888ca33
Merge pull request #5238 from stairaku/playwright-branch
stairaku Mar 2, 2026
a1a7e88
CI: Bump version to v6.1.0-118.4
github-actions[bot] Mar 2, 2026
c5a47a6
PSP-11185 fix without Sidebar changes
stairaku Mar 2, 2026
907bd0b
Revert "PSP-11185 fix without Sidebar changes"
stairaku Mar 2, 2026
f9ab796
PSP-11185 fix
stairaku Mar 2, 2026
c230822
Merge branch 'PSP-11185' of https://github.com/stairaku/PSP into PSP-…
stairaku Mar 2, 2026
4bb6aa2
PSP-11185 fix
stairaku Mar 2, 2026
6a77167
Merge branch 'dev' into PSP-11185
stairaku Mar 2, 2026
67525dc
Remove prefix M- when searching by Management File ID
areyeslo Mar 2, 2026
4a85157
Merge pull request #5240 from stairaku/PSP-11027
asanchezr Mar 2, 2026
e61b1eb
Fixing NullReferenceException in ExportLeasePayments_ExcelX_Success
areyeslo Mar 2, 2026
8525540
CI: Bump version to v6.1.0-118.5
github-actions[bot] Mar 2, 2026
31661aa
Merge pull request #5239 from stairaku/PSP-10928
asanchezr Mar 3, 2026
303e3cf
CI: Bump version to v6.1.0-118.6
github-actions[bot] Mar 3, 2026
21713e7
Merge pull request #5241 from stairaku/PSP-11185
asanchezr Mar 3, 2026
9964656
CI: Bump version to v6.1.0-118.7
github-actions[bot] Mar 3, 2026
e18dd42
Merge pull request #5242 from areyeslo/PSP-11071-ManagementActivities…
areyeslo Mar 3, 2026
664f6b2
CI: Bump version to v6.1.0-118.8
github-actions[bot] Mar 3, 2026
9de7886
Merge branch 'dev' into IS-117.00
dfilteau Mar 3, 2026
1dc973a
Merge pull request #5237 from dfilteau/IS-117.00
eddherrera Mar 5, 2026
4920b48
Merge branch 'dev' into IS-118.00
dfilteau Mar 5, 2026
5a02070
CI: Bump version to v6.1.0-118.9
github-actions[bot] Mar 5, 2026
c545310
109_DML_PIMS_LEASE_STAKEHOLDER_TYPE_Alters Amended
dfilteau Mar 5, 2026
2dc76ef
Merge branch 'dev' into IS-118.00
dfilteau Mar 5, 2026
c9186a9
PSP-7782 : Document Manager: document selection and uploading -MP(UI …
Mar 5, 2026
4ef2bb9
Scan images only when dependencies change
areyeslo Mar 4, 2026
b7acb1e
Updated multi line formatting with always
areyeslo Mar 5, 2026
e7ccc75
SHA for tj-actions
areyeslo Mar 5, 2026
c14494a
- test updates
Mar 6, 2026
1c65744
Merge pull request #5227 from dfilteau/IS-118.00
eddherrera Mar 9, 2026
63e3244
CI: Bump version to v6.1.0-118.10
github-actions[bot] Mar 9, 2026
c466a6e
Scaffold S118
Mar 9, 2026
333033a
Merge pull request #5244 from areyeslo/PSP-11210-RunImageScanning-Dep…
areyeslo Mar 9, 2026
56fd7d1
CI: Bump version to v6.1.0-118.11
github-actions[bot] Mar 9, 2026
144ae01
Merge pull request #5247 from eddherrera/scaffold/s118
asanchezr Mar 9, 2026
8e867d4
CI: Bump version to v6.1.0-118.12
github-actions[bot] Mar 9, 2026
cc09d89
Replacing version annotation with commit SHA
areyeslo Mar 9, 2026
5b44bce
Merge pull request #5248 from areyeslo/Fix-PSP-11210-RunningImageScan…
asanchezr Mar 9, 2026
d66b479
CI: Bump version to v6.1.0-118.13
github-actions[bot] Mar 9, 2026
0aaff51
PSP-6586 : List-view Tables: all text box search filters do not TRIM …
Mar 10, 2026
d533a6e
- test updates
Mar 10, 2026
9436770
PSP-11286 : FT:Management Activities : Management File Number Column …
Mar 11, 2026
751593f
- Test updates
Mar 11, 2026
1b216d1
- test updates
Mar 11, 2026
5304451
Refactor document mocks for improved readability and maintainability
asanchezr Feb 28, 2026
3df45ca
Add tests to display Lat/Long for properties without identifiers
asanchezr Feb 28, 2026
ee00423
Fix latitude and longitude order in property name generation
asanchezr Mar 4, 2026
7a5515d
Test updates
asanchezr Mar 5, 2026
5353b60
Fix typo
asanchezr Mar 6, 2026
39ce0e4
Add latitude and longitude transformation for property leases in Leas…
asanchezr Mar 6, 2026
9d282b6
Refactor property name handling in lease payment report and related e…
asanchezr Mar 6, 2026
0a39d71
Add property service to SearchController and transform properties to …
asanchezr Mar 7, 2026
5e4aab9
Add property transformation to lat/long in ManagementActivityControll…
asanchezr Mar 8, 2026
ff04224
Refactor property ID handling to use formatted PID and PIN across lea…
asanchezr Mar 8, 2026
73736be
Add property service method to transform PropertyVw to lat/long and u…
asanchezr Mar 8, 2026
aeac106
Fix NPE
asanchezr Mar 8, 2026
8e1475f
PR feedback
asanchezr Mar 12, 2026
d292381
Fix tests
asanchezr Mar 12, 2026
5d71107
Fix codeql warnings
asanchezr Mar 12, 2026
a2a3a6a
Merge pull request #5246 from asanchezr/psp-11135-lat-long-display
asanchezr Mar 12, 2026
832f6be
CI: Bump version to v6.1.0-118.14
github-actions[bot] Mar 12, 2026
2657d8a
Merge pull request #5226 from eddherrera/psp-11190
asanchezr Mar 12, 2026
ce269dd
CI: Bump version to v6.1.0-118.15
github-actions[bot] Mar 12, 2026
4275251
Merge pull request #5250 from eddherrera/psp-11286
asanchezr Mar 12, 2026
2c6efab
CI: Bump version to v6.1.0-118.16
github-actions[bot] Mar 12, 2026
eb4287c
- Updates
Mar 12, 2026
063f617
Merge branch 'dev' into psp-6586
Mar 12, 2026
236b83b
Merge pull request #5249 from eddherrera/psp-6586
asanchezr Mar 12, 2026
9d68959
CI: Bump version to v6.1.0-118.17
github-actions[bot] Mar 12, 2026
03d206d
- linting
Mar 12, 2026
23892de
New dependencies to support kmz file handling
asanchezr Mar 9, 2026
9be7457
Add shapefile validation and handling using JSZip
asanchezr Mar 10, 2026
1110dff
Refactor shape upload model to utilize ShapefileHelper and KmzHelper …
asanchezr Mar 10, 2026
9ba311c
Refactor KmzHelper to improve KMZ and KML validation and conversion m…
asanchezr Mar 11, 2026
56ab6f9
Update ShapeUpload components to reflect boundary file terminology an…
asanchezr Mar 11, 2026
bdf4fe9
Add unit tests for ShapefileHelper and KmzHelper functionality
asanchezr Mar 11, 2026
90cb395
Refactor helper classes into their own files
asanchezr Mar 11, 2026
ee19563
Test updates
asanchezr Mar 11, 2026
d01fa5f
Update snapshots
asanchezr Mar 11, 2026
357093f
Fix failing tests
asanchezr Mar 11, 2026
6ec532d
Implement ZipSafetyValidator for secure ZIP loading and update KmzHel…
asanchezr Mar 12, 2026
1831252
Merge pull request #5251 from asanchezr/psp-10991-upload-kmz
asanchezr Mar 13, 2026
f71090a
CI: Bump version to v6.1.0-118.18
github-actions[bot] Mar 13, 2026
68fec3f
PSP-11299 : FT:Management Activities : Management File Number is not …
Mar 13, 2026
deedb2e
- linting
Mar 13, 2026
dfa3491
- linting
Mar 13, 2026
216894b
Merge pull request #5253 from eddherrera/psp-11299
asanchezr Mar 14, 2026
5e0c10e
CI: Bump version to v6.1.0-118.19
github-actions[bot] Mar 14, 2026
76df936
Automated test set updates
stairaku Mar 16, 2026
34afbec
Merge branch 'playwright-branch' of https://github.com/stairaku/PSP i…
stairaku Mar 16, 2026
acda2d9
Merge branch 'playwright-branch' of https://github.com/stairaku/PSP i…
stairaku Mar 16, 2026
e6f9d6a
Updated detect-dependency-changes and scan-images jobs in Dev and Test
areyeslo Mar 17, 2026
34f4916
PSP-10923 additional automation fixing
stairaku Mar 18, 2026
bc93f4a
Merge branch 'dev' into psp-7782
Mar 18, 2026
558b626
Merge pull request #5254 from areyeslo/PSP-11210-RunImageScanning-Dep…
areyeslo Mar 18, 2026
93e7cb1
CI: Bump version to v6.1.0-118.20
github-actions[bot] Mar 18, 2026
819cd37
Merge branch 'dev' into playwright-branch
stairaku Mar 18, 2026
2094424
Update test set
stairaku Mar 19, 2026
5a1e3f8
- updates
Mar 19, 2026
e0321e5
Merge pull request #5245 from eddherrera/psp-7782
eddherrera Mar 19, 2026
fa18ce3
CI: Bump version to v6.1.0-118.21
github-actions[bot] Mar 19, 2026
1b838d2
PSP-11306 Property management tab - fix spelling of Active Lease/License
asanchezr Mar 17, 2026
045ecd8
Enhance CSV export functionality to ignore properties marked with Ign…
asanchezr Mar 19, 2026
0175cbf
Refactor property tenure cleanup functionality and update model to in…
asanchezr Mar 19, 2026
4721d28
Test updates
asanchezr Mar 19, 2026
c11be14
Fix codeql warnings
asanchezr Mar 20, 2026
5d65c24
Linting
asanchezr Mar 20, 2026
b3369c3
PR feedback
asanchezr Mar 20, 2026
576435f
Automation updates
stairaku Mar 20, 2026
b952ec8
Merge branch 'dev' into playwright-branch
stairaku Mar 20, 2026
21b524d
Snapshots update
stairaku Mar 20, 2026
7146d3f
Merge branch 'playwright-branch' of https://github.com/stairaku/PSP i…
stairaku Mar 20, 2026
26aa06b
Merge pull request #5257 from asanchezr/bug-fixes-118
asanchezr Mar 20, 2026
ee7db5e
CI: Bump version to v6.1.0-118.22
github-actions[bot] Mar 20, 2026
8af8cb7
IS-119.00 Database Schema
dfilteau Mar 20, 2026
a2c2d2c
Commiting Alejandro's suggestion
stairaku Mar 21, 2026
412cf33
Merge branch 'dev' into playwright-branch
stairaku Mar 21, 2026
a75dde6
Merge pull request #5255 from stairaku/playwright-branch
asanchezr Mar 23, 2026
34f37ce
CI: Bump version to v6.1.0-118.23
github-actions[bot] Mar 23, 2026
b569866
Bump version - 119
asanchezr Mar 23, 2026
b4e1580
Merge pull request #5259 from asanchezr/bump-version-119
asanchezr Mar 23, 2026
4091df0
CI: Bump version to v6.1.0-119.1
github-actions[bot] Mar 23, 2026
a032f7d
PSP-9438 : System is throwing error message when user deletes the ten…
Mar 23, 2026
6621137
Base for Ches implementation
areyeslo Mar 9, 2026
35e2964
Health check for CHES
areyeslo Mar 12, 2026
da9c023
Move models to apimodels
areyeslo Mar 13, 2026
6377392
From email needs to be configured in environment variables
areyeslo Mar 13, 2026
6a3aa55
Code review changes
areyeslo Mar 23, 2026
99f357d
Merge branch 'bcgov:dev' into IS-119.00
dfilteau Mar 24, 2026
cb76afc
Updated to Exclude PIMS_PROJECT_REGION
dfilteau Mar 24, 2026
0a4317d
Merge branch 'IS-119.00' of https://github.com/dfilteau/PSP into IS-1…
dfilteau Mar 24, 2026
619fbb3
Update handleCancel method
areyeslo Mar 23, 2026
1d95612
Code review updates
areyeslo Mar 24, 2026
785ffb2
Merge pull request #5260 from areyeslo/PSP-11307-Management-CancelAdd…
asanchezr Mar 24, 2026
074318f
CI: Bump version to v6.1.0-119.2
github-actions[bot] Mar 24, 2026
a8b9ca9
Merge pull request #5258 from dfilteau/IS-119.00
eddherrera Mar 24, 2026
01f8b26
CI: Bump version to v6.1.0-119.3
github-actions[bot] Mar 24, 2026
5a839cb
Scaffold S119
Mar 24, 2026
1eff9ca
Merge pull request #5263 from eddherrera/scaffold/s119
asanchezr Mar 24, 2026
8d82e44
CI: Bump version to v6.1.0-119.4
github-actions[bot] Mar 24, 2026
b00eb83
Merge branch 'dev' into psp-9438
Mar 24, 2026
4da9a19
- Linting and fixes
Mar 24, 2026
9676a4c
Merge pull request #5262 from eddherrera/psp-9438
eddherrera Mar 25, 2026
08ffe4f
CI: Bump version to v6.1.0-119.5
github-actions[bot] Mar 25, 2026
8159565
Fix SonarCloud Code Analysis
areyeslo Mar 25, 2026
037c6c2
Merge pull request #5252 from areyeslo/PSP-11282-CHES-Email-Service
areyeslo Mar 25, 2026
b6dfdf5
CI: Bump version to v6.1.0-119.6
github-actions[bot] Mar 25, 2026
78cc498
Add if statement for jobs skipped
areyeslo Mar 25, 2026
fc2b545
Merge pull request #5264 from areyeslo/PSP-11210-RunImageScanning-Dep…
asanchezr Mar 25, 2026
28e444c
CI: Bump version to v6.1.0-119.7
github-actions[bot] Mar 25, 2026
aecde74
Lint fix
asanchezr Mar 21, 2026
64ff29c
PSP-11336 Property List View: Empty CSV export causes a server error
asanchezr Mar 21, 2026
20be120
PSP-11300: Fix null error when repositioning a marker twice
asanchezr Mar 25, 2026
2f22105
Fix URL paths in defaultTenant configuration to include leading slash
asanchezr Mar 25, 2026
858f875
PSP-11291 : Add Advance Payment Date and Agreement Signed Date
Mar 25, 2026
ec1e5c2
- set null for not section 3.
Mar 25, 2026
8cf5007
Fix codeql warning
asanchezr Mar 26, 2026
76694b7
Update snaps
asanchezr Mar 26, 2026
483cc87
- linting
Mar 26, 2026
c13ad65
Merge branch 'dev' into psp-11291
Mar 26, 2026
821081f
Merge pull request #5265 from eddherrera/psp-11291
eddherrera Mar 26, 2026
47d80bb
CI: Bump version to v6.1.0-119.8
github-actions[bot] Mar 26, 2026
4f805ca
Merge pull request #5266 from asanchezr/bug-fixes-119
asanchezr Mar 26, 2026
b52897d
CI: Bump version to v6.1.0-119.9
github-actions[bot] Mar 26, 2026
293766f
PSP-11302: Disable HQ region in the database for now pending major pr…
asanchezr Mar 28, 2026
2edab72
Merge pull request #5269 from asanchezr/psp-11302-hq-region
asanchezr Mar 30, 2026
96dde79
CI: Bump version to v6.1.0-119.10
github-actions[bot] Mar 30, 2026
3724363
Added keycloak role for notifications
areyeslo Mar 26, 2026
957297e
Updated permissions
areyeslo Mar 31, 2026
b9a6be6
psp-11362 limit document global search visibility based on file/regio…
devinleighsmith Mar 26, 2026
08901a0
PR updates.
devinleighsmith Mar 30, 2026
632135f
test fixes.
devinleighsmith Mar 31, 2026
3e6c271
Merge pull request #5268 from devinleighsmith/psp-11362
devinleighsmith Apr 1, 2026
cd212fc
CI: Bump version to v6.1.0-119.11
github-actions[bot] Apr 1, 2026
fb13dce
Increase the timeout values of several CI tasks
asanchezr Apr 1, 2026
a01eca3
Merge pull request #5273 from asanchezr/fix-keycloak-sync-timeout
asanchezr Apr 1, 2026
8bbaa16
CI: Bump version to v6.1.0-119.12
github-actions[bot] Apr 1, 2026
f81b11f
Apply all claims to all roles
areyeslo Apr 2, 2026
6253f8b
Merge pull request #5271 from areyeslo/PSP-11331-PermissionsNotificat…
asanchezr Apr 4, 2026
1f02ffd
CI: Bump version to v6.1.0-119.13
github-actions[bot] Apr 4, 2026
dabdc37
Fix in PIMS_S119_00 Build
areyeslo Apr 7, 2026
6697f0a
Merge pull request #5274 from areyeslo/PSP-11331-Permissions-Notifica…
asanchezr Apr 7, 2026
4842999
CI: Bump version to v6.1.0-119.14
github-actions[bot] Apr 7, 2026
b11ff77
Run scripts to add notification claims in Alter Up master.sql transac…
asanchezr Apr 7, 2026
343c3ff
Fix duplicate variable name
asanchezr Apr 7, 2026
20e4c31
Merge pull request #5275 from asanchezr/fix-119-alter-up
asanchezr Apr 7, 2026
38adbd8
CI: Bump version to v6.1.0-119.15
github-actions[bot] Apr 7, 2026
cacff2c
Route to acquisition file Details when user clicks Yes in modal on Ov…
areyeslo Apr 8, 2026
56757d4
code review change
areyeslo Apr 8, 2026
6edab87
Merge pull request #5277 from areyeslo/PSP-11333-RoutingProperty-Acqu…
areyeslo Apr 8, 2026
6731dda
CI: Bump version to v6.1.0-119.16
github-actions[bot] Apr 8, 2026
d330b6f
Merge remote-tracking branch 'upstream/dev' into uat-release-6.1
asanchezr Apr 9, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
238 changes: 165 additions & 73 deletions .github/workflows/ci-cd-pims-dev.yml

Large diffs are not rendered by default.

256 changes: 180 additions & 76 deletions .github/workflows/retag-dev-to-test.yml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,13 @@ public static explicit operator AcquisitionFilter(AcquisitionFilterModel model)
Page = model.Page,
Quantity = model.Quantity,

Pid = model.Pid,
Pin = model.Pin,
Address = model.Address,
Pid = model.Pid?.Trim(),
Pin = model.Pin?.Trim(),
Address = model.Address?.Trim(),
AcquisitionFileStatusTypeCode = model.AcquisitionFileStatusTypeCode,
AcquisitionFileNameOrNumber = model.AcquisitionFileNameOrNumber,
ProjectNameOrNumber = model.ProjectNameOrNumber,
OwnerName = model.OwnerName,
AcquisitionFileNameOrNumber = model.AcquisitionFileNameOrNumber?.Trim(),
ProjectNameOrNumber = model.ProjectNameOrNumber?.Trim(),
OwnerName = model.OwnerName?.Trim(),
AcquisitionTeamMemberPersonId = model.AcquisitionTeamMemberPersonId,
AcquisitionTeamMemberOrganizationId = model.AcquisitionTeamMemberOrganizationId,
HasNoticeOfClaim = model.HasNoticeOfClaim,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ public static explicit operator ContactFilter(ContactFilterModel model)
Quantity = model.Quantity,

SearchBy = model.SearchBy,
Summary = model.Summary,
Municipality = model.Municipality,
Summary = model.Summary?.Trim(),
Municipality = model.Municipality?.Trim(),
ActiveContactsOnly = model.ActiveContactsOnly,

Sort = model.Sort,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,10 @@ public static explicit operator DispositionFilter(DispositionFilterModel model)
Page = model.Page,
Quantity = model.Quantity,

Pid = model.Pid,
Pin = model.Pin,
Address = model.Address,
FileNameOrNumberOrReference = model.FileNameOrNumberOrReference,
Pid = model.Pid?.Trim(),
Pin = model.Pin?.Trim(),
Address = model.Address?.Trim(),
FileNameOrNumberOrReference = model.FileNameOrNumberOrReference?.Trim(),
DispositionFileStatusCode = model.DispositionFileStatusCode,
DispositionStatusCode = model.DispositionStatusCode,
DispositionTypeCode = model.DispositionTypeCode,
Expand Down
34 changes: 33 additions & 1 deletion source/backend/api/Areas/Documents/SearchController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
using Pims.Core.Extensions;
using Pims.Core.Json;
using Pims.Core.Security;
using Pims.Dal.Entities;
using Swashbuckle.AspNetCore.Annotations;

namespace Pims.Api.Areas.Documents
Expand All @@ -29,12 +30,14 @@ namespace Pims.Api.Areas.Documents
public class SearchController : ControllerBase
{
private readonly IDocumentService _documentService;
private readonly IPropertyService _propertyService;
private readonly IMapper _mapper;
private readonly ILogger _logger;

public SearchController(IDocumentService documentService, IMapper mapper, ILogger<SearchController> logger)
public SearchController(IDocumentService documentService, IPropertyService propertyService, IMapper mapper, ILogger<SearchController> logger)
{
_documentService = documentService;
_propertyService = propertyService;
_mapper = mapper;
_logger = logger;
}
Expand Down Expand Up @@ -70,7 +73,36 @@ public IActionResult GetDocuments([FromQuery] DocumentSearchFilterModel filter)
_logger.LogInformation("Dispatching to service: {Service}", _documentService.GetType());
var documents = _documentService.GetPage(filter);

// Transform all properties to lat/long for returned documents that have properties, this is required for the front end to properly display the property locations.
foreach (var document in documents.Items)
{
var propertyDocuments = document.PimsPropertyDocuments ?? new List<PimsPropertyDocument>();
document.PimsPropertyDocuments = TransformAllPropertiesToLatLong(propertyDocuments);
}

return new JsonResult(_mapper.Map<PageModel<DocumentSearchResultModel>>(documents));
}

/// <summary>
/// Returns the spatial location and boundary polygons in lat/long (4326) for a list of document properties.
/// The spatial values will be modified in-place.
/// </summary>
/// <param name="propertyDocuments">The document properties to re-project.</param>
/// <returns>The document properties with transformed spatial locations.</returns>
private ICollection<PimsPropertyDocument> TransformAllPropertiesToLatLong(ICollection<PimsPropertyDocument> propertyDocuments)
{
if (propertyDocuments == null)
{
return propertyDocuments;
}

foreach (var propertyDocument in propertyDocuments)
{
propertyDocument.Property = _propertyService.TransformPropertyToLatLong(propertyDocument.Property);
}

return propertyDocuments;
}

}
}
14 changes: 7 additions & 7 deletions source/backend/api/Areas/Leases/Models/LeaseFilterModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -136,18 +136,18 @@ public static explicit operator LeaseFilter(LeaseFilterModel model)
Page = model.Page,
Quantity = model.Quantity,

Pid = model.Pid,
Pin = model.Pin,
LFileNo = model.LFileNo,
Address = model.Address,
Historical = model.Historical,
Pid = model.Pid?.Trim(),
Pin = model.Pin?.Trim(),
LFileNo = model.LFileNo?.Trim(),
Address = model.Address?.Trim(),
Historical = model.Historical?.Trim(),
LeaseStatusTypes = model.LeaseStatusTypes,
TenantName = model.TenantName,
TenantName = model.TenantName?.Trim(),
Programs = model.Programs,
ExpiryStartDate = model.ExpiryStartDate,
ExpiryEndDate = model.ExpiryEndDate,
RegionType = model.RegionType,
Details = model.Details,
Details = model.Details?.Trim(),
LeaseTeamOrganizationId = model.LeaseTeamOrganizationId,
LeaseTeamPersonId = model.LeaseTeamPersonId,
IsReceivable = model.IsReceivable,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public ActivitySearchController(IManagementActivityService managementActivitySer
[HttpGet]
[HasPermission(Permissions.ManagementView)]
[Produces("application/json")]
[ProducesResponseType(typeof(IEnumerable<ManagementActivityFilterModel>), 200)]
[ProducesResponseType(typeof(IEnumerable<ManagementActivityModel>), 200)]
[ProducesResponseType(typeof(Api.Models.ErrorResponseModel), 400)]
[SwaggerOperation(Tags = new[] { "management-activities" })]
[TypeFilter(typeof(NullJsonResultFilter))]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,14 +89,14 @@ public static explicit operator ManagementActivityFilter(ManagementActivityFilte
Page = model.Page,
Quantity = model.Quantity,

Pid = model.Pid,
Pin = model.Pin,
Pid = model.Pid?.Trim(),
Pin = model.Pin?.Trim(),
RegionCode = model.RegionCode,
Address = model.Address,
FileNameOrNumberOrReference = model.FileNameOrNumberOrReference,
Address = model.Address?.Trim(),
FileNameOrNumberOrReference = model.FileNameOrNumberOrReference?.Trim(),
ActivityTypeCode = model.ActivityTypeCode,
ActivityStatusCode = model.ActivityStatusCode,
ProjectNameOrNumber = model.ProjectNameOrNumber,
ProjectNameOrNumber = model.ProjectNameOrNumber?.Trim(),
ManagementFileStatusCode = model.ManagementFileStatusCode,
ManagementFilePurposeCode = model.ManagementFilePurposeCode,

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,13 @@ public static explicit operator ManagementFilter(ManagementFilterModel model)
Page = model.Page,
Quantity = model.Quantity,

Pid = model.Pid,
Pin = model.Pin,
Pid = model.Pid?.Trim(),
Pin = model.Pin?.Trim(),
RegionCode = model.RegionCode,
Address = model.Address,
FileNameOrNumberOrReference = model.FileNameOrNumberOrReference,
Address = model.Address?.Trim(),
FileNameOrNumberOrReference = model.FileNameOrNumberOrReference?.Trim(),
ManagementFileStatusCode = model.ManagementFileStatusCode,
ProjectNameOrNumber = model.ProjectNameOrNumber,
ProjectNameOrNumber = model.ProjectNameOrNumber?.Trim(),
ManagementFilePurposeCode = model.ManagementFilePurposeCode,
TeamMemberPersonId = model.TeamMemberPersonId,
TeamMemberOrganizationId = model.TeamMemberOrganizationId,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ public static explicit operator ProjectFilter(ProjectFilterModel model)
Page = model.Page,
Quantity = model.Quantity,

ProjectNumber = model.ProjectNumber,
ProjectName = model.ProjectName,
ProjectNumber = model.ProjectNumber?.Trim(),
ProjectName = model.ProjectName?.Trim(),
ProjectStatusCode = model.ProjectStatusCode,
ProjectRegionCode = model.ProjectRegionCode,

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@ ILogger<PropertyTenureCleanupController> logger
[ProducesResponseType(typeof(IEnumerable<PropertyTenureCleanupModel>), 200)]
[SwaggerOperation(Tags = new[] { "property" })]
[TypeFilter(typeof(NullJsonResultFilter))]
public IActionResult GetHistoricalNumbersForPropertyId(long propertyId)
public IActionResult GetTenureCleanupsForPropertyId(long propertyId)
{
_logger.LogInformation(
"Request received by Controller: {Controller}, Action: {ControllerAction}, User: {User}, DateTime: {DateTime}",
nameof(PropertyTenureCleanupController),
nameof(GetHistoricalNumbersForPropertyId),
nameof(GetTenureCleanupsForPropertyId),
User.GetUsername(),
DateTime.Now
);
Expand Down
10 changes: 5 additions & 5 deletions source/backend/api/Areas/Property/Models/PropertyFilterModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,11 @@ public static explicit operator PropertyFilter(PropertyFilterModel model)
Quantity = model.Quantity,
Sort = model.Sort,

Pid = model.Pid,
Pin = model.Pin,
Address = model.Address,
PlanNumber = model.PlanNumber,
Historical = model.Historical,
Pid = model.Pid?.Trim(),
Pin = model.Pin?.Trim(),
Address = model.Address?.Trim(),
PlanNumber = model.PlanNumber?.Trim(),
Historical = model.Historical?.Trim(),
Ownership = model.Ownership,
TenureCleanup = model.TenureCleanup,
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ public class LeaseController : ControllerBase
private readonly ILookupRepository _lookupRepository;
private readonly ILeaseService _leaseService;
private readonly ILeaseReportsService _leaseReportService;
private readonly ILeasePaymentService _leasePaymentService;
private readonly IMapper _mapper;
private readonly IWebHostEnvironment _webHostEnvironment;
#endregion
Expand All @@ -52,15 +51,13 @@ public class LeaseController : ControllerBase
/// <param name="lookupRepository"></param>
/// <param name="leaseService"></param>
/// <param name="leaseReportService"></param>
/// <param name="leasePaymentService"></param>
/// <param name="webHostEnvironment"></param>
/// <param name="mapper"></param>
public LeaseController(ILookupRepository lookupRepository, ILeaseService leaseService, ILeaseReportsService leaseReportService, ILeasePaymentService leasePaymentService, IWebHostEnvironment webHostEnvironment, IMapper mapper)
public LeaseController(ILookupRepository lookupRepository, ILeaseService leaseService, ILeaseReportsService leaseReportService, IWebHostEnvironment webHostEnvironment, IMapper mapper)
{
_lookupRepository = lookupRepository;
_leaseService = leaseService;
_leaseReportService = leaseReportService;
_leasePaymentService = leasePaymentService;
_mapper = mapper;
_webHostEnvironment = webHostEnvironment;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
Expand All @@ -13,6 +14,7 @@
using Pims.Core.Api.Policies;
using Pims.Core.Extensions;
using Pims.Core.Security;
using Pims.Dal.Entities;
using Pims.Dal.Entities.Models;
using Swashbuckle.AspNetCore.Annotations;

Expand All @@ -30,11 +32,13 @@ namespace Pims.Api.Areas.Reports.Controllers
public class ManagementActivityController : ControllerBase
{
private readonly IManagementActivityService _managementActivityService;
private readonly IPropertyService _propertyService;
private readonly ILogger _logger;

public ManagementActivityController(IManagementActivityService managementActivityService, ILogger<ManagementActivityController> logger)
public ManagementActivityController(IManagementActivityService managementActivityService, IPropertyService propertyService, ILogger<ManagementActivityController> logger)
{
_managementActivityService = managementActivityService;
_propertyService = propertyService;
_logger = logger;
}

Expand Down Expand Up @@ -78,6 +82,13 @@ public IActionResult ExportManagementActivitiesOverview([FromBody] ManagementAct
return NoContent();
}

// Transform all properties to lat/long for returned activities that have properties, this is required for the front end to properly display the property locations.
foreach (var activity in allManagementActivities)
{
var activityProperties = activity.PimsManagementActivityProperties ?? new List<PimsManagementActivityProperty>();
activity.PimsManagementActivityProperties = TransformAllPropertiesToLatLong(activityProperties);
}

var reportActivities = allManagementActivities.Select(a => new ManagementActivityOverviewReportModel(a));

return ReportHelper.GenerateExcel(reportActivities, "Management Activities Overview");
Expand Down Expand Up @@ -123,9 +134,37 @@ public IActionResult ExportManagementActivityInvoices([FromBody] ManagementActiv
return NoContent();
}

// Transform all properties to lat/long for returned invoices that have properties, this is required for the front end to properly display the property locations.
foreach (var invoice in allInvoices)
{
var activityProperties = invoice.ManagementActivity.PimsManagementActivityProperties ?? new List<PimsManagementActivityProperty>();
invoice.ManagementActivity.PimsManagementActivityProperties = TransformAllPropertiesToLatLong(activityProperties);
}

var reportInvoices = allInvoices.Select(i => new ManagementActivityInvoicesReportModel(i));

return ReportHelper.GenerateExcel(reportInvoices, "Management Activity Invoices");
}

/// <summary>
/// Returns the spatial location and boundary polygons in lat/long (4326) for a list of activity properties.
/// The spatial values will be modified in-place.
/// </summary>
/// <param name="activityProperties">The activity properties to re-project.</param>
/// <returns>The activity properties with transformed spatial locations.</returns>
private ICollection<PimsManagementActivityProperty> TransformAllPropertiesToLatLong(ICollection<PimsManagementActivityProperty> activityProperties)
{
if (activityProperties == null)
{
return activityProperties;
}

foreach (var activityProperty in activityProperties)
{
activityProperty.Property = _propertyService.TransformPropertyToLatLong(activityProperty.Property);
}

return activityProperties;
}
}
}
Loading
Loading