forked from qld-gov-au/ckanext-datarequests
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[QCDP24 30 32 34] added email notifications (#11)
* [QCDP24-30] added comment notification * [QCDP24-32] added deletion notification * [QCDP24-34] added follower notification * Added state column to `datarequest` table Updated `delete_datarequest` action to soft delete * [QCDP24-32] implemented state filter * [QCDP24-32] force active state on update * Fixed lint issues --------- Co-authored-by: Mark Calvert <[email protected]>
- Loading branch information
1 parent
06d9ba8
commit 5ac7611
Showing
9 changed files
with
144 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
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
8 changes: 8 additions & 0 deletions
8
ckanext/datarequests/templates/emails/bodies/comment_datarequest.txt
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
A new data access request comment has been added. | ||
To view or reply to this comment, follow this link: {{ site_url }}/datarequest/comment/{{ datarequest.id }} | ||
|
||
Comment: {{ comment.comment }} | ||
|
||
User: {{ comment.user.fullname or comment.user.name }} | ||
|
||
Do not reply to this email. |
14 changes: 14 additions & 0 deletions
14
ckanext/datarequests/templates/emails/bodies/delete_datarequest.txt
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
A data access request has been deleted. This is a soft delete and the details will remain on the portal database. This notification is for record keeping purposes only. | ||
|
||
Data Request Creator: {{ datarequest.user.name }} | ||
Requested data: {{ datarequest.title }} ({{ datarequest.requested_dataset }}) | ||
Data use type: {{ datarequest.data_use_type }} | ||
Purpose of data use: {{ datarequest.description }} | ||
Who will access this data: {{ datarequest.who_will_access_this_data }} | ||
Requesting organisation: {{ datarequest.requesting_organisation_dict.name }} ({{ datarequest.requesting_organisation }}) | ||
Data storage environment: {{ datarequest.data_storage_environment }} | ||
Data outputs type: {{ datarequest.data_outputs_type }} | ||
Data outputs description: {{ datarequest.data_outputs_description }} | ||
Status: {{ datarequest.status }} | ||
|
||
Do not reply to this email. |
9 changes: 9 additions & 0 deletions
9
ckanext/datarequests/templates/emails/bodies/update_datarequest_follower.txt
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
An update has been made to a data access request you are following. | ||
|
||
Requested data: {{ datarequest.title }} | ||
|
||
To view the data access request, follow this link: {{ site_url }}/datarequest/{{ datarequest.id }} | ||
|
||
If you require assistance, please contact the Internal Data Catalogue management team at [email protected]. | ||
|
||
Do not reply to this email. |
1 change: 1 addition & 0 deletions
1
ckanext/datarequests/templates/emails/subjects/comment_datarequest.txt
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
Queensland Government Internal Data Catalogue – Data access request comment |
1 change: 1 addition & 0 deletions
1
ckanext/datarequests/templates/emails/subjects/delete_datarequest.txt
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
Queensland Government Internal Data Catalogue – Data access request deletion |
1 change: 1 addition & 0 deletions
1
ckanext/datarequests/templates/emails/subjects/update_datarequest_follower.txt
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
Queensland Government Internal Data Catalogue – Data access request |