Skip to content

PSP-10953 : Surplus Declaration at Property Level#5119

Merged
eddherrera merged 12 commits intobcgov:devfrom
eddherrera:psp-10953
Dec 24, 2025
Merged

PSP-10953 : Surplus Declaration at Property Level#5119
eddherrera merged 12 commits intobcgov:devfrom
eddherrera:psp-10953

Conversation

@eddherrera
Copy link
Collaborator

No description provided.

@eddherrera eddherrera requested a review from asanchezr December 12, 2025 23:17
@eddherrera eddherrera self-assigned this Dec 12, 2025
Herrera added 2 commits December 15, 2025 13:20
# Conflicts:
#	source/backend/api/Controllers/LookupController.cs
#	source/backend/dal/Repositories/Interfaces/ILookupRepository.cs
#	source/backend/dal/Repositories/LookupRepository.cs
#	source/backend/dal/Repositories/PropertyRepository.cs
#	source/frontend/src/constants/API.ts
#	source/frontend/src/features/mapSideBar/property/tabs/propertyDetails/update/models/UpdatePropertyDetailsFormModel.ts
#	source/frontend/src/mocks/lookups.mock.ts
Copy link
Collaborator

@devinleighsmith devinleighsmith left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please address codeql warnings.

@devinleighsmith
Copy link
Collaborator

@eddherrera are you aware that this is still in draft? please complete this ticket before working on bugs.

@eddherrera eddherrera marked this pull request as ready for review December 19, 2025 19:50
this.PropertyAreaUnitTypeCodeNavigation = areaUnit ?? throw new ArgumentNullException(nameof(areaUnit));
this.PropertyAreaUnitTypeCode = areaUnit.Id;
Pid = pid > 0 ? pid : null;
PropertyTypeCodeNavigation = type ?? throw new ArgumentNullException(nameof(type));

Check warning

Code scanning / CodeQL

Virtual call in constructor or destructor Warning

Avoid virtual calls in a constructor or destructor.
Pid = pid > 0 ? pid : null;
PropertyTypeCodeNavigation = type ?? throw new ArgumentNullException(nameof(type));
PropertyTypeCode = type.Id;
Address = address ?? throw new ArgumentNullException(nameof(address));

Check warning

Code scanning / CodeQL

Virtual call in constructor or destructor Warning

Avoid virtual calls in a constructor or destructor.
PropertyTypeCode = type.Id;
Address = address ?? throw new ArgumentNullException(nameof(address));
AddressId = address.AddressId;
RegionCode = address.RegionCode.Value;

Check warning

Code scanning / CodeQL

Dereferenced variable may be null Warning

Variable
address.RegionCode
may be null at this access because it has a nullable type.
Address = address ?? throw new ArgumentNullException(nameof(address));
AddressId = address.AddressId;
RegionCode = address.RegionCode.Value;
DistrictCode = address.DistrictCode.Value;

Check warning

Code scanning / CodeQL

Dereferenced variable may be null Warning

Variable
address.DistrictCode
may be null at this access because it has a nullable type.
AddressId = address.AddressId;
RegionCode = address.RegionCode.Value;
DistrictCode = address.DistrictCode.Value;
PimsPropPropTenureTyps = new List<PimsPropPropTenureTyp>() { tenure };

Check warning

Code scanning / CodeQL

Virtual call in constructor or destructor Warning

Avoid virtual calls in a constructor or destructor.
RegionCode = address.RegionCode.Value;
DistrictCode = address.DistrictCode.Value;
PimsPropPropTenureTyps = new List<PimsPropPropTenureTyp>() { tenure };
PropertyAreaUnitTypeCodeNavigation = areaUnit ?? throw new ArgumentNullException(nameof(areaUnit));

Check warning

Code scanning / CodeQL

Virtual call in constructor or destructor Warning

Avoid virtual calls in a constructor or destructor.
this.PropertyDataSourceEffectiveDate = DateOnly.FromDateTime(dataSourceEffectiveDate);
this.PropertyStatusTypeCodeNavigation = status ?? throw new ArgumentNullException(nameof(status));
this.PropertyStatusTypeCode = status.Id;
PropertyDataSourceTypeCodeNavigation = dataSource ?? throw new ArgumentNullException(nameof(dataSource));

Check warning

Code scanning / CodeQL

Virtual call in constructor or destructor Warning

Avoid virtual calls in a constructor or destructor.
PropertyDataSourceTypeCodeNavigation = dataSource ?? throw new ArgumentNullException(nameof(dataSource));
PropertyDataSourceTypeCode = dataSource.Id;
PropertyDataSourceEffectiveDate = DateOnly.FromDateTime(dataSourceEffectiveDate);
PropertyStatusTypeCodeNavigation = status ?? throw new ArgumentNullException(nameof(status));

Check warning

Code scanning / CodeQL

Virtual call in constructor or destructor Warning

Avoid virtual calls in a constructor or destructor.
@github-actions
Copy link
Contributor

See CodeCov Report Here: https://app.codecov.io/github/bcgov/psp/pull/5119

@sonarqubecloud
Copy link

@github-actions
Copy link
Contributor

See CodeCov Report Here: https://app.codecov.io/github/bcgov/psp/pull/5119

@github-actions
Copy link
Contributor

See CodeCov Report Here: https://app.codecov.io/github/bcgov/psp/pull/5119

1 similar comment
@github-actions
Copy link
Contributor

See CodeCov Report Here: https://app.codecov.io/github/bcgov/psp/pull/5119

@eddherrera eddherrera added this pull request to the merge queue Dec 23, 2025
Merged via the queue into bcgov:dev with commit 0f6eff1 Dec 24, 2025
16 checks passed
@eddherrera eddherrera deleted the psp-10953 branch January 7, 2026 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants