Skip to content

MPDX-8449 - deleteAppealContact mutation FE fixes #1313

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 4 commits into
base: main
Choose a base branch
from

Conversation

wjames111
Copy link
Contributor

@wjames111 wjames111 commented May 13, 2025

Description

Currently, on the deleteAppealContact mutation, we have to pass in the Appeal's Contact's ID, which is a join table id. Could we change this, so we just have to pass in the contact's ID and the appeal ID?

Currently, we have to loop through all the appeal contacts to find the appeal contact which is associated with the contact the user wants to delete.

This is causing some issues. We can fix those issues, but we think it's best that the FE just sends the contact ID and appeal ID, and the server tracks down the correct Appeal Contact.

Related task:

Helpscout ticket:

Jira Ticket here

Checklist:

  • I have given my PR a title with the format "MPDX-(JIRA#) (summary sentence max 80 chars)"
  • I have applied the appropriate labels. (Add the label "On Staging" to get the branch automatically merged into staging.)
  • I have requested a review from another person on the project

@wjames111 wjames111 marked this pull request as draft May 13, 2025 21:12
Copy link
Contributor

github-actions bot commented May 13, 2025

Bundle sizes [mpdx-react]

Compared against 43fe02b

No significant changes found

@wjames111 wjames111 changed the title MPDX 8449 delete appeal contact MPDX-8449 - deleteAppealContact mutation FE fixes May 13, 2025
@wjames111 wjames111 self-assigned this May 13, 2025
@wjames111 wjames111 added Preview Environment Add this label to create an Amplify Preview On Staging Will be merged to the staging branch by Github Actions labels May 13, 2025
Copy link
Contributor

@wjames111 wjames111 force-pushed the MPDX-8449-delete-appeal-contact branch from 6f7af0b to d1e792b Compare May 13, 2025 21:28
@wjames111 wjames111 requested a review from dr-bizz May 13, 2025 21:29
@wjames111 wjames111 marked this pull request as ready for review May 14, 2025 17:05
@wjames111 wjames111 marked this pull request as draft May 14, 2025 17:05
@wjames111 wjames111 marked this pull request as ready for review May 14, 2025 17:19
@wjames111
Copy link
Contributor Author

Not exactly sure why typescript check is failing or why test chunk is failing. All the tests passed locally.

@dr-bizz
Copy link
Contributor

dr-bizz commented May 16, 2025

@wjames111 TypeScript is failing as the code hasn't been pushed to the API production. These tests hit the production API. This explains how those 2 tests are failing.

Also, I added code, as I need to code. Been looking at emails and in meetings for too long

Copy link
Contributor

@dr-bizz dr-bizz left a comment

Choose a reason for hiding this comment

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

Amazing work on this! Both failing tests are due to the API code is not in production.

The functionality works so well, and this really improves performance.

Thank you for taking this off my plate.

You will need to connect with the backend team to plan for when you both merge the PRs into production. I recommend Monday next week.

@wjames111
Copy link
Contributor Author

Sound good, I'll do that. Thanks @dr-bizz !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
On Staging Will be merged to the staging branch by Github Actions Preview Environment Add this label to create an Amplify Preview
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants