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

MPDX-8496 - Replace hard coded emails with env variables #1227

Merged
merged 5 commits into from
Dec 19, 2024

Conversation

dr-bizz
Copy link
Contributor

@dr-bizz dr-bizz commented Dec 13, 2024

Description

Remove all hardcoded emails from MPDX and replace them with variables so non-Cru organisations can use their emails without editing the source code.

We don't need to add any new variables to our Amplify as the default values are the ones we use.

This was spotted on Jira task MPDX-8492 and PR #1216

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

@dr-bizz dr-bizz requested a review from canac December 13, 2024 17:34
@dr-bizz dr-bizz added the Preview Environment Add this label to create an Amplify Preview label Dec 13, 2024
Copy link
Contributor

Preview branch generated at https://add-donor-services-email-env.d3dytjb8adxkk5.amplifyapp.com

Copy link
Contributor

github-actions bot commented Dec 13, 2024

Bundle sizes [mpdx-react]

Compared against eaf5e36

No significant changes found

Copy link
Contributor

@canac canac left a comment

Choose a reason for hiding this comment

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

Should we mention the new variables in the readme?

Copy link
Contributor

@canac canac left a comment

Choose a reason for hiding this comment

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

Tested locally and it worked. I have a few recommendations in the comments here and in my previous review.

@dr-bizz
Copy link
Contributor Author

dr-bizz commented Dec 13, 2024

I have used the donor account IDs as I couldn't find the partner account ID you mentioned.

@dr-bizz dr-bizz requested a review from canac December 13, 2024 20:08
Copy link

@codescene-delta-analysis codescene-delta-analysis bot left a comment

Choose a reason for hiding this comment

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

Code Health Quality Gates: FAILED

Change in average Code Health of affected files: -0.01 (9.59 -> 9.58)

  • Declining Code Health: 2 findings(s) 🚩

View detailed results in CodeScene

Copy link

@codescene-delta-analysis codescene-delta-analysis bot left a comment

Choose a reason for hiding this comment

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

Code Health Quality Gates: FAILED

Change in average Code Health of affected files: -0.01 (9.59 -> 9.58)

  • Declining Code Health: 1 findings(s) 🚩

View detailed results in CodeScene

@@ -1,6 +1,16 @@
query ContactSource($accountListId: ID!, $contactId: ID!) {
query Contact($accountListId: ID!, $contactId: ID!) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why the rename? Honestly ContactSource seems like a more descriptive name for this operation.

Copy link
Contributor

Choose a reason for hiding this comment

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

⬆️ @dr-bizz Did you see this comment?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I changed it because we're getting more info than just the contactSource, we're now getting all the people on the contact

next.config.ts Show resolved Hide resolved
Copy link
Contributor

@canac canac left a comment

Choose a reason for hiding this comment

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

I'm going to approve, but I think it would be good to document the new variables in the readme before merging.

@dr-bizz dr-bizz force-pushed the add-donor-services-email-env branch from ab74387 to 1f91215 Compare December 19, 2024 19:40
@dr-bizz dr-bizz merged commit e2bbe01 into main Dec 19, 2024
20 checks passed
@dr-bizz dr-bizz deleted the add-donor-services-email-env branch December 19, 2024 21:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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