VizAlerts
VizAlerts copied to clipboard
Email white-listing preference (enhancement)
Have the option to allow simple email address white-listing like what was used in version 1.0 or allow the option to use the current version 2.0 regex method.
Reason: Regex is a programmers mindset. It is a funky "language" and can get rather complex and cryptic. Simple environments or those concerned with only a couple (or just one) email address would benefit with the ease-of-use of the v.1.0 method.
New users clearly struggle with the regex. I wonder if we can keep the regex, but focus on making it easier to get started and cover the most general use cases without it. An example of something we could do might be altering the allowed_recipient_addresses field so that instead of simply passing through the default parameter value for that setting, we auto-escape special characters such as "." and other stuff that might show up in an email. So for setup, the user could be instructed to simply enter their domain in the parameter value on the dashboard, say:
tableau\.com
The calc would then be something like REPLACE([param],'.',,'), which would result in:
tableau.com
We could actually use REGEX_REPLACE to do all the special characters at once. And even replace ",;" with "|" so that:
tableau.com,tableausoftware.com
would be interpreted as:
tableau\.com|tableausoftware\.com
...which is basically how things worked before, in v1.x
If anyone wanted to get more advanced and use real regex, they could still do it simply by editing the calc and putting their own values in.
We might also be able to help by adding some better messaging in the failure emails that are sent, with links out to regexr.com or something to help them troubleshoot.
What do you think of that approach, Toby? Good compromise to enhance basic usability, or getting too fancy for my own britches? :)
Too fancy and will cause additional confusion for those who do know regex. I would vote for the "better messaging" option if that was the only other choice.