Conversation
* Troubleshooting options: link to SP should be in new tab
| * heading_tag: Tag name for heading. Does not affect visual appearance. Defaults to :h2. | ||
| * heading: Heading text. | ||
| * options: List of link options to display, as an array of hashes with `url`, `text`, `external` values. | ||
| * options: List of link options to display, as an array of hashes with `url`, `text`, `new_tab` values. |
There was a problem hiding this comment.
Whoops 😅 Thanks for fixing.
Interestingly, for reasons I cannot recall, we call it both things in the JSX implementation 🤔
| response.error.is_a?(OptOutError) || | ||
| response.error.is_a?(PermanentFailureError) |
There was a problem hiding this comment.
Should we consider the SMS opt-in configuration in deciding to fail fast or allow failover?
There was a problem hiding this comment.
Do you mean IdentityConfig.store.allow_sms_resubscribe? Or something else?
There was a problem hiding this comment.
Do you mean
IdentityConfig.store.allow_sms_resubscribe? Or something else?
Yes. In other words, should this logic only apply if we're allowing SMS resubscribe in the environment?
There was a problem hiding this comment.
My thinking is no, this logic should apply always, opt out means "don't send me SMS" so I think we don't want to failover or retry if we get that response.
We have older opt-out detecting logic that shows a flash error "you have opted out" (that isn't actionable), so this would result in that
| return response if response.success? | ||
| if response.success? || | ||
| response.error.is_a?(OptOutError) || | ||
| response.error.is_a?(PermanentFailureError) |
There was a problem hiding this comment.
For considering PermanetnFailureError, should we limit it to the cases like what we're matching with this logic?
identity-idp/lib/telephony/pinpoint/sms_sender.rb
Lines 177 to 183 in 12f214f
On the other hand, if it is a permanent failure, regardless the specific, maybe we don't want failover anyways.
There was a problem hiding this comment.
So... that logic you linked turns PERMANENT_FAILURE into OptOutError classes (because it seemed to be logically what it was representing)
I figure other permanent failures might include numbers that don't exist, or something so they seemed worth terminating on as well:
https://docs.aws.amazon.com/pinpoint/latest/apireference/apps-application-id-messages.html
Some follow-ups to #5894 based on testing we did today