Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

qhanson55
Copy link
Contributor

Description

Fixed incorrect enquiry and submission search for contact history so that contacts with no user attachment have correct history and so that any nav created submissions are still connected to the correct contact.

Types of changes

Bug fix (non-breaking change which fixes an issue)

Checklist

  • I have read the CONTRIBUTING doc
  • I have checked that unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

Further comments

Copy link

github-actions bot commented Mar 7, 2025

Coverage Report (Frontend)

Totals Coverage
Statements: 45.59% ( 3408 / 7475 )
Methods: 34.72% ( 434 / 1250 )
Lines: 53.1% ( 1969 / 3708 )
Branches: 39.93% ( 1005 / 2517 )

Copy link

github-actions bot commented Mar 7, 2025

Coverage Report (Application)

Totals Coverage
Statements: 43.56% ( 1389 / 3189 )
Methods: 38.08% ( 206 / 541 )
Lines: 56.29% ( 900 / 1599 )
Branches: 26.98% ( 283 / 1049 )

Comment on lines 14 to 16
getContact(contactId: string, includeActivities?: boolean): Promise<AxiosResponse> {
const params = includeActivities === undefined ? {} : { includeActivities };
return appAxios().get(`${PATH}/${contactId}`, { params });
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could default includeActivities to false?

@qhanson55 qhanson55 force-pushed the bug/contact-history-search branch from e2b0b9e to 07cd53c Compare March 11, 2025 17:31
@qhanson55 qhanson55 force-pushed the bug/contact-history-search branch from 07cd53c to e63fe16 Compare March 11, 2025 18:59
Comment on lines 190 to 199
<Column
field="intakeStatus"
field="applicationStatus"
header="Activity status"
:sortable="true"
style="min-width: 150px"
/>
>
<template #body="{ data }">
{{ 'submissionId' in data ? data.applicationStatus : data.enquiryStatus }}
</template>
</Column>
Copy link
Collaborator

@kyle1morel kyle1morel Mar 11, 2025

Choose a reason for hiding this comment

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

Sorting will not work with enquiry status here as the field will be undefined. I think the only way to get around this though is to create two separate columns, or merge the two data points into one before mounting.

@qhanson55 qhanson55 force-pushed the bug/contact-history-search branch 3 times, most recently from 4136122 to aa7c78d Compare March 11, 2025 20:14
…ded removable sort for all data tables with sorting
@qhanson55 qhanson55 force-pushed the bug/contact-history-search branch from aa7c78d to 7654460 Compare March 11, 2025 20:57
@kyle1morel kyle1morel merged commit 74bb804 into master Mar 11, 2025
19 checks passed
@kyle1morel kyle1morel deleted the bug/contact-history-search branch March 11, 2025 21:02
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.

3 participants