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 the shortcode pool for Notify SMS #2213

Merged
merged 8 commits into from
Jul 11, 2024
Merged

Use the shortcode pool for Notify SMS #2213

merged 8 commits into from
Jul 11, 2024

Conversation

sastels
Copy link
Collaborator

@sastels sastels commented Jul 9, 2024

Summary | Résumé

Use the shortcode pool for GC Notify's SMS.

Related Issues | Cartes liées

Test instructions | Instructions pour tester la modification

Send SMS from the GC Notify service. Should be from the shortcode pool.

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 July 9, 2024 19:57
@sastels sastels requested review from a team, jimleroyer, ben851 and P0NDER0SA and removed request for a team July 9, 2024 19:57
if template_id is not None and str(template_id) in self.current_app.config["AWS_PINPOINT_SC_TEMPLATE_IDS"]:
use_shortcode_pool = (
str(template_id) in self.current_app.config["AWS_PINPOINT_SC_TEMPLATE_IDS"]
or str(service_id) == self.current_app.config["NOTIFY_SERVICE_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 don't we just put the notify service id in the AWS_PINPOINT_SC_TEMPLATE_IDS?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We could but we plan to move away from this env var entirely and have the pool choice be more dynamic. The NOTIFY_SERVICE_ID variable already exists so this way we don't need to change AWS_PINPOINT_SC_TEMPLATE_IDS and can eventually remove it.

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

Copy link
Member

@jimleroyer jimleroyer 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 ad135c8 into main Jul 11, 2024
4 checks passed
@sastels sastels deleted the notify-uses-shortcode branch July 11, 2024 17:57
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.

3 participants