-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add alerting webhook to SiteAcc service (#2203)
- Loading branch information
1 parent
34d882c
commit 013190e
Showing
23 changed files
with
872 additions
and
124 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Enhancement: Add alerting webhook to SiteAcc service | ||
|
||
To integrate email alerting with the monitoring pipeline, a Prometheus webhook has been added to the SiteAcc service. Furthermore account settings have been extended/modified accordingly. | ||
|
||
https://github.com/cs3org/reva/pull/2203 |
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 |
---|---|---|
|
@@ -35,13 +35,13 @@ function verifyForm(formData) { | |
return false; | ||
} | ||
if (formData.getTrimmed("organization") == "") { | ||
setState(STATE_ERROR, "Please specify your organization/company.", "form", "organization", true); | ||
if (formData.getTrimmed("site") == "") { | ||
setState(STATE_ERROR, "Please select your ScienceMesh site.", "form", "site", true); | ||
return false; | ||
} | ||
if (formData.getTrimmed("role") == "") { | ||
setState(STATE_ERROR, "Please specify your role within the organization/company.", "form", "role", true); | ||
setState(STATE_ERROR, "Please specify your role within your site.", "form", "role", true); | ||
return false; | ||
} | ||
|
@@ -92,8 +92,7 @@ function handleAction(action) { | |
"title": formData.getTrimmed("title"), | ||
"firstName": formData.getTrimmed("fname"), | ||
"lastName": formData.getTrimmed("lname"), | ||
"organization": formData.getTrimmed("organization"), | ||
"website": formData.getTrimmed("website"), | ||
"site": formData.getTrimmed("site"), | ||
"role": formData.getTrimmed("role"), | ||
"phoneNumber": formData.getTrimmed("phone"), | ||
"password": { | ||
|
@@ -125,6 +124,14 @@ const tplBody = ` | |
<form id="form" method="POST" class="box container-inline" style="width: 100%;" onSubmit="handleAction('create'); return false;"> | ||
<div style="grid-row: 1;"><label for="email">Email address: <span class="mandatory">*</span></label></div> | ||
<div style="grid-row: 2;"><input type="text" id="email" name="email" placeholder="[email protected]"/></div> | ||
<div style="grid-row: 1;"><label for="site">ScienceMesh Site: <span class="mandatory">*</span></label></div> | ||
<div style="grid-row: 2;"> | ||
<select id="site" name="site"> | ||
{{range .Sites}} | ||
<option value="{{.ID}}">{{.Name}} | {{.FullName}}</option> | ||
{{end}} | ||
</select> | ||
</div> | ||
<div style="grid-row: 3;"> </div> | ||
|
@@ -141,25 +148,20 @@ const tplBody = ` | |
<div style="grid-row: 7;"><input type="text" id="fname" name="fname"/></div> | ||
<div style="grid-row: 6;"><label for="lname">Last name: <span class="mandatory">*</span></label></div> | ||
<div style="grid-row: 7;"><input type="text" id="lname" name="lname"/></div> | ||
<div style="grid-row: 8;"><label for="role">Role: <span class="mandatory">*</span></label></div> | ||
<div style="grid-row: 9;"><input type="text" id="role" name="role" placeholder="Site administrator"/></div> | ||
<div style="grid-row: 8;"><label for="phone">Phone number:</label></div> | ||
<div style="grid-row: 9;"><input type="text" id="phone" name="phone" placeholder="+49 030 123456"/></div> | ||
<div style="grid-row: 8;"><label for="organization">Organization/Company: <span class="mandatory">*</span></label></div> | ||
<div style="grid-row: 9;"><input type="text" id="organization" name="organization"/></div> | ||
<div style="grid-row: 8;"><label for="website">Website:</label></div> | ||
<div style="grid-row: 9;"><input type="text" id="website" name="website" placeholder="https://www.example.com"/></div> | ||
<div style="grid-row: 10;"><label for="role">Role: <span class="mandatory">*</span></label></div> | ||
<div style="grid-row: 11;"><input type="text" id="role" name="role" placeholder="Site administrator"/></div> | ||
<div style="grid-row: 10;"><label for="phone">Phone number:</label></div> | ||
<div style="grid-row: 11;"><input type="text" id="phone" name="phone" placeholder="+49 030 123456"/></div> | ||
<div style="grid-row: 12;"> </div> | ||
<div style="grid-row: 10;"> </div> | ||
<div style="grid-row: 13;"><label for="password">Password: <span class="mandatory">*</span></label></div> | ||
<div style="grid-row: 14;"><input type="password" id="password" name="password"/></div> | ||
<div style="grid-row: 13;"><label for="password2">Confirm password: <span class="mandatory">*</span></label></div> | ||
<div style="grid-row: 14;"><input type="password" id="password2" name="password2"/></div> | ||
<div style="grid-row: 11;"><label for="password">Password: <span class="mandatory">*</span></label></div> | ||
<div style="grid-row: 12;"><input type="password" id="password" name="password"/></div> | ||
<div style="grid-row: 11;"><label for="password2">Confirm password: <span class="mandatory">*</span></label></div> | ||
<div style="grid-row: 12;"><input type="password" id="password2" name="password2"/></div> | ||
<div style="grid-row: 15; font-style: italic; font-size: 0.8em;"> | ||
<div style="grid-row: 13; font-style: italic; font-size: 0.8em;"> | ||
The password must fulfil the following criteria: | ||
<ul style="margin-top: 0em;"> | ||
<li>Must be at least 8 characters long</li> | ||
|
@@ -169,10 +171,10 @@ const tplBody = ` | |
</ul> | ||
</div> | ||
<div style="grid-row: 16; align-self: center;"> | ||
<div style="grid-row: 14; align-self: center;"> | ||
Fields marked with <span class="mandatory">*</span> are mandatory. | ||
</div> | ||
<div style="grid-row: 16; grid-column: 2; text-align: right;"> | ||
<div style="grid-row: 14; grid-column: 2; text-align: right;"> | ||
<button type="reset">Reset</button> | ||
<button type="submit" style="font-weight: bold;">Register</button> | ||
</div> | ||
|
Oops, something went wrong.