Skip to content

CHI-3279: Fix referencing for timelines to prevent issues with case search results going blank. Fix orphaned case check #2952

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

Open
wants to merge 23 commits into
base: v2.30-rc
Choose a base branch
from

Conversation

stephenhand
Copy link
Collaborator

Description

  • Fix issue where contact data needed for displaying search results was dereferenced prematurely
  • Fix logic to determine an orphaned case
  • Use placeholder label for cases with no label or contact with required to make a substitute label

Checklist

  • Corresponding issue has been opened
  • New tests added
  • [n/a] Feature flags added
  • [n/a] Strings are localized
  • Tested for chat contacts
  • Tested for call contacts

Other Related Issues

None

Verification steps

AFTER YOU MERGE

  1. Cut a release tag using the Github workflow. Wait for it to complete and notify in the #aselo-deploys Slack channel.
  2. Comment on the ticket with the release tag version AND any additional instructions required to configure an environment to test the changes.
  3. Only then move the ticket into the QA column in JIRA

You are responsible for ensuring the above steps are completed. If you move a ticket into QA without advising what version to test, the QA team will assume the latest tag has the changes. If it does not, the following confusion is on you! :-P

…ries

CHI-3279 Remove categories & connected contacts from typesz
…filter

CHI-3279: Remove categories filter
@stephenhand stephenhand requested review from GPaoloni and mythilytm May 2, 2025 16:32
@stephenhand stephenhand changed the base branch from master to v2.30-rc May 16, 2025 16:33
@@ -145,7 +132,8 @@ export async function getCaseTimeline(
if (isApiCaseSectionTimelineActivity(timelineActivity)) {
activity = convertApiCaseSectionToCaseSection(activity);
} else if (isApiContactTimelineActivity(timelineActivity)) {
activity = convertApiContactToFlexContact(activity);
// Bug in HRTM strips the caseId from the contact activity, workaround here adds it back
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we address this?

Comment on lines +118 to +128
newGetTimelineAsyncAction(
connectedCase.id,
'print-contacts',
[],
true,
{
offset: 0,
limit: MAX_PRINTOUT_CONTACTS,
},
`case-${connectedCase.id}`,
),
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 be easier to expose a useGetTimeline hook, rather than using this over and over in different useEffects?

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