Conversation
de875a2 to
d171ad1
Compare
jessieay
left a comment
There was a problem hiding this comment.
Some general comments from me -- looking good! 🚃
app/controllers/voice_controller.rb
Outdated
There was a problem hiding this comment.
since this is a constant, what about naming it something clearer rather than requiring comment? eg: NUMBER_OF_TIMES_USER_CAN_REPEAT_CODE
app/services/basic_auth_url.rb
Outdated
There was a problem hiding this comment.
I'll remove it
app/views/voice/otp.xml.slim
Outdated
There was a problem hiding this comment.
woah! I have never seen an .xml.slim file before! 😎
There was a problem hiding this comment.
Yeah I'm open to .xml.erb-ing this too? I figured since it's a dealbreaker to have malformed XML for the Twilio API, I'd make it harder to mess up? But I find ERBs easier to read sometimes
config/environments/production.rb
Outdated
There was a problem hiding this comment.
does this mean we remove protocol from L 19 now?
There was a problem hiding this comment.
Unsure, this is for the router, and that's for the mailer...maybe the router encompasses the mailer?
There was a problem hiding this comment.
not sure I understand this: too low for what?
There was a problem hiding this comment.
So we want to limit the # of times the call can be looped, so I track this state via a URL parameter. When the the repeat_count tracks the value and counts down, so maybe I just should have specified "when the repeat_count gets to 1" -- will fix
app/views/voice/otp.xml.slim
Outdated
There was a problem hiding this comment.
is there a way to provide multiple language options with twilio?
There was a problem hiding this comment.
I need to move this to be i18ned just like the message.
Twilio supports speaking in multiple languages, but we'd have to script the choice behavior, or get a language preference from the user ahead of time and just send that: https://support.twilio.com/hc/en-us/articles/223132827-What-languages-can-the-Say-verb-speak-
There was a problem hiding this comment.
we are still sending the same message, shouldn't we still check for it in our specs?
There was a problem hiding this comment.
So now we're sending a URL to our own servers, and the response of that URL contains the message. The URL no longer contains the entire message anymore, so I figured I'd check for the most important part of the URL, which is the code parameter?
spec/services/basic_auth_url_spec.rb
Outdated
There was a problem hiding this comment.
would it make sense to interpolate the ENV vals in this string to make it more obvious what is going on here? Or would that obfuscate more than clarify?
There was a problem hiding this comment.
I think it would obfuscate? I'll leave as-is for now?
app/controllers/voice_controller.rb
Outdated
There was a problem hiding this comment.
nice! If were me I would probably just make this line its own private method, but up to you.
fb647d4 to
474c512
Compare
474c512 to
f7152d6
Compare
a45dd52 to
5696ddf
Compare
5696ddf to
d4d8d24
Compare
|
@jessieay I believe this is unblocked now (going to deploy once more to test it) -- can you give it one last review? |
d4d8d24 to
fc6b432
Compare
jessieay
left a comment
There was a problem hiding this comment.
💯 -- obv we should manually test, but code looks good to me!
| ) | ||
| end | ||
|
|
||
| def twimlet_url(code) # rubocop:disable Metrics/MethodLength |
There was a problem hiding this comment.
👏 glad to be done with this crazy method
fed066d to
c995f38
Compare
**Why**: So we can add "press 1 to repeat" behavior for a limited number of retries
c995f38 to
613afe9
Compare
**Why**: Follow more rails-y naming conventions
|
Confirmed once more on dev, merging! |
Why:
So we can add "press 1 to repeat" behavior
(This is currently blocked on some
Twilio integration SSL certificate issuesbasic auth environment variable configuration)--
update! unblocked!