-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> * 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 <[email protected]>
- Loading branch information
1 parent
c0549f0
commit 7385bbc
Showing
5 changed files
with
91 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
docopt==0.6.2 | ||
Flask==2.3.3 | ||
markupsafe==2.1.4 | ||
git+https://github.com/cds-snc/[email protected].5#egg=notifications-utils | ||
git+https://github.com/cds-snc/[email protected].6#egg=notifications-utils |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters