Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
317 commits
Select commit Hold shift + click to select a range
1769341
- fix file naming
Jan 26, 2026
314ad18
Only return products related to project ID
areyeslo Jan 26, 2026
7f99d1d
- linting
Jan 26, 2026
5e63752
- fix test description
Jan 26, 2026
5e98f41
Merge pull request #5171 from asanchezr/psp-11133-completed-dispositi…
asanchezr Jan 27, 2026
11bc6cd
CI: Bump version to v5.16.0-116.10
github-actions[bot] Jan 27, 2026
c239f4c
Merge pull request #5176 from eddherrera/psp-11152
asanchezr Jan 27, 2026
3786419
CI: Bump version to v5.16.0-116.11
github-actions[bot] Jan 27, 2026
ca91759
psp-10851 document content search
devinleighsmith Jan 28, 2026
00e6f99
test corrections.
devinleighsmith Jan 28, 2026
f9c6237
Merge pull request #5177 from areyeslo/PSP-11171-InvalidValues-Produc…
areyeslo Jan 30, 2026
f1c1512
CI: Bump version to v5.16.0-116.12
github-actions[bot] Jan 30, 2026
535a1c8
Reduce max-width in viewport 1024px devices
areyeslo Jan 30, 2026
3c47304
Automation test set updates
stairaku Jan 30, 2026
db6a079
Merge branch 'bcgov:dev' into playwright-branch
stairaku Jan 30, 2026
65b2727
correct document service mappings.
devinleighsmith Jan 30, 2026
e012df7
enforce valid active lease statuses when creating lease financial rep…
devinleighsmith Jan 30, 2026
48b43be
Merge branch 'dev' into PSP-11175-TooltipText
areyeslo Jan 30, 2026
79daf04
Merge pull request #5180 from stairaku/playwright-branch
devinleighsmith Jan 31, 2026
b2b2990
CI: Bump version to v5.16.0-116.13
github-actions[bot] Jan 31, 2026
753a13b
Merge pull request #5181 from areyeslo/PSP-11175-TooltipText
areyeslo Feb 2, 2026
0f0ea87
CI: Bump version to v5.16.0-116.14
github-actions[bot] Feb 2, 2026
d046c0f
Merge pull request #5182 from devinleighsmith/psp-8847
devinleighsmith Feb 2, 2026
b18e462
CI: Bump version to v5.16.0-116.15
github-actions[bot] Feb 2, 2026
a0b8a75
Enhance contractor access validation for lease files and projects; re…
asanchezr Jan 27, 2026
3c79994
Add project team member section with links in LeaseDetailView
asanchezr Jan 28, 2026
b6bcec7
Enhance lease retrieval and project integration in useLeaseDetail hoo…
asanchezr Jan 29, 2026
63092f8
Linting
asanchezr Jan 29, 2026
bd90a8c
Enhance access control for lease files; refactor validation methods i…
asanchezr Jan 30, 2026
d44ec2d
Refactor error handling in lease API hooks to use authorization-aware…
asanchezr Jan 30, 2026
f3498a8
Add contractor filtering to lease pagination and update repository in…
asanchezr Jan 30, 2026
32cd133
Fixes from manual testing
asanchezr Jan 30, 2026
013d7e4
Test updates
asanchezr Jan 31, 2026
bea6ac4
Merge branch 'dev' into PSP-10821-Form6-CancellationExpropriationNotice
areyeslo Feb 2, 2026
ad56197
update audit info after deleting records
areyeslo Feb 3, 2026
d40e32e
Merge branch 'dev' into PSP-7043-AcquisitionFiles-AgreementsNotUpdate…
areyeslo Feb 3, 2026
f2e7fef
Updating automation tests
stairaku Feb 3, 2026
072ce0d
Merge branch 'playwright-branch' of https://github.com/stairaku/PSP i…
stairaku Feb 3, 2026
7772647
Merge pull request #5184 from asanchezr/psp-10994-contractor-lease-ac…
asanchezr Feb 3, 2026
3b39573
CI: Bump version to v5.16.0-116.16
github-actions[bot] Feb 3, 2026
8f86f68
Merge pull request #5186 from stairaku/playwright-branch
asanchezr Feb 3, 2026
822fd82
CI: Bump version to v5.16.0-116.17
github-actions[bot] Feb 3, 2026
6719005
Merge pull request #5185 from areyeslo/PSP-7043-AcquisitionFiles-Agre…
asanchezr Feb 3, 2026
bb643e2
CI: Bump version to v5.16.0-116.18
github-actions[bot] Feb 3, 2026
8e2f4ec
test corrections.
devinleighsmith Feb 3, 2026
983d4cf
allow users to search for road names using the geocoder.
devinleighsmith Feb 3, 2026
0677983
Merge branch 'dev' into PSP-10821-Form6-CancellationExpropriationNotice
areyeslo Feb 4, 2026
1bde921
Merge pull request #5174 from areyeslo/PSP-10821-Form6-CancellationEx…
areyeslo Feb 4, 2026
5af34f9
CI: Bump version to v5.16.0-116.19
github-actions[bot] Feb 4, 2026
ac46d0a
Disable sorting by lease account type
asanchezr Dec 9, 2025
6ac4e51
PSP-11193 CSS fix for z-index
asanchezr Feb 3, 2026
0a1d1ee
PSP-11057 Add tooltip for tenure cleanup column
asanchezr Feb 4, 2026
21953fb
PSP-11078 Refactor property selection headers to conditionally render…
asanchezr Feb 4, 2026
2f8dc0f
Snapshot updates
asanchezr Feb 4, 2026
2458378
Merge pull request #5175 from eddherrera/psp-10951
asanchezr Feb 4, 2026
1ef0dc6
CI: Bump version to v5.16.0-116.20
github-actions[bot] Feb 4, 2026
26a005c
Merge pull request #5188 from asanchezr/bug-fixes-116
asanchezr Feb 4, 2026
d4754eb
CI: Bump version to v5.16.0-116.21
github-actions[bot] Feb 4, 2026
e11c0cd
Merge branch 'dev' into psp-10851
asanchezr Feb 5, 2026
49686ab
test corrections.
devinleighsmith Feb 5, 2026
370e18a
Merge branch 'dev' into road_search
devinleighsmith Feb 5, 2026
f2be1c9
Merge pull request #5187 from devinleighsmith/road_search
devinleighsmith Feb 5, 2026
d03281c
CI: Bump version to v5.16.0-116.22
github-actions[bot] Feb 5, 2026
29768e1
Merge branch 'dev' into psp-10851
asanchezr Feb 5, 2026
89adda5
Merge pull request #5179 from devinleighsmith/psp-10851
asanchezr Feb 5, 2026
0ca2649
CI: Bump version to v5.16.0-116.23
github-actions[bot] Feb 5, 2026
c4cadf7
Merge remote-tracking branch 'upstream/test' into backmerge_test_to_dev
devinleighsmith Feb 5, 2026
bf6fc65
On cancel, always redirect to the Management File
areyeslo Feb 5, 2026
6541986
Merge branch 'dev' into PSP-11195-ManagementFiles-ContactDetails
areyeslo Feb 5, 2026
83ebfce
IS-117.00 Database Schema
dfilteau Feb 5, 2026
d1e24ea
Update snapshots
asanchezr Feb 5, 2026
777b48c
Bump version - 117
asanchezr Feb 6, 2026
072b464
Merge pull request #5190 from devinleighsmith/backmerge_test_to_dev
asanchezr Feb 6, 2026
ae2013a
Merge pull request #5191 from areyeslo/PSP-11195-ManagementFiles-Cont…
asanchezr Feb 6, 2026
3583a3b
CI: Bump version to v5.16.0-116.24
github-actions[bot] Feb 6, 2026
570b70b
Merge branch 'dev' into bump-version-117
asanchezr Feb 6, 2026
ae52cb4
CI: Bump version to v5.16.0-116.25
github-actions[bot] Feb 6, 2026
cae1d73
Merge branch 'dev' into bump-version-117
asanchezr Feb 6, 2026
17ba44b
Merge pull request #5193 from asanchezr/bump-version-117
asanchezr Feb 6, 2026
c113ac2
CI: Bump version to v5.16.0-117.1
github-actions[bot] Feb 6, 2026
7a8caaf
Adding changes to automation test set
stairaku Feb 6, 2026
0d04b9d
Merge branch 'bcgov:dev' into IS-117.00
dfilteau Feb 6, 2026
14460e1
Removed Default Values
dfilteau Feb 6, 2026
820a5c9
Merge branch 'IS-117.00' of https://github.com/dfilteau/PSP into IS-1…
dfilteau Feb 6, 2026
20d433b
Altered IS_DISABLED
dfilteau Feb 7, 2026
9461e6c
Update test set
stairaku Feb 9, 2026
e602046
Merge branch 'bcgov:dev' into playwright-branch
stairaku Feb 9, 2026
6ff02dd
Merge pull request #5192 from dfilteau/IS-117.00
eddherrera Feb 9, 2026
c5bf3ea
CI: Bump version to v5.16.0-117.2
github-actions[bot] Feb 9, 2026
1c8c40d
DB Scaffold IS117
Feb 9, 2026
c7d84de
Merge pull request #5196 from devinleighsmith/test
devinleighsmith Feb 9, 2026
25132ad
psp-9208 remove surplus declaration tab.
devinleighsmith Feb 9, 2026
6eb1b01
CI: Bump version to v5.16.0-117.3
github-actions[bot] Feb 9, 2026
9558326
- updates
Feb 9, 2026
b32b642
Merge pull request #5198 from eddherrera/scaffold/s117
eddherrera Feb 9, 2026
37d6802
CI: Bump version to v5.16.0-117.4
github-actions[bot] Feb 9, 2026
ad08e8b
PSP-8129 fix
stairaku Feb 10, 2026
322d861
Merge branch 'bcgov:dev' into PSP-8129
stairaku Feb 10, 2026
40d99af
Deleteing unncessary module
stairaku Feb 10, 2026
84e1806
New icons for working list
asanchezr Feb 11, 2026
78187a0
Merge pull request #5202 from asanchezr/working-list-icons
asanchezr Feb 11, 2026
af5f8ad
CI: Bump version to v5.16.0-117.5
github-actions[bot] Feb 11, 2026
96ee82b
Merge pull request #5199 from devinleighsmith/psp-9208
devinleighsmith Feb 11, 2026
b80e6a5
CI: Bump version to v5.16.0-117.6
github-actions[bot] Feb 11, 2026
0e2bf80
PSP-11150 : Improvements enhancements
Feb 11, 2026
ee0e45a
Frontend changes to include Agreements in Disposition
areyeslo Feb 9, 2026
130a822
Backend and tweaks to frontend
areyeslo Feb 11, 2026
44943cf
Update tests and snapshots
areyeslo Feb 11, 2026
410e17c
Update work list icon
areyeslo Feb 12, 2026
b2a69ba
Merge branch 'dev' into psp-11150
Feb 12, 2026
89b5035
Merge branch 'dev' into playwright-branch
stairaku Feb 12, 2026
208cbb3
Chnages on Playwright test set
stairaku Feb 12, 2026
b34f6a7
linting
stairaku Feb 12, 2026
5b6d6d1
Merge branch 'playwright-branch' of https://github.com/stairaku/PSP i…
stairaku Feb 12, 2026
476c3a1
Update snapshot
areyeslo Feb 12, 2026
4b00f1a
Deleting redundant condition
stairaku Feb 12, 2026
e84a22c
Merge branch 'dev' into PSP-8129
stairaku Feb 12, 2026
bc27f9f
Merge pull request #5201 from stairaku/PSP-8129
stairaku Feb 12, 2026
7bae896
Update snapshots
areyeslo Feb 12, 2026
778caba
Updating snapshot
stairaku Feb 12, 2026
ab16685
CI: Bump version to v5.16.0-117.7
github-actions[bot] Feb 12, 2026
3243bdb
Merge pull request #5197 from stairaku/playwright-branch
stairaku Feb 12, 2026
fbb6af1
CI: Bump version to v5.16.0-117.8
github-actions[bot] Feb 12, 2026
cc1141a
Merge pull request #5206 from areyeslo/PSP-11179-WorkingListUI-Consis…
areyeslo Feb 12, 2026
5c4d976
CI: Bump version to v5.16.0-117.9
github-actions[bot] Feb 12, 2026
888eec2
Update max native zoom on highway layers.
devinleighsmith Feb 12, 2026
b639b09
Merge pull request #5204 from areyeslo/PSP-11132-DispositionRoadClosu…
areyeslo Feb 13, 2026
95140e3
CI: Bump version to v5.16.0-117.10
github-actions[bot] Feb 13, 2026
7a933bf
debug layer zoom behaviour.
devinleighsmith Feb 13, 2026
f584f7e
zoom testing.
devinleighsmith Feb 13, 2026
1872e91
remove console.log
devinleighsmith Feb 13, 2026
64b9b31
Automatically enable the survey plan layer when survey plan search se…
devinleighsmith Feb 13, 2026
35d2a8f
correct merge error.
devinleighsmith Feb 13, 2026
9304865
PSP-11201 : NOC - include in acquisition file export
Feb 17, 2026
4cd8f3e
Add functionality to add properties to worklist from popup
asanchezr Feb 18, 2026
1a8ad68
- linting
Feb 18, 2026
9acdbc1
psp-11200 add coloured highway plan layer.
devinleighsmith Feb 18, 2026
b37454c
Snapshot updates
asanchezr Feb 18, 2026
eafbf74
Merge branch 'dev' into psp-11150
Feb 18, 2026
1abd730
Add tests for LocationPopupContainer and MultiplePropertyPopupView co…
asanchezr Feb 18, 2026
b385840
- linting
Feb 18, 2026
c72fb10
Merge pull request #5203 from eddherrera/psp-11150
asanchezr Feb 18, 2026
269be6a
CI: Bump version to v5.16.0-117.11
github-actions[bot] Feb 18, 2026
da83b5c
Merge pull request #5209 from devinleighsmith/psp-11199
asanchezr Feb 18, 2026
8202763
CI: Bump version to v5.16.0-117.12
github-actions[bot] Feb 18, 2026
3eeed59
PR feedback
asanchezr Feb 18, 2026
c89dc10
Merge branch 'dev' into psp-10954-add-to-worklist-from-popup
asanchezr Feb 18, 2026
3bc2217
Merge pull request #5213 from asanchezr/psp-10954-add-to-worklist-fro…
asanchezr Feb 18, 2026
5679dac
CI: Bump version to v5.16.0-117.13
github-actions[bot] Feb 18, 2026
c024b8d
Altered PIMS_ACQUISITION_FILE
dfilteau Feb 18, 2026
48ba01f
Merge pull request #5211 from eddherrera/psp-11201
eddherrera Feb 18, 2026
2245995
CI: Bump version to v5.16.0-117.14
github-actions[bot] Feb 18, 2026
1907056
psp-11216 ignore null person organizations.
devinleighsmith Feb 18, 2026
948f34d
correct compilation issue.
devinleighsmith Feb 19, 2026
642387c
correct mockclear error.
devinleighsmith Feb 19, 2026
29ec57a
Merge pull request #5215 from devinleighsmith/psp-11216
asanchezr Feb 19, 2026
69275d8
Update test set
stairaku Feb 19, 2026
a55af4e
linting
stairaku Feb 19, 2026
d8da176
Merge branch 'playwright-branch' of https://github.com/stairaku/PSP i…
stairaku Feb 19, 2026
0366022
CI: Bump version to v5.16.0-117.15
github-actions[bot] Feb 19, 2026
13ca838
Merge pull request #5210 from devinleighsmith/psp-11194
asanchezr Feb 19, 2026
28ba99c
CI: Bump version to v5.16.0-117.16
github-actions[bot] Feb 19, 2026
45b970b
psp-11194
devinleighsmith Feb 19, 2026
a76c186
psp-11146 properly handle routing when saving management contacts, to…
devinleighsmith Feb 19, 2026
60ab987
correct dependency array.
devinleighsmith Feb 19, 2026
79949b8
Merge pull request #5217 from devinleighsmith/psp-11146
asanchezr Feb 19, 2026
bce3d2c
CI: Bump version to v5.16.0-117.17
github-actions[bot] Feb 19, 2026
a5c9d69
Merge pull request #5214 from asanchezr/asr_test
eddherrera Feb 19, 2026
0488d03
CI: Bump version to v5.16.0-117.18
github-actions[bot] Feb 19, 2026
43b21ad
IS117.1 - Scaffold
Feb 19, 2026
2ae9fc4
Merge branch 'dev' into scaffold/s117.1
Feb 19, 2026
ec7599a
- linting
Feb 19, 2026
7ddf376
Adding missing screenshot update
stairaku Feb 19, 2026
05516a8
Merge branch 'dev' into playwright-branch
stairaku Feb 19, 2026
a518e5f
Merge pull request #5219 from eddherrera/scaffold/s117.1
eddherrera Feb 19, 2026
9fca8ec
CI: Bump version to v5.16.0-117.19
github-actions[bot] Feb 19, 2026
3551809
Merge pull request #5216 from stairaku/playwright-branch
asanchezr Feb 19, 2026
ea4c0ca
CI: Bump version to v5.16.0-117.20
github-actions[bot] Feb 19, 2026
24e3b03
Updating nuget packages
stairaku Feb 19, 2026
899a16c
Merge branch 'playwright-branch' of https://github.com/stairaku/PSP i…
stairaku Feb 19, 2026
21c16f2
Merge branch 'bcgov:dev' into playwright-branch
stairaku Feb 19, 2026
a47a511
Merge pull request #5221 from stairaku/playwright-branch
asanchezr Feb 19, 2026
45ba744
CI: Bump version to v5.16.0-117.21
github-actions[bot] Feb 19, 2026
cd4117c
Show property Management tab within PIMS files
asanchezr Feb 19, 2026
99bcb0a
Linting
asanchezr Feb 19, 2026
f801440
Enhance PropertyFileContainer tests to cover additional tab rendering…
asanchezr Feb 20, 2026
34f39cb
minor update to null coalescing operators.
devinleighsmith Feb 20, 2026
c3c296c
Merge pull request #5222 from asanchezr/psp-11026-property-management…
asanchezr Feb 20, 2026
98c7951
CI: Bump version to v5.16.0-117.22
github-actions[bot] Feb 20, 2026
d12efc3
Merge pull request #5218 from devinleighsmith/psp-11194
devinleighsmith Feb 20, 2026
d7f017a
CI: Bump version to v5.16.0-117.23
github-actions[bot] Feb 20, 2026
e519d37
PSP-11023 : MVP - Skeleton Ticket for Capturing Pre-legacy System Pro…
Feb 20, 2026
a541595
Add contractor support in lease export filtering
asanchezr Feb 7, 2026
f85f243
Implement contractor access for lease payment reports and update repo…
asanchezr Feb 11, 2026
aca57d4
Refactor compensation requisition financial search to include region …
asanchezr Feb 12, 2026
f2dbe65
Fix CompReqFinancialRepository to streamline acquisition and lease p…
asanchezr Feb 12, 2026
da9c1de
Test updates
asanchezr Feb 12, 2026
3e91cef
Refactor lease payment report mappings to resolve NPE errors
asanchezr Feb 14, 2026
c83ab55
PR feedback
asanchezr Feb 21, 2026
65fce28
Fix codeql warnings
asanchezr Feb 21, 2026
04fb546
Merge pull request #5208 from asanchezr/psp-10920-contractor-access-e…
asanchezr Feb 21, 2026
efd3e4b
CI: Bump version to v5.16.0-117.24
github-actions[bot] Feb 21, 2026
9f5c066
Correct issue with navbar enforcing min vertical height.
devinleighsmith Feb 23, 2026
76ec445
- Updates
Feb 23, 2026
6c3ed36
Merge branch 'dev' into psp-11023
Feb 23, 2026
dd970f3
Merge pull request #5223 from eddherrera/psp-11023
eddherrera Feb 23, 2026
a95e2ec
Code review changes
areyeslo Feb 12, 2026
5426552
Add DispositionAgreeement generated by TsGenerator
areyeslo Feb 13, 2026
88927e0
Refactor to generate form for acquisition and disposition
areyeslo Feb 14, 2026
fca07f4
Retrieve purchaser and solicitor information to show in the new template
areyeslo Feb 19, 2026
4b2ee25
Wait to retrieve file before rendering Agreements
areyeslo Feb 19, 2026
9ac690b
Update tests
areyeslo Feb 19, 2026
4cb6dbd
Implement Endpoint for get Disposition file by ID with PimsPerson entity
areyeslo Feb 20, 2026
acf8b2e
useGenerateAgreement receives isAcquisition from parent component dep…
areyeslo Feb 20, 2026
1e4826e
Add typing to onCreateAgreement. Both Disposition and Acquisition sha…
areyeslo Feb 20, 2026
0c37ccb
Update test
areyeslo Feb 21, 2026
b6f0f05
Reducing complexity spotted by Sonarqube
areyeslo Feb 21, 2026
207e81f
Apply asSplitQuery to handle subqueries to optimize performance
areyeslo Feb 23, 2026
ce9f6b3
Fixing type in Agreement
areyeslo Feb 23, 2026
717a509
CI: Bump version to v5.16.0-117.25
github-actions[bot] Feb 23, 2026
d79b270
Merge pull request #5220 from areyeslo/PSP-10827-H-0179-RC
areyeslo Feb 23, 2026
7a9049c
CI: Bump version to v5.16.0-117.26
github-actions[bot] Feb 23, 2026
23a5ae7
Merge pull request #5224 from devinleighsmith/psp-11194
asanchezr Feb 23, 2026
9a551d9
CI: Bump version to v5.16.0-117.27
github-actions[bot] Feb 23, 2026
1e7b7ea
Always show modal when leaving current route. Preserve selectedFeatur…
areyeslo Feb 24, 2026
efc661c
Update test common wrapper
areyeslo Feb 24, 2026
d8a57b0
psp-10833 add logic to override version compatibility warnings on fro…
devinleighsmith Feb 12, 2026
8dd521f
replace vite var with tenant env var.
devinleighsmith Feb 23, 2026
a952beb
fix marker display on zoomed out results when searching
devinleighsmith Feb 25, 2026
f0d7a69
Release 6.0 - MVP
asanchezr Feb 25, 2026
33e160f
correct active/inactive icon color toggling on worklist.
devinleighsmith Feb 25, 2026
a589bfe
Linting
asanchezr Feb 26, 2026
3ea296c
Merge pull request #5230 from devinleighsmith/psp-11226
asanchezr Feb 26, 2026
4834957
fix worklist context tests.
devinleighsmith Feb 26, 2026
ef570d2
CI: Bump version to v5.16.0-117.28
github-actions[bot] Feb 26, 2026
e2adef0
Merge branch 'dev' into release-6.0
asanchezr Feb 26, 2026
632054f
Merge pull request #5207 from devinleighsmith/psp-10833
devinleighsmith Feb 26, 2026
6153863
CI: Bump version to v5.16.0-117.29
github-actions[bot] Feb 26, 2026
4825c01
Merge branch 'dev' into release-6.0
asanchezr Feb 26, 2026
ebff777
Update project version to 6.0.0-117.29
asanchezr Feb 26, 2026
4eeca87
Update frontend version to 6.0.0-117.29
asanchezr Feb 26, 2026
31b313f
Merge pull request #5231 from asanchezr/release-6.0
asanchezr Feb 26, 2026
f146635
CI: Bump version to v6.0.0-117.30
github-actions[bot] Feb 26, 2026
a536ff8
PSP-11229 : FT: Agreement Tab Visible for All Disposition Types Inste…
Feb 25, 2026
9730ef0
Test updates
asanchezr Feb 26, 2026
c7a6619
Merge pull request #5229 from eddherrera/psp-11229
asanchezr Feb 26, 2026
bb39f22
CI: Bump version to v6.0.0-117.31
github-actions[bot] Feb 26, 2026
c5bf963
Merge pull request #5225 from areyeslo/PSP-11225-WarningMessageNotDis…
asanchezr Feb 26, 2026
ba1019d
CI: Bump version to v6.0.0-117.32
github-actions[bot] Feb 26, 2026
30efd24
Merge branch 'test' into dev
devinleighsmith Feb 26, 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
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public IActionResult AddAcquisitionFile([FromBody] AcquisitionFileModel model, [

_logger.LogInformation("Dispatching to service: {Service}", _acquisitionService.GetType());

var acqFileEntity = _mapper.Map<Dal.Entities.PimsAcquisitionFile>(model);
var acqFileEntity = _mapper.Map<PimsAcquisitionFile>(model);
var acquisitionFile = _acquisitionService.Add(acqFileEntity, userOverrideCodes.Select(oc => UserOverrideCode.Parse(oc)));

return new JsonResult(_mapper.Map<AcquisitionFileModel>(acquisitionFile));
Expand Down Expand Up @@ -150,7 +150,7 @@ public IActionResult UpdateAcquisitionFile(long id, [FromBody] AcquisitionFileMo

_logger.LogInformation("Dispatching to service: {Service}", _acquisitionService.GetType());

var acqFileEntity = _mapper.Map<Dal.Entities.PimsAcquisitionFile>(model);
var acqFileEntity = _mapper.Map<PimsAcquisitionFile>(model);
var acquisitionFile = _acquisitionService.Update(acqFileEntity, userOverrideCodes.Select(oc => UserOverrideCode.Parse(oc)));
return new JsonResult(_mapper.Map<AcquisitionFileModel>(acquisitionFile));
}
Expand All @@ -167,7 +167,7 @@ public IActionResult UpdateAcquisitionFile(long id, [FromBody] AcquisitionFileMo
[TypeFilter(typeof(NullJsonResultFilter))]
public IActionResult UpdateAcquisitionFileProperties([FromBody] AcquisitionFileModel acquisitionFileModel, [FromQuery] string[] userOverrideCodes)
{
var acquisitionFileEntity = _mapper.Map<Dal.Entities.PimsAcquisitionFile>(acquisitionFileModel);
var acquisitionFileEntity = _mapper.Map<PimsAcquisitionFile>(acquisitionFileModel);
var acquisitionFile = _acquisitionService.UpdateProperties(acquisitionFileEntity, userOverrideCodes.Select(oc => UserOverrideCode.Parse(oc)));
return new JsonResult(_mapper.Map<AcquisitionFileModel>(acquisitionFile));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public IActionResult AddAcquisitionFileAgreement([FromRoute] long id, [FromBody]
User.GetUsername(),
DateTime.Now);

if (id != agreement.AcquisitionFileId)
if (id != agreement.FileId)
{
throw new BadRequestException("Invalid AcquisitionFileId.");
}
Expand Down Expand Up @@ -144,7 +144,7 @@ public IActionResult UpdateAcquisitionFileAgreement([FromRoute] long id, [FromRo
User.GetUsername(),
DateTime.Now);

if (id != agreement.AcquisitionFileId)
if (id != agreement.FileId)
{
throw new BadRequestException("Invalid AcquisitionFileId.");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ public class AcquisitionFilterModel : PageFilter
/// get/set - The MOTI Organization id to search by for acquisition team members.
/// </summary>
public string AcquisitionTeamMemberOrganizationId { get; set; }

/// <summary>
/// get/set - Get the Acquisition files that has NOC.
/// </summary>
public bool HasNoticeOfClaim { get; set; }

#endregion

#region Constructors
Expand All @@ -74,17 +80,18 @@ public AcquisitionFilterModel(Dictionary<string, Microsoft.Extensions.Primitives
// We want case-insensitive query parameter properties.
var filter = new Dictionary<string, Microsoft.Extensions.Primitives.StringValues>(query, StringComparer.OrdinalIgnoreCase);

this.Pid = filter.GetStringValue(nameof(this.Pid));
this.Pin = filter.GetStringValue(nameof(this.Pin));
this.Address = filter.GetStringValue(nameof(this.Address));
this.AcquisitionFileStatusTypeCode = filter.GetStringValue(nameof(this.AcquisitionFileStatusTypeCode));
this.AcquisitionFileNameOrNumber = filter.GetStringValue(nameof(this.AcquisitionFileNameOrNumber));
this.ProjectNameOrNumber = filter.GetStringValue(nameof(this.ProjectNameOrNumber));
this.OwnerName = filter.GetStringValue(nameof(this.OwnerName));
this.AcquisitionTeamMemberPersonId = filter.GetStringValue(nameof(this.AcquisitionTeamMemberPersonId));
this.AcquisitionTeamMemberOrganizationId = filter.GetStringValue(nameof(this.AcquisitionTeamMemberOrganizationId));

this.Sort = filter.GetStringArrayValue(nameof(this.Sort));
Pid = filter.GetStringValue(nameof(Pid));
Pin = filter.GetStringValue(nameof(Pin));
Address = filter.GetStringValue(nameof(Address));
AcquisitionFileStatusTypeCode = filter.GetStringValue(nameof(AcquisitionFileStatusTypeCode));
AcquisitionFileNameOrNumber = filter.GetStringValue(nameof(AcquisitionFileNameOrNumber));
ProjectNameOrNumber = filter.GetStringValue(nameof(ProjectNameOrNumber));
OwnerName = filter.GetStringValue(nameof(OwnerName));
AcquisitionTeamMemberPersonId = filter.GetStringValue(nameof(AcquisitionTeamMemberPersonId));
AcquisitionTeamMemberOrganizationId = filter.GetStringValue(nameof(AcquisitionTeamMemberOrganizationId));
HasNoticeOfClaim = filter.GetBoolValue(nameof(HasNoticeOfClaim));

Sort = filter.GetStringArrayValue(nameof(Sort));
}
#endregion

Expand All @@ -110,6 +117,7 @@ public static explicit operator AcquisitionFilter(AcquisitionFilterModel model)
OwnerName = model.OwnerName,
AcquisitionTeamMemberPersonId = model.AcquisitionTeamMemberPersonId,
AcquisitionTeamMemberOrganizationId = model.AcquisitionTeamMemberOrganizationId,
HasNoticeOfClaim = model.HasNoticeOfClaim,

Sort = model.Sort,
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,31 @@ public IActionResult GetDispositionFile(long id)
return new JsonResult(_mapper.Map<DispositionFileModel>(dispositionFile));
}

/// <summary>
/// Gets the specified disposition file with all related entities.
/// </summary>
/// <returns></returns>
[HttpGet("{id:long}/deep")]
[HasPermission(Permissions.DispositionView)]
[Produces("application/json")]
[ProducesResponseType(typeof(DispositionFileModel), 200)]
[SwaggerOperation(Tags = new[] { "dispositionfile" })]
[TypeFilter(typeof(NullJsonResultFilter))]
public IActionResult GetDispositionFileDeep(long id)
{
_logger.LogInformation(
"Request received by Controller: {Controller}, Action: {ControllerAction}, User: {User}, DateTime: {DateTime}",
nameof(DispositionFileController),
nameof(GetDispositionFileDeep),
User.GetUsername(),
DateTime.Now);

_logger.LogInformation("Dispatching to service: {Service}", _dispositionService.GetType());

var dispositionFile = _dispositionService.GetDeepById(id);
return new JsonResult(_mapper.Map<DispositionFileModel>(dispositionFile));
}

/// <summary>
/// Creates a new Disposition File entity.
/// </summary>
Expand Down Expand Up @@ -501,6 +526,129 @@ public IActionResult UpdateDispositionFileProperties([FromBody] DispositionFileM
return new JsonResult(_mapper.Map<DispositionFileModel>(dispositionFile));
}

[HttpGet("{id:long}/agreements")]
[HasPermission(Permissions.AgreementView)]
[Produces("application/json")]
[ProducesResponseType(typeof(IEnumerable<DispositionAgreementModel>), 200)]
[SwaggerOperation(Tags = new[] { "dispositionfile" })]
[TypeFilter(typeof(NullJsonResultFilter))]
public IActionResult GetDispositionFileAgreements(long id)
{
_logger.LogInformation(
"Request received by Controller: {Controller}, Action: {ControllerAction}, User: {User}, DateTime: {DateTime}",
nameof(DispositionFileController),
nameof(GetDispositionFileAgreements),
User.GetUsername(),
DateTime.Now);

var agreements = _dispositionService.GetAgreements(id);
return new JsonResult(_mapper.Map<IEnumerable<DispositionAgreementModel>>(agreements));
}

/// <summary>
/// Create the disposition file agreement to the disposition file.
/// </summary>
/// <returns>The agreements items.</returns>
[HttpPost("{id:long}/agreements")]
[HasPermission(Permissions.AgreementView)]
[Produces("application/json")]
[ProducesResponseType(typeof(DispositionAgreementModel), 200)]
[TypeFilter(typeof(NullJsonResultFilter))]
[SwaggerOperation(Tags = new[] { "dispositionfile" })]
public IActionResult AddDispositionFileAgreement([FromRoute] long id, [FromBody] DispositionAgreementModel agreement)
{
_logger.LogInformation(
"Request received by Controller: {Controller}, Action: {ControllerAction}, User: {User}, DateTime: {DateTime}",
nameof(DispositionFileController),
nameof(AddDispositionFileAgreement),
User.GetUsername(),
DateTime.Now);

if (id != agreement.FileId)
{
throw new BadRequestException("Invalid DispositionFileId.");
}

var newAgreement = _dispositionService.AddDispositionFileAgreement(id, _mapper.Map<Dal.Entities.PimsDispositionAgreement>(agreement));

return new JsonResult(_mapper.Map<DispositionAgreementModel>(newAgreement));
}

/// <summary>
/// Get the disposition file agreement by Id.
/// </summary>
/// <returns>The agreements items.</returns>
[HttpGet("{id:long}/agreements/{agreementId:long}")]
[HasPermission(Permissions.AgreementView)]
[Produces("application/json")]
[ProducesResponseType(typeof(DispositionAgreementModel), 200)]
[SwaggerOperation(Tags = new[] { "dispositionfile" })]
public IActionResult GetDispositionFileAgreementById([FromRoute] long id, [FromRoute] long agreementId)
{
_logger.LogInformation(
"Request received by Controller: {Controller}, Action: {ControllerAction}, User: {User}, DateTime: {DateTime}",
nameof(DispositionFileController),
nameof(GetDispositionFileAgreementById),
User.GetUsername(),
DateTime.Now);

var agreement = _dispositionService.GetAgreementById(id, agreementId);

return new JsonResult(_mapper.Map<DispositionAgreementModel>(agreement));
}

/// <summary>
/// Update the disposition file agreement by Id.
/// </summary>
/// <returns>The agreements item updated.</returns>
[HttpPut("{id:long}/agreements/{agreementId:long}")]
[HasPermission(Permissions.AgreementView)]
[Produces("application/json")]
[ProducesResponseType(typeof(DispositionAgreementModel), 200)]
[TypeFilter(typeof(NullJsonResultFilter))]
[SwaggerOperation(Tags = new[] { "dispositionfile" })]
public IActionResult UpdateDispositionFileAgreement([FromRoute] long id, [FromRoute] long agreementId, [FromBody] DispositionAgreementModel agreement)
{
_logger.LogInformation(
"Request received by Controller: {Controller}, Action: {ControllerAction}, User: {User}, DateTime: {DateTime}",
nameof(DispositionFileController),
nameof(UpdateDispositionFileAgreement),
User.GetUsername(),
DateTime.Now);

if (id != agreement.FileId)
{
throw new BadRequestException("Invalid DispositionFileId.");
}

var updatedAgreement = _dispositionService.UpdateDispositionFileAgreement(id, _mapper.Map<Dal.Entities.PimsDispositionAgreement>(agreement));

return new JsonResult(_mapper.Map<DispositionAgreementModel>(updatedAgreement));
}

/// <summary>
/// Delete the disposition file agreement by Id.
/// </summary>
/// <returns>The agreements item updated.</returns>
[HttpDelete("{id:long}/agreements/{agreementId:long}")]
[HasPermission(Permissions.AgreementView)]
[Produces("application/json")]
[ProducesResponseType(typeof(bool), 200)]
[SwaggerOperation(Tags = new[] { "dispositionfile" })]
public IActionResult DeleteDispositionFileAgreement([FromRoute] long id, [FromRoute] long agreementId)
{
_logger.LogInformation(
"Request received by Controller: {Controller}, Action: {ControllerAction}, User: {User}, DateTime: {DateTime}",
nameof(DispositionFileController),
nameof(DeleteDispositionFileAgreement),
User.GetUsername(),
DateTime.Now);

var result = _dispositionService.DeleteDispositionFileAgreement(id, agreementId);

return new JsonResult(result);
}

#endregion
}
}
32 changes: 20 additions & 12 deletions source/backend/api/Areas/Management/Models/ManagementFilterModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,12 @@ public class ManagementFilterModel : PageFilter
/// get/set - The ministry region of the file.
/// </summary>
public long? ManagementRegionCd { get; set; }

/// <summary>
/// get/set - Get the Management File that has NOC.
/// </summary>
public bool HasNoticeOfClaim { get; set; }

#endregion

#region Constructors
Expand All @@ -84,18 +90,19 @@ public ManagementFilterModel(Dictionary<string, Microsoft.Extensions.Primitives.
// We want case-insensitive query parameter properties.
var filter = new Dictionary<string, Microsoft.Extensions.Primitives.StringValues>(query, StringComparer.OrdinalIgnoreCase);

this.Pid = filter.GetStringValue(nameof(this.Pid));
this.Pin = filter.GetStringValue(nameof(this.Pin));
this.RegionCode = filter.GetStringValue(nameof(this.RegionCode));
this.Address = filter.GetStringValue(nameof(this.Address));
this.FileNameOrNumberOrReference = filter.GetStringValue(nameof(this.FileNameOrNumberOrReference));
this.ManagementFileStatusCode = filter.GetStringValue(nameof(this.ManagementFileStatusCode));
this.ProjectNameOrNumber = filter.GetStringValue(nameof(this.ProjectNameOrNumber));
this.ManagementFilePurposeCode = filter.GetStringValue(nameof(this.ManagementFilePurposeCode));
this.TeamMemberPersonId = filter.GetLongNullValue(nameof(this.TeamMemberPersonId));
this.TeamMemberOrganizationId = filter.GetLongNullValue(nameof(this.TeamMemberOrganizationId));

this.Sort = filter.GetStringArrayValue(nameof(this.Sort));
Pid = filter.GetStringValue(nameof(Pid));
Pin = filter.GetStringValue(nameof(Pin));
RegionCode = filter.GetStringValue(nameof(RegionCode));
Address = filter.GetStringValue(nameof(Address));
FileNameOrNumberOrReference = filter.GetStringValue(nameof(FileNameOrNumberOrReference));
ManagementFileStatusCode = filter.GetStringValue(nameof(ManagementFileStatusCode));
ProjectNameOrNumber = filter.GetStringValue(nameof(ProjectNameOrNumber));
ManagementFilePurposeCode = filter.GetStringValue(nameof(ManagementFilePurposeCode));
TeamMemberPersonId = filter.GetLongNullValue(nameof(TeamMemberPersonId));
TeamMemberOrganizationId = filter.GetLongNullValue(nameof(TeamMemberOrganizationId));
HasNoticeOfClaim = filter.GetBoolValue(nameof(HasNoticeOfClaim));

Sort = filter.GetStringArrayValue(nameof(Sort));
}
#endregion

Expand All @@ -122,6 +129,7 @@ public static explicit operator ManagementFilter(ManagementFilterModel model)
ManagementFilePurposeCode = model.ManagementFilePurposeCode,
TeamMemberPersonId = model.TeamMemberPersonId,
TeamMemberOrganizationId = model.TeamMemberOrganizationId,
HasNoticeOfClaim = model.HasNoticeOfClaim,

Sort = model.Sort,
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public PropertyImprovementController(IPropertyService propertyService, IMapper m
/// </summary>
/// <returns></returns>
[HttpGet("{propertyId:long}/improvements")]
[HasPermission(Permissions.LeaseView)]
[HasPermission(Permissions.PropertyView)]
[Produces("application/json")]
[ProducesResponseType(typeof(IEnumerable<PropertyImprovementModel>), 200)]
[SwaggerOperation(Tags = new[] { "property" })]
Expand Down
19 changes: 5 additions & 14 deletions source/backend/api/Areas/Reports/Controllers/LeaseController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
using Pims.Api.Services;
using Pims.Core.Api.Exceptions;
using Pims.Core.Api.Policies;
using Pims.Core.Extensions;
using Pims.Core.Security;
using Pims.Dal.Entities;
using Pims.Dal.Entities.Models;
Expand Down Expand Up @@ -174,28 +173,20 @@ public IActionResult ExportAggregatedLeases(int fiscalYearStart)
[SwaggerOperation(Tags = new[] { "lease", "payments", "report" })]
public IActionResult ExportLeasePayments(int fiscalYearStart)
{
var acceptHeader = (string)this.Request.Headers["Accept"];
var acceptHeader = (string)Request.Headers["Accept"];

if (acceptHeader != ContentTypes.CONTENTTYPEEXCEL && acceptHeader != ContentTypes.CONTENTTYPEEXCELX)
{
throw new BadRequestException($"Invalid HTTP request header 'Accept:{acceptHeader}'.");
}

DateTime startDate = fiscalYearStart.ToFiscalYearDate();
var allPayments = _leasePaymentService.GetAllByDateRange(startDate, startDate.AddYears(1).AddDays(-1)); // Add years will give you the equivalent month, except for 29th/ 28th of leap years which is not the case here.
var leaseIds = allPayments.Select(payment => payment.LeasePeriod.LeaseId);
var paymentLeases = _leaseService.GetAllByIds(leaseIds);

// Required to display the latest payment on the lease, which may not be part of the current date range filter of payments. This ensures that all payments for a lease associated to one of the payments in the date range are included.
allPayments.ForEach(payment =>
{
payment.LeasePeriod.Lease = paymentLeases.FirstOrDefault(lease => lease.LeaseId == payment.LeasePeriod.LeaseId);
});
var paymentItems = _mapper.Map<IEnumerable<LeasePaymentReportModel>>(allPayments.OrderBy(p => p?.LeasePeriod?.Lease?.RegionCode).ThenBy(p => p?.LeasePeriod?.Lease?.LFileNo).ThenByDescending(p => p.PaymentReceivedDate));
IEnumerable<PimsLeasePayment> paymentsForFiscal = _leaseReportService.GetLeasePaymentsReport(fiscalYearStart);
var sortedPayments = paymentsForFiscal.OrderBy(p => p?.LeasePeriod?.Lease?.RegionCode).ThenBy(p => p?.LeasePeriod?.Lease?.LFileNo).ThenByDescending(p => p.PaymentReceivedDate).ToList();
var paymentItems = sortedPayments.Select(p => LeasePaymentReportModel.MapFrom(p)).ToList();

return acceptHeader.ToString() switch
{
ContentTypes.CONTENTTYPECSV => ReportHelper.GenerateCsv<LeasePaymentReportModel>(paymentItems),
ContentTypes.CONTENTTYPECSV => ReportHelper.GenerateCsv(paymentItems),
_ => ReportHelper.GenerateExcel(paymentItems, $"LeaseLicense_Payments")
};
}
Expand Down
Loading
Loading