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

use empty string for empty pool id #2191

Merged
merged 1 commit into from
Jun 5, 2024
Merged

use empty string for empty pool id #2191

merged 1 commit into from
Jun 5, 2024

Conversation

sastels
Copy link
Collaborator

@sastels sastels commented Jun 5, 2024

Summary | Résumé

We have

os.getenv("AWS_PINPOINT_DEFAULT_POOL_ID", None)

However if in our env var file we have

AWS_PINPOINT_DEFAULT_POOL_ID=

Then the pool id will be set to the empty string which will cause an error later on. Here we use the empty string instead of None as a default value.

Related Issues | Cartes liées

Test instructions | Instructions pour tester la modification

Set

AWS_PINPOINT_SC_POOL_ID = "pool-b20333ce1e4e49309ba1db3bf94a3f57"
AWS_PINPOINT_SC_TEMPLATE_IDS = <one of your templates>
AWS_PINPOINT_DEFAULT_POOL_ID=

Send an sms with the template listed and one with a different template. All SMS should be delivered with no errors. the one from the sc template should be sent with Pinpoint.

Now set

AWS_PINPOINT_SC_POOL_ID=

and send with the sc template. The sms should send with no errors from SNS.

Release Instructions | Instructions pour le déploiement

None.

Reviewer checklist | Liste de vérification du réviseur

  • This PR does not break existing functionality.
  • This PR does not violate GCNotify's privacy policies.
  • This PR does not raise new security concerns. Refer to our GC Notify Risk Register document on our Google drive.
  • This PR does not significantly alter performance.
  • Additional required documentation resulting of these changes is covered (such as the README, setup instructions, a related ADR or the technical documentation).

⚠ If boxes cannot be checked off before merging the PR, they should be moved to the "Release Instructions" section with appropriate steps required to verify before release. For example, changes to celery code may require tests on staging to verify that performance has not been affected.

@sastels sastels marked this pull request as ready for review June 5, 2024 18:10
@sastels sastels requested review from ben851, jimleroyer and jzbahrai June 5, 2024 18:13
Copy link
Contributor

@ben851 ben851 left a comment

Choose a reason for hiding this comment

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

LGTM

@sastels sastels merged commit 63b6e2d into main Jun 5, 2024
4 checks passed
@sastels sastels deleted the tweak-pool-config-check branch June 5, 2024 18:32
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