-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1273 from GSA/main
Production Deploy 3/6/2024
- Loading branch information
Showing
30 changed files
with
372 additions
and
347 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,12 +52,14 @@ def get_example_csv_fields(column_headers, use_example_as_example, submitted_fie | |
|
||
def get_example_csv_rows(template, use_example_as_example=True, submitted_fields=False): | ||
return { | ||
"email": ["[email protected]"] | ||
if use_example_as_example | ||
else [current_user.email_address], | ||
"sms": ["12223334444"] | ||
if use_example_as_example | ||
else [current_user.mobile_number], | ||
"email": ( | ||
["[email protected]"] | ||
if use_example_as_example | ||
else [current_user.email_address] | ||
), | ||
"sms": ( | ||
["12223334444"] if use_example_as_example else [current_user.mobile_number] | ||
), | ||
}[template.template_type] + get_example_csv_fields( | ||
( | ||
placeholder | ||
|
@@ -511,12 +513,14 @@ def _check_messages(service_id, template_id, upload_id, preview_row): | |
template=template, | ||
max_initial_rows_shown=50, | ||
max_errors_shown=50, | ||
guestlist=itertools.chain.from_iterable( | ||
[user.name, user.mobile_number, user.email_address] | ||
for user in Users(service_id) | ||
) | ||
if current_service.trial_mode | ||
else None, | ||
guestlist=( | ||
itertools.chain.from_iterable( | ||
[user.name, user.mobile_number, user.email_address] | ||
for user in Users(service_id) | ||
) | ||
if current_service.trial_mode | ||
else None | ||
), | ||
remaining_messages=remaining_messages, | ||
allow_international_sms=current_service.has_permission("international_sms"), | ||
) | ||
|
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
Oops, something went wrong.