Skip to content
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

psp-7275 complete a disposition file. psp-7785, psp-7322, psp-7568 #3740

Merged
merged 7 commits into from
Feb 10, 2024

Conversation

devinleighsmith
Copy link
Collaborator

No description provided.

@devinleighsmith devinleighsmith added the enhancement New feature or request label Jan 24, 2024
@devinleighsmith devinleighsmith self-assigned this Jan 24, 2024
Copy link
Contributor

✅ No secrets were detected in the code.

Copy link

codecov bot commented Jan 24, 2024

Codecov Report

Attention: 257 lines in your changes are missing coverage. Please review.

Comparison is base (8aff318) 75.62% compared to head (da798ff) 75.58%.
Report is 39 commits behind head on dev.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##              dev    #3740      +/-   ##
==========================================
- Coverage   75.62%   75.58%   -0.04%     
==========================================
  Files        1447     1448       +1     
  Lines       37650    38373     +723     
  Branches     7062     7271     +209     
==========================================
+ Hits        28473    29006     +533     
- Misses       8899     9073     +174     
- Partials      278      294      +16     
Flag Coverage Δ
unittests 75.58% <72.42%> (-0.04%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
...sposition/Controllers/DispositionFileController.cs 92.00% <100.00%> (+0.18%) ⬆️
...api/Areas/Property/Controllers/SearchController.cs 59.25% <100.00%> (ø)
...kend/api/Helpers/Extensions/PrincipalExtensions.cs 100.00% <100.00%> (+18.75%) ⬆️
...rce/backend/api/Services/AcquisitionFileService.cs 75.20% <100.00%> (+1.07%) ⬆️
...els/Concepts/DispositionFile/DispositionFileMap.cs 100.00% <100.00%> (ø)
...epts/DispositionFile/DispositionFilePropertyMap.cs 100.00% <100.00%> (ø)
...Concepts/DispositionFile/DispositionFileSaleMap.cs 100.00% <100.00%> (ø)
...ispositionFile/DispositionSalePurchaserAgentMap.cs 100.00% <ø> (ø)
...sitionFile/DispositionSalePurchaserSolicitorMap.cs 100.00% <ø> (ø)
.../apimodels/Models/Concepts/Property/PropertyMap.cs 100.00% <100.00%> (ø)
... and 66 more

... and 1 file with indirect coverage changes

Copy link
Contributor

✅ No secrets were detected in the code.

&& dispositionFile.DispositionFileStatusTypeCode == EnumDispositionFileStatusTypeCode.COMPLETE.ToString()
&& currentDispositionFile.PimsDispositionFileProperties.Count > 0)
{
DisposeofProperties(dispositionFile);
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit disposeOfProperties

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this is a function, why would it be lowercase?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I meant capitalization of the O in Of

Comment on lines 119 to 130
else if (currentDispositionFile.DispositionFileStatusTypeCode != EnumDispositionFileStatusTypeCode.COMPLETE.ToString()
&& dispositionFile.DispositionFileStatusTypeCode == EnumDispositionFileStatusTypeCode.COMPLETE.ToString()
&& currentDispositionFile.PimsDispositionFileProperties.Count > 0)
Copy link
Collaborator

Choose a reason for hiding this comment

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

this looks like good logic to be put in a different solver

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

To be honest I'd rather we discuss the "solver" pattern. I think that pattern was added to the code base without a group discussion.

Copy link
Collaborator

@FuriousLlama FuriousLlama Jan 26, 2024

Choose a reason for hiding this comment

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

good point!

Copy link
Collaborator

Choose a reason for hiding this comment

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

Wouldn't have been better creating extension methods for the Disposition File instead of creating the "solver" approach to determine the Disposition file operability?

Copy link
Contributor

✅ No secrets were detected in the code.

Copy link
Contributor

✅ No secrets were detected in the code.

Copy link
Contributor

github-actions bot commented Feb 9, 2024

✅ No secrets were detected in the code.

Copy link
Contributor

github-actions bot commented Feb 9, 2024

✅ No secrets were detected in the code.

Smith added 3 commits February 9, 2024 14:03
# Conflicts:
#	source/frontend/src/features/mapSideBar/disposition/tabs/fileDetails/detail/DispositionSummaryView.test.tsx
#	source/frontend/src/features/mapSideBar/disposition/tabs/fileDetails/detail/update/UpdateDispositionForm.test.tsx
#	source/frontend/src/features/mapSideBar/disposition/tabs/fileDetails/detail/update/__snapshots__/UpdateDispositionForm.test.tsx.snap
#	source/frontend/src/features/mapSideBar/disposition/tabs/offersAndSale/OffersAndSaleView.test.tsx
Copy link
Contributor

github-actions bot commented Feb 9, 2024

✅ No secrets were detected in the code.

@devinleighsmith devinleighsmith changed the title psp-7275 complete a disposition file. psp-7275 complete a disposition file. psp-7785, psp-7322, psp-7568 Feb 9, 2024
Copy link
Contributor

✅ No secrets were detected in the code.

Copy link
Contributor

✅ No secrets were detected in the code.

@devinleighsmith devinleighsmith merged commit a4b712f into bcgov:dev Feb 10, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants