Page MenuHomePhabricator

Add infrastructure for sending SMS via AWS SNS
ClosedPublic

Authored by amckinley on Jan 16 2019, 7:09 PM.
Tags
None
Referenced Files
F15397233: D19982.diff
Sun, Mar 16, 7:04 PM
F15386810: D19982.diff
Sat, Mar 15, 1:19 AM
F15282869: D19982.id47824.diff
Tue, Mar 4, 3:15 AM
F15282868: D19982.id47827.diff
Tue, Mar 4, 3:15 AM
F15282867: D19982.id47825.diff
Tue, Mar 4, 3:15 AM
F15282866: D19982.id47826.diff
Tue, Mar 4, 3:15 AM
Unknown Object (File)
Sun, Mar 2, 6:07 PM
Unknown Object (File)
Mon, Feb 24, 9:17 AM
Subscribers

Details

Summary

Ref T920. Ref T13235. This adds a Future, similar to TwilioFuture, for interacting with Amazon's SNS service.

Also updates the documentation.

Also makes the code consistent with the documentation by accepting a media argument.

Test Plan

Clicked the "send test message" button from the Settings UI.

Diff Detail

Repository
rP Phabricator
Branch
sms-redux
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 21537
Build 29355: Run Core Tests
Build 29354: arc lint + arc unit

Event Timeline

Clean up to work like TwilioFuture.

amckinley edited the test plan for this revision. (Show Details)
epriestley added inline comments.
src/applications/metamta/future/PhabricatorAmazonSNSFuture.php
4 ↗(On Diff #47825)

Is this actually used?

5 ↗(On Diff #47825)

Doesn't necessarily need to be in this diff, but can we put this in PhutilAWSFuture?

src/docs/user/configuration/configuring_outbound_email.diviner
100 ↗(On Diff #47825)

(I'll hit this document a bit more broadly for SMS in general at some point, too.)

216 ↗(On Diff #47825)

Link to SES instead of SNS?

220 ↗(On Diff #47825)

"to the SES configuration"?

src/infrastructure/cluster/config/PhabricatorClusterMailersConfigType.php
48 ↗(On Diff #47825)

Ah, thanks.

This revision is now accepted and ready to land.Jan 24 2019, 12:12 AM
amckinley added inline comments.
src/applications/metamta/future/PhabricatorAmazonSNSFuture.php
4 ↗(On Diff #47825)

If I implemented getProxiedFuture correctly, I think so?

5 ↗(On Diff #47825)

Yeah, good idea.

src/docs/user/configuration/configuring_outbound_email.diviner
216 ↗(On Diff #47825)

Hahah I noticed both of these right after submitting.

Oh, I see what's going on with parameters, the base class is just a little bit unusual. Carry on.

This revision was automatically updated to reflect the committed changes.
amckinley marked an inline comment as done.