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

Acquisition File Header | psp-6936 #3507

Merged
merged 5 commits into from
Oct 7, 2023

Conversation

FuriousLlama
Copy link
Collaborator

No description provided.

@FuriousLlama FuriousLlama self-assigned this Oct 6, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Oct 6, 2023

✅ No secrets were detected in the code.

1 similar comment
@github-actions
Copy link
Contributor

github-actions bot commented Oct 6, 2023

✅ No secrets were detected in the code.

@codecov
Copy link

codecov bot commented Oct 6, 2023

Codecov Report

Merging #3507 (68c361d) into dev (f6d6e3f) will decrease coverage by 0.82%.
The diff coverage is 7.26%.

Impacted file tree graph

@@            Coverage Diff             @@
##              dev    #3507      +/-   ##
==========================================
- Coverage   71.25%   70.44%   -0.82%     
==========================================
  Files        1341     1341              
  Lines       31969    32369     +400     
  Branches     6012     6019       +7     
==========================================
+ Hits        22781    22802      +21     
- Misses       8941     9320     +379     
  Partials      247      247              
Flag Coverage Δ
unittests 70.44% <7.26%> (-0.82%) ⬇️

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

Files Coverage Δ
...eatures/mapSideBar/acquisition/AcquisitionView.tsx 47.16% <100.00%> (ø)
...apSideBar/acquisition/common/AcquisitionHeader.tsx 100.00% <100.00%> (ø)
...apSideBar/acquisition/router/AcquisitionRouter.tsx 54.54% <ø> (+8.39%) ⬆️
...src/features/mapSideBar/context/sidebarContext.tsx 60.34% <100.00%> (+0.69%) ⬆️
...es/mapSideBar/property/tabs/takes/update/models.ts 90.00% <ø> (ø)
...ontend/src/hooks/pims-api/useApiAcquisitionFile.ts 32.35% <100.00%> (+2.04%) ⬆️
...d/src/hooks/repositories/useAcquisitionProvider.ts 68.88% <100.00%> (+1.44%) ⬆️
...apSideBar/acquisition/tabs/AcquisitionFileTabs.tsx 79.54% <66.66%> (-0.95%) ⬇️
...n/tabs/expropriation/ExpropriationTabContainer.tsx 62.50% <50.00%> (-2.72%) ⬇️
...tabs/expropriation/form8/add/AddForm8Container.tsx 75.67% <50.00%> (-2.11%) ⬇️
... and 8 more

@FuriousLlama FuriousLlama added the enhancement New feature or request label Oct 6, 2023
@devinleighsmith
Copy link
Collaborator

mild issue, but worth mentioning, when I modify properties on an acq file I see two requests to updateinfo.

@devinleighsmith
Copy link
Collaborator

doesn't seem to affect all entities, checklist updates only fire one updateinfo request.

@devinleighsmith
Copy link
Collaborator

The AC specifies that form8 add update/delete should trigger this but I'm not seeing the request fire.

@devinleighsmith
Copy link
Collaborator

@FuriousLlama same thing with takes, doesn't seem to be wired up.

.ToList();
lastUpdatedByAggregate.AddRange(expPaymentsHistoryLastUpdatedBy);

// Acquisition Compensation Requsition Financials
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: comment.

.ToList();
lastUpdatedByAggregate.AddRange(expPaymentsItemsLastUpdatedBy);

// Acquisition Deleted Compensation Requsition Financials
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: comment

/// </summary>
/// <param name="id"></param>
/// <returns></returns>
public LastUpdatedByModel GetLastUpdateBy(long id)
Copy link
Collaborator

Choose a reason for hiding this comment

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

The size of this is a bit of a code smell, but I feel like refactoring this to use some kind of generic method might also be messy. Thoughts?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I agree. For now I rather leave it as is and create a functor later.

@@ -10,7 +10,7 @@ export const TakesYupSchema = Yup.object().shape({
takes: Yup.array().of(
Yup.object().shape({
description: Yup.string().max(4000, 'Description must be at most ${max} characters'),
takeTypeCode: Yup.string().required('Take type is required'),
takeTypeCode: Yup.string().required('Take type is required').nullable(),
Copy link
Collaborator

Choose a reason for hiding this comment

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

hmm?

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 fixes an issue with the take validation where it was showing an error instead of the message

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.

just one weird line there in they yup schema that I wasn't expecting, and then those two sub-entities that I mentioned.

@github-actions
Copy link
Contributor

github-actions bot commented Oct 7, 2023

✅ No secrets were detected in the code.

@github-actions
Copy link
Contributor

github-actions bot commented Oct 7, 2023

✅ No secrets were detected in the code.

@FuriousLlama FuriousLlama merged commit 977165a into bcgov:dev Oct 7, 2023
8 of 9 checks passed
@FuriousLlama FuriousLlama deleted the features/psp-6936 branch October 30, 2023 19:31
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.

2 participants