-
Notifications
You must be signed in to change notification settings - Fork 4
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 #637 from Terralego/mail_ending_refresh
Mail report when source is refreshed
- Loading branch information
Showing
18 changed files
with
504 additions
and
42 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
from datetime import datetime | ||
from unittest import mock | ||
|
||
from constance.test import override_config | ||
from django.contrib.auth.models import Group | ||
from django.test import TestCase | ||
from geostore.models import Feature, Layer | ||
|
@@ -25,6 +26,7 @@ def setUpTestData(cls): | |
) | ||
cls.element.groups.add(cls.group) | ||
|
||
@override_config(INSTANCE_EMAIL_SOURCE_REFRESH_RECIPIENTS="[email protected]") | ||
def test_task_refresh_data_method( | ||
self, mocked_index_feature, mocked_es_delete, mocked_es_create | ||
): | ||
|
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 |
---|---|---|
|
@@ -8,7 +8,7 @@ msgid "" | |
msgstr "" | ||
"Project-Id-Version: PACKAGE VERSION\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2024-02-02 09:32+0000\n" | ||
"POT-Creation-Date: 2024-06-19 14:05+0200\n" | ||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" | ||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | ||
"Language-Team: LANGUAGE <[email protected]>\n" | ||
|
@@ -207,6 +207,11 @@ msgstr "" | |
msgid "Incorrect value for coordinates field" | ||
msgstr "" | ||
|
||
#, python-format | ||
msgid "" | ||
"%(title)s : Data source %(obj)s refresh ended with state %(success_state)s" | ||
msgstr "" | ||
|
||
msgid "Instance title" | ||
msgstr "" | ||
|
||
|
@@ -264,6 +269,22 @@ msgstr "" | |
msgid "Content of info tab in frontend" | ||
msgstr "" | ||
|
||
msgid "Email addresses to send refresh done reports. (comma separated values)" | ||
msgstr "" | ||
|
||
msgid "Email address used as sender for emails sent." | ||
msgstr "" | ||
|
||
msgid "" | ||
"Minimum report status level to send email to refresh recipients. (success, " | ||
"warning, error)" | ||
msgstr "" | ||
|
||
msgid "" | ||
"Base url to prefix media files in HTML emails. (ex: https://terravisu.org/" | ||
"static_dj/)" | ||
msgstr "" | ||
|
||
msgid "Activate MapboxDraw Control to measure distance on the map" | ||
msgstr "" | ||
|
||
|
@@ -300,6 +321,9 @@ msgstr "" | |
msgid "General Options" | ||
msgstr "" | ||
|
||
msgid "Emails" | ||
msgstr "" | ||
|
||
msgid "Map max BBOX" | ||
msgstr "" | ||
|
||
|
@@ -315,6 +339,88 @@ msgstr "" | |
msgid "Other options" | ||
msgstr "" | ||
|
||
#, python-format | ||
msgid "" | ||
"\n" | ||
" %(title)s: Error when refreshing data source " | ||
"<b>\"%(source_name)s\"</b>\n" | ||
" " | ||
msgstr "" | ||
|
||
#, python-format | ||
msgid "" | ||
"\n" | ||
" %(title)s: Data source <b>\"%(source_name)s\"</b> refreshed\n" | ||
" " | ||
msgstr "" | ||
|
||
#, python-format | ||
msgid "" | ||
"\n" | ||
" Hi,<br><br>\n" | ||
" Data source \"%(source_name)s\" refresh ended on " | ||
"<b>%(refresh_datetime)s</b>.<br>\n" | ||
" " | ||
msgstr "" | ||
|
||
msgid "Objects" | ||
msgstr "" | ||
|
||
msgid "Total" | ||
msgstr "" | ||
|
||
msgid "Start" | ||
msgstr "" | ||
|
||
msgid "End" | ||
msgstr "" | ||
|
||
msgid "Adding" | ||
msgstr "" | ||
|
||
msgid "Updates" | ||
msgstr "" | ||
|
||
msgid "Deletion" | ||
msgstr "" | ||
|
||
#, python-format | ||
msgid "" | ||
"\n" | ||
"Hi,\n" | ||
"\n" | ||
"Data source \"%(source_name)s\" refresh ended on %(refresh_datetime)s.\n" | ||
"\n" | ||
"Started at %(refresh_start)s\n" | ||
"Ended at %(refresh_ended)s\n" | ||
"\n" | ||
"%(total)s total features\n" | ||
"\n" | ||
"with\n" | ||
"\n" | ||
"%(added_lines)s added features\n" | ||
"%(modified_lines)s modified features\n" | ||
"%(deleted_lines)s deleted features\n" | ||
"\n" | ||
msgstr "" | ||
|
||
#, python-format | ||
msgid "" | ||
"\n" | ||
"Its status is: %(status)s.\n" | ||
msgstr "" | ||
|
||
#, python-format | ||
msgid "" | ||
"\n" | ||
"No problem detected.\n" | ||
"\n" | ||
"Regards,\n" | ||
"\n" | ||
"The %(instance_title)s team\n" | ||
"\n" | ||
msgstr "" | ||
|
||
msgid "Layer identifier" | ||
msgstr "" | ||
|
||
|
Oops, something went wrong.