From 1fb56f8423c3587d4e8df5e118823f5600a32855 Mon Sep 17 00:00:00 2001 From: Sandra Westerhoff Date: Tue, 5 Jan 2021 11:27:33 +0100 Subject: [PATCH 1/3] Update: New action for contacting the PID owner of a project (coscine/issues#1202) --- src/NotificationConfiguration/Actions.json | 32 ++++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) diff --git a/src/NotificationConfiguration/Actions.json b/src/NotificationConfiguration/Actions.json index 451536e..1b73e1a 100644 --- a/src/NotificationConfiguration/Actions.json +++ b/src/NotificationConfiguration/Actions.json @@ -167,7 +167,7 @@ }, "group": [] }, - "pid_contact": { + "pid_contact_resource": { "channels": { "available": [], "always": [], @@ -177,7 +177,7 @@ "email": { "de": { "subject": "[CoScInE] Anfrage zu {{resourceName}} des Projekts {{_projectName}}", - "body": "{{> header}}Sehr geehrter {{_targetUserName}},

Es wurde eine extern Anfrage bezüglich der Ressource {{resourceName}} Ihres Coscine-Projekts {{_projectName}} gesendet.
Sie und alle anderen Projektinhaber haben diese Nachricht erhalten.

Bitte beachten Sie:
Ihre E-Mail-Adresse wurde nicht an die Person weitergegeben, die die Anfrage initiiert hat. Die Nachricht wurde von Coscine weitergeleitet.

Wenn Sie sich dafür entscheiden, die Anfrage über die untenstehenden Kontaktinformationen zu beantworten, erhält die anfragende Person Informationen über Ihre E-Mail-Adresse.

Haftungsausschluss: Der Inhalt der Anfrage wurde nicht von Coscine erstellt. Bitte melden Sie jeglichen Missbrauch des Kontaktformulars an servicedesk@itc.rwth-aachen.de

Mit freundlichen Grüßen
Ihr Coscine-Team


---

Anfrage Informationen
Name: {{requesterName}}
Kontakt: {{requesterMail}}

Nachricht: {{requestMessage}}{{> footer}}" + "body": "{{> header}}Sehr geehrter {{_targetUserName}},

Es wurde eine externe Anfrage bezüglich der Ressource {{resourceName}} Ihres Coscine-Projekts {{_projectName}} gesendet.
Sie und alle anderen Projektinhaber haben diese Nachricht erhalten.

Bitte beachten Sie:
Ihre E-Mail-Adresse wurde nicht an die Person weitergegeben, die die Anfrage initiiert hat. Die Nachricht wurde von Coscine weitergeleitet.

Wenn Sie sich dafür entscheiden, die Anfrage über die untenstehenden Kontaktinformationen zu beantworten, erhält die anfragende Person Informationen über Ihre E-Mail-Adresse.

Haftungsausschluss: Der Inhalt der Anfrage wurde nicht von Coscine erstellt. Bitte melden Sie jeglichen Missbrauch des Kontaktformulars an servicedesk@itc.rwth-aachen.de

Mit freundlichen Grüßen
Ihr Coscine-Team


---

Anfrage Informationen
Name: {{requesterName}}
Kontakt: {{requesterMail}}

Nachricht: {{requestMessage}}{{> footer}}" }, "en": { "subject": "[CoScInE] Request for {{resourceName}} of project {{_projectName}}", @@ -195,6 +195,34 @@ }, "group": [] }, + "pid_contact_project": { + "channels": { + "available": [], + "always": [], + "only": [ "email" ] + }, + "template": { + "email": { + "de": { + "subject": "[CoScInE] Anfrage zu Projekt {{_projectName}}", + "body": "{{> header}}Sehr geehrter {{_targetUserName}},

Es wurde eine externe Anfrage bezüglich Ihres Coscine-Projekts {{_projectName}} gesendet.
Sie und alle anderen Projektinhaber haben diese Nachricht erhalten.

Bitte beachten Sie:
Ihre E-Mail-Adresse wurde nicht an die Person weitergegeben, die die Anfrage initiiert hat. Die Nachricht wurde von Coscine weitergeleitet.

Wenn Sie sich dafür entscheiden, die Anfrage über die untenstehenden Kontaktinformationen zu beantworten, erhält die anfragende Person Informationen über Ihre E-Mail-Adresse.

Haftungsausschluss: Der Inhalt der Anfrage wurde nicht von Coscine erstellt. Bitte melden Sie jeglichen Missbrauch des Kontaktformulars an servicedesk@itc.rwth-aachen.de

Mit freundlichen Grüßen
Ihr Coscine-Team


---

Anfrage Informationen
Name: {{requesterName}}
Kontakt: {{requesterMail}}

Nachricht: {{requestMessage}}{{> footer}}" + }, + "en": { + "subject": "[CoScInE] Request for project {{_projectName}}", + "body": "{{> header}}Dear {{_targetUserName}},

an external request was sent, regarding your Coscine project: {{_projectName}}.
You and all other project owners have been relayed this message.

Please note:
Your E-Mail adress was not disclosed to the person who initiated the requested. The message was relayed by Coscine.

If you choose to answer the request via the contact information below, the requesting person will gain information about your E-Mail address.

Disclaimer: The content of the request was not created by Coscine. Please report any abuse of the contact form to servicedesk@itc.rwth-aachen.de

Best regards
Your Coscine team

---

Request Information
Name: {{requesterName}}


Contact Mail: {{requesterMail}}


Message: {{requestMessage}}{{> footer}}" + } + } + }, + "name": { + "de": "PID Besitzer kontaktiert", + "en": "PID Owner contacted" + }, + "description": { + "de": "Sie werden informiert, wenn der Besitzer einer PID kontaktiert wird.", + "en": "You will be informed when a PID owner is contacted." + }, + "group": [] + }, "pid_contact_requester": { "channels": { "available": [], -- GitLab From 063a471737324613ca3614af902d1e529aff0eed Mon Sep 17 00:00:00 2001 From: Sandra Westerhoff Date: Tue, 5 Jan 2021 12:31:02 +0100 Subject: [PATCH 2/3] test new actions --- .../Properties/AssemblyInfo.cs | 8 ++--- src/NotificationConfiguration/Actions.json | 34 +++++++++++++++++-- .../Properties/AssemblyInfo.cs | 8 ++--- 3 files changed, 40 insertions(+), 10 deletions(-) diff --git a/src/NotificationConfiguration.Test/Properties/AssemblyInfo.cs b/src/NotificationConfiguration.Test/Properties/AssemblyInfo.cs index 179507f..c0e9585 100644 --- a/src/NotificationConfiguration.Test/Properties/AssemblyInfo.cs +++ b/src/NotificationConfiguration.Test/Properties/AssemblyInfo.cs @@ -9,8 +9,8 @@ using System.Reflection; [assembly: AssemblyDescription("NotificationConfiguration.Test is a part of the CoScInE group.")] [assembly: AssemblyCompany("IT Center, RWTH Aachen University")] [assembly: AssemblyProduct("NotificationConfiguration.Test")] -[assembly: AssemblyVersion("1.5.0")] -[assembly: AssemblyFileVersion("1.5.0")] -[assembly: AssemblyInformationalVersion("1.5.0-topic-1163-admin0001")] -[assembly: AssemblyCopyright("2020 IT Center, RWTH Aachen University")] +[assembly: AssemblyVersion("1.6.0")] +[assembly: AssemblyFileVersion("1.6.0")] +[assembly: AssemblyInformationalVersion("1.6.0-topic-1202-pidap0001")] +[assembly: AssemblyCopyright("2021 IT Center, RWTH Aachen University")] diff --git a/src/NotificationConfiguration/Actions.json b/src/NotificationConfiguration/Actions.json index 1b73e1a..91fd81d 100644 --- a/src/NotificationConfiguration/Actions.json +++ b/src/NotificationConfiguration/Actions.json @@ -167,7 +167,7 @@ }, "group": [] }, - "pid_contact_resource": { + "pid_contact": { "channels": { "available": [], "always": [], @@ -195,6 +195,35 @@ }, "group": [] }, + "pid_contact_resource": { + "channels": { + "available": [], + "always": [], + "only": [ "email" ] + }, + "template": { + "email": { + "de": { + "subject": "[CoScInE] Anfrage zu {{resourceName}} des Projekts {{_projectName}}", + "body": "{{> header}}Sehr geehrter {{_targetUserName}},

Es wurde eine externe Anfrage bezüglich der Ressource {{resourceName}} Ihres Coscine-Projekts {{_projectName}} gesendet.
Sie und alle anderen Projektinhaber haben diese Nachricht erhalten.

Bitte beachten Sie:
Ihre E-Mail-Adresse wurde nicht an die Person weitergegeben, die die Anfrage initiiert hat. Die Nachricht wurde von Coscine weitergeleitet.

Wenn Sie sich dafür entscheiden, die Anfrage über die untenstehenden Kontaktinformationen zu beantworten, erhält die anfragende Person Informationen über Ihre E-Mail-Adresse.

Haftungsausschluss: Der Inhalt der Anfrage wurde nicht von Coscine erstellt. Bitte melden Sie jeglichen Missbrauch des Kontaktformulars an servicedesk@itc.rwth-aachen.de

Mit freundlichen Grüßen
Ihr Coscine-Team


---

Anfrage Informationen
Name: {{requesterName}}
Kontakt: {{requesterMail}}

Nachricht: {{requestMessage}}{{> footer}}" + }, + "en": { + //"subject": "[CoScInE] Request for {{resourceName}} of project {{_projectName}}", + "subject": "PID_CONTACT_RESOURCE: [CoScInE] Request for {{resourceName}} of project {{_projectName}}", + "body": "{{> header}}Dear {{_targetUserName}},

an external request was sent, regarding the resource {{resourceName}} of your Coscine project: {{_projectName}}.
You and all other project owners have been relayed this message.

Please note:
Your E-Mail adress was not disclosed to the person who initiated the requested. The message was relayed by Coscine.

If you choose to answer the request via the contact information below, the requesting person will gain information about your E-Mail address.

Disclaimer: The content of the request was not created by Coscine. Please report any abuse of the contact form to servicedesk@itc.rwth-aachen.de

Best regards
Your Coscine team

---

Request Information
Name: {{requesterName}}


Contact Mail: {{requesterMail}}


Message: {{requestMessage}}{{> footer}}" + } + } + }, + "name": { + "de": "PID Besitzer kontaktiert", + "en": "PID Owner contacted" + }, + "description": { + "de": "Sie werden informiert, wenn der Besitzer einer PID kontaktiert wird.", + "en": "You will be informed when a PID owner is contacted." + }, + "group": [] + }, "pid_contact_project": { "channels": { "available": [], @@ -208,7 +237,8 @@ "body": "{{> header}}Sehr geehrter {{_targetUserName}},

Es wurde eine externe Anfrage bezüglich Ihres Coscine-Projekts {{_projectName}} gesendet.
Sie und alle anderen Projektinhaber haben diese Nachricht erhalten.

Bitte beachten Sie:
Ihre E-Mail-Adresse wurde nicht an die Person weitergegeben, die die Anfrage initiiert hat. Die Nachricht wurde von Coscine weitergeleitet.

Wenn Sie sich dafür entscheiden, die Anfrage über die untenstehenden Kontaktinformationen zu beantworten, erhält die anfragende Person Informationen über Ihre E-Mail-Adresse.

Haftungsausschluss: Der Inhalt der Anfrage wurde nicht von Coscine erstellt. Bitte melden Sie jeglichen Missbrauch des Kontaktformulars an servicedesk@itc.rwth-aachen.de

Mit freundlichen Grüßen
Ihr Coscine-Team


---

Anfrage Informationen
Name: {{requesterName}}
Kontakt: {{requesterMail}}

Nachricht: {{requestMessage}}{{> footer}}" }, "en": { - "subject": "[CoScInE] Request for project {{_projectName}}", + //"subject": "[CoScInE] Request for project {{_projectName}}", + "subject": "PID_CONTACT_PROJECT: [CoScInE] Request for project {{_projectName}}", "body": "{{> header}}Dear {{_targetUserName}},

an external request was sent, regarding your Coscine project: {{_projectName}}.
You and all other project owners have been relayed this message.

Please note:
Your E-Mail adress was not disclosed to the person who initiated the requested. The message was relayed by Coscine.

If you choose to answer the request via the contact information below, the requesting person will gain information about your E-Mail address.

Disclaimer: The content of the request was not created by Coscine. Please report any abuse of the contact form to servicedesk@itc.rwth-aachen.de

Best regards
Your Coscine team

---

Request Information
Name: {{requesterName}}


Contact Mail: {{requesterMail}}


Message: {{requestMessage}}{{> footer}}" } } diff --git a/src/NotificationConfiguration/Properties/AssemblyInfo.cs b/src/NotificationConfiguration/Properties/AssemblyInfo.cs index 8fc2854..acfcbb3 100644 --- a/src/NotificationConfiguration/Properties/AssemblyInfo.cs +++ b/src/NotificationConfiguration/Properties/AssemblyInfo.cs @@ -9,8 +9,8 @@ using System.Reflection; [assembly: AssemblyDescription("NotificationConfiguration is a part of the CoScInE group.")] [assembly: AssemblyCompany("IT Center, RWTH Aachen University")] [assembly: AssemblyProduct("NotificationConfiguration")] -[assembly: AssemblyVersion("1.5.0")] -[assembly: AssemblyFileVersion("1.5.0")] -[assembly: AssemblyInformationalVersion("1.5.0-topic-1163-admin0001")] -[assembly: AssemblyCopyright("2020 IT Center, RWTH Aachen University")] +[assembly: AssemblyVersion("1.6.0")] +[assembly: AssemblyFileVersion("1.6.0")] +[assembly: AssemblyInformationalVersion("1.6.0-topic-1202-pidap0001")] +[assembly: AssemblyCopyright("2021 IT Center, RWTH Aachen University")] -- GitLab From 512a2eed42e6417c633c5ac5cb5eebcd4d8acc1a Mon Sep 17 00:00:00 2001 From: Sandra Westerhoff Date: Tue, 5 Jan 2021 13:06:19 +0100 Subject: [PATCH 3/3] little change --- .../Properties/AssemblyInfo.cs | 2 +- src/NotificationConfiguration/Actions.json | 34 ++----------------- .../Properties/AssemblyInfo.cs | 2 +- 3 files changed, 4 insertions(+), 34 deletions(-) diff --git a/src/NotificationConfiguration.Test/Properties/AssemblyInfo.cs b/src/NotificationConfiguration.Test/Properties/AssemblyInfo.cs index c0e9585..49d86c6 100644 --- a/src/NotificationConfiguration.Test/Properties/AssemblyInfo.cs +++ b/src/NotificationConfiguration.Test/Properties/AssemblyInfo.cs @@ -11,6 +11,6 @@ using System.Reflection; [assembly: AssemblyProduct("NotificationConfiguration.Test")] [assembly: AssemblyVersion("1.6.0")] [assembly: AssemblyFileVersion("1.6.0")] -[assembly: AssemblyInformationalVersion("1.6.0-topic-1202-pidap0001")] +[assembly: AssemblyInformationalVersion("1.6.0-topic-1202-pidap0002")] [assembly: AssemblyCopyright("2021 IT Center, RWTH Aachen University")] diff --git a/src/NotificationConfiguration/Actions.json b/src/NotificationConfiguration/Actions.json index 91fd81d..1b73e1a 100644 --- a/src/NotificationConfiguration/Actions.json +++ b/src/NotificationConfiguration/Actions.json @@ -167,34 +167,6 @@ }, "group": [] }, - "pid_contact": { - "channels": { - "available": [], - "always": [], - "only": [ "email" ] - }, - "template": { - "email": { - "de": { - "subject": "[CoScInE] Anfrage zu {{resourceName}} des Projekts {{_projectName}}", - "body": "{{> header}}Sehr geehrter {{_targetUserName}},

Es wurde eine externe Anfrage bezüglich der Ressource {{resourceName}} Ihres Coscine-Projekts {{_projectName}} gesendet.
Sie und alle anderen Projektinhaber haben diese Nachricht erhalten.

Bitte beachten Sie:
Ihre E-Mail-Adresse wurde nicht an die Person weitergegeben, die die Anfrage initiiert hat. Die Nachricht wurde von Coscine weitergeleitet.

Wenn Sie sich dafür entscheiden, die Anfrage über die untenstehenden Kontaktinformationen zu beantworten, erhält die anfragende Person Informationen über Ihre E-Mail-Adresse.

Haftungsausschluss: Der Inhalt der Anfrage wurde nicht von Coscine erstellt. Bitte melden Sie jeglichen Missbrauch des Kontaktformulars an servicedesk@itc.rwth-aachen.de

Mit freundlichen Grüßen
Ihr Coscine-Team


---

Anfrage Informationen
Name: {{requesterName}}
Kontakt: {{requesterMail}}

Nachricht: {{requestMessage}}{{> footer}}" - }, - "en": { - "subject": "[CoScInE] Request for {{resourceName}} of project {{_projectName}}", - "body": "{{> header}}Dear {{_targetUserName}},

an external request was sent, regarding the resource {{resourceName}} of your Coscine project: {{_projectName}}.
You and all other project owners have been relayed this message.

Please note:
Your E-Mail adress was not disclosed to the person who initiated the requested. The message was relayed by Coscine.

If you choose to answer the request via the contact information below, the requesting person will gain information about your E-Mail address.

Disclaimer: The content of the request was not created by Coscine. Please report any abuse of the contact form to servicedesk@itc.rwth-aachen.de

Best regards
Your Coscine team

---

Request Information
Name: {{requesterName}}


Contact Mail: {{requesterMail}}


Message: {{requestMessage}}{{> footer}}" - } - } - }, - "name": { - "de": "PID Besitzer kontaktiert", - "en": "PID Owner contacted" - }, - "description": { - "de": "Sie werden informiert, wenn der Besitzer einer PID kontaktiert wird.", - "en": "You will be informed when a PID owner is contacted." - }, - "group": [] - }, "pid_contact_resource": { "channels": { "available": [], @@ -208,8 +180,7 @@ "body": "{{> header}}Sehr geehrter {{_targetUserName}},

Es wurde eine externe Anfrage bezüglich der Ressource {{resourceName}} Ihres Coscine-Projekts {{_projectName}} gesendet.
Sie und alle anderen Projektinhaber haben diese Nachricht erhalten.

Bitte beachten Sie:
Ihre E-Mail-Adresse wurde nicht an die Person weitergegeben, die die Anfrage initiiert hat. Die Nachricht wurde von Coscine weitergeleitet.

Wenn Sie sich dafür entscheiden, die Anfrage über die untenstehenden Kontaktinformationen zu beantworten, erhält die anfragende Person Informationen über Ihre E-Mail-Adresse.

Haftungsausschluss: Der Inhalt der Anfrage wurde nicht von Coscine erstellt. Bitte melden Sie jeglichen Missbrauch des Kontaktformulars an servicedesk@itc.rwth-aachen.de

Mit freundlichen Grüßen
Ihr Coscine-Team


---

Anfrage Informationen
Name: {{requesterName}}
Kontakt: {{requesterMail}}

Nachricht: {{requestMessage}}{{> footer}}" }, "en": { - //"subject": "[CoScInE] Request for {{resourceName}} of project {{_projectName}}", - "subject": "PID_CONTACT_RESOURCE: [CoScInE] Request for {{resourceName}} of project {{_projectName}}", + "subject": "[CoScInE] Request for {{resourceName}} of project {{_projectName}}", "body": "{{> header}}Dear {{_targetUserName}},

an external request was sent, regarding the resource {{resourceName}} of your Coscine project: {{_projectName}}.
You and all other project owners have been relayed this message.

Please note:
Your E-Mail adress was not disclosed to the person who initiated the requested. The message was relayed by Coscine.

If you choose to answer the request via the contact information below, the requesting person will gain information about your E-Mail address.

Disclaimer: The content of the request was not created by Coscine. Please report any abuse of the contact form to servicedesk@itc.rwth-aachen.de

Best regards
Your Coscine team

---

Request Information
Name: {{requesterName}}


Contact Mail: {{requesterMail}}


Message: {{requestMessage}}{{> footer}}" } } @@ -237,8 +208,7 @@ "body": "{{> header}}Sehr geehrter {{_targetUserName}},

Es wurde eine externe Anfrage bezüglich Ihres Coscine-Projekts {{_projectName}} gesendet.
Sie und alle anderen Projektinhaber haben diese Nachricht erhalten.

Bitte beachten Sie:
Ihre E-Mail-Adresse wurde nicht an die Person weitergegeben, die die Anfrage initiiert hat. Die Nachricht wurde von Coscine weitergeleitet.

Wenn Sie sich dafür entscheiden, die Anfrage über die untenstehenden Kontaktinformationen zu beantworten, erhält die anfragende Person Informationen über Ihre E-Mail-Adresse.

Haftungsausschluss: Der Inhalt der Anfrage wurde nicht von Coscine erstellt. Bitte melden Sie jeglichen Missbrauch des Kontaktformulars an servicedesk@itc.rwth-aachen.de

Mit freundlichen Grüßen
Ihr Coscine-Team


---

Anfrage Informationen
Name: {{requesterName}}
Kontakt: {{requesterMail}}

Nachricht: {{requestMessage}}{{> footer}}" }, "en": { - //"subject": "[CoScInE] Request for project {{_projectName}}", - "subject": "PID_CONTACT_PROJECT: [CoScInE] Request for project {{_projectName}}", + "subject": "[CoScInE] Request for project {{_projectName}}", "body": "{{> header}}Dear {{_targetUserName}},

an external request was sent, regarding your Coscine project: {{_projectName}}.
You and all other project owners have been relayed this message.

Please note:
Your E-Mail adress was not disclosed to the person who initiated the requested. The message was relayed by Coscine.

If you choose to answer the request via the contact information below, the requesting person will gain information about your E-Mail address.

Disclaimer: The content of the request was not created by Coscine. Please report any abuse of the contact form to servicedesk@itc.rwth-aachen.de

Best regards
Your Coscine team

---

Request Information
Name: {{requesterName}}


Contact Mail: {{requesterMail}}


Message: {{requestMessage}}{{> footer}}" } } diff --git a/src/NotificationConfiguration/Properties/AssemblyInfo.cs b/src/NotificationConfiguration/Properties/AssemblyInfo.cs index acfcbb3..9189f1b 100644 --- a/src/NotificationConfiguration/Properties/AssemblyInfo.cs +++ b/src/NotificationConfiguration/Properties/AssemblyInfo.cs @@ -11,6 +11,6 @@ using System.Reflection; [assembly: AssemblyProduct("NotificationConfiguration")] [assembly: AssemblyVersion("1.6.0")] [assembly: AssemblyFileVersion("1.6.0")] -[assembly: AssemblyInformationalVersion("1.6.0-topic-1202-pidap0001")] +[assembly: AssemblyInformationalVersion("1.6.0-topic-1202-pidap0002")] [assembly: AssemblyCopyright("2021 IT Center, RWTH Aachen University")] -- GitLab