Skip to content

Jameson/CT-1374 - #147

Merged
Jameson13B merged 16 commits into
masterfrom
jameson/CT-1374
Jul 16, 2025
Merged

Jameson/CT-1374#147
Jameson13B merged 16 commits into
masterfrom
jameson/CT-1374

Conversation

@Jameson13B

Copy link
Copy Markdown
Collaborator

https://mxcom.atlassian.net/browse/CT-1374

Changes

  • When hitting a GET member endpoint, we now pass the client locale. This allows user_message returned for errors to be translated correctly.
  • ActionableError now uses the member.error object to determine an error instead of member.most_recent_job_detail_code.
  • ActionableError now uses the the translated user_message from the error object instead of local string.

Testing instructions

  • Run all tests.
  • Try to connect a member in verification mode. Connect a member that doesn't have DDA accounts.
    • Ensure the ActionableError view renders.
  • Load connect in verification mode with member guid from above.
    • Ensure the ActionableError view renders.
  • Load connect in verification mode, with member guid from above, and locale set to es.
    • Ensure the ActionableError view renders and all text is translated to Spanish.

@Jameson13B Jameson13B self-assigned this May 27, 2025
@Jameson13B Jameson13B added the Needs Review This item needs review label May 27, 2025
@ash-wright123

ash-wright123 commented May 30, 2025

Copy link
Copy Markdown
Collaborator

It tests well for me, but if there is no DDA accounts does it make sense for the try again to just keep trying to run the job?
Screenshot 2025-05-30 at 4 29 24 PM

Or maybe this is not the correct view? It just seems like I get stuck on this page.

@ash-wright123

Copy link
Copy Markdown
Collaborator

Okay after testing with cypress the above is not what the screen is supposed to look like the error I got must be different. However the iavNonDDA cypress test is failing so that will need to be fixed on the MX connect side.

ash-wright123
ash-wright123 previously approved these changes May 30, 2025
… message

ActionableError used to read member.most_recent_job_detail_code. We now read member.error which
includes the code, user message, etc. The user message also comes back translated based off the
"Accept-Language" header when hitting the GET member(s) endpoints.

BREAKING CHANGE: ActionableError is reading an new field from the API. Consumers will need to update
their API to provide this new field before updating.

@mwclemy mwclemy left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good to me. I couldn't run E2E since Sand is having issues.
Let's see how things go in QA.

@Jameson13B
Jameson13B merged commit 623c841 into master Jul 16, 2025
3 checks passed
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 1.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants