You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Validate variables in CSV do not exceed daily limit (#278)
* Validate variables in CSV do not exceed daily limit
- Added has_message_too_long property to the Row class
- Added message_to_long variable to the Cell class with accompanying property content_length_error to identify a cell with the aformentioned error
- Added a check to the RecipientCSV class that checks if a variable in a CSV exceeds the message limit of 612 when added to the template content
* Add validate_sms_message_length
- Raise an execption when length is exceeded
- Bubble exception message up to the UI for rendering
* Check if combined variable content exceeds sms limit
* Add tests
- Removed message_too_long_error from the Cell class
* Remove unneeded property
* Use SMS_CHAR_COUNT_LIMIT instead of hard coded value
Co-authored-by: Jimmy Royer <jimleroyer@gmail.com>
* Use SMS_CHAR_COUNT_LIMIT instead of hard coded value
* Use generators properly
- Updated rows_with_combined_variable_content_too_long make use of generators properly
- Removed None check
* Bump utils + waffles version
---------
Co-authored-by: Jimmy Royer <jimleroyer@gmail.com>
0 commit comments