811 Commits

Author SHA1 Message Date
Pēteris Caune
dd3820c0d5
_get_check_for_user and _get_channel_for_user are always be used with an authenticated user, so don't need to handle the unauthenticated case. 2020-03-01 22:45:33 +02:00
Pēteris Caune
4bcfba728e
Use unittest.mock 2020-03-01 22:30:12 +02:00
Pēteris Caune
dab15c3b8c
Link integration setup instructions from the welcome page (only the ones that don't require authentication: Slack, Pushover, PagerDuty Connect, Telegram) 2020-02-27 16:32:31 +02:00
Pēteris Caune
29e016d0fc
Update Telegram instructions. Fix redirect after login when adding Telegram integration. 2020-02-27 15:52:00 +02:00
Pēteris Caune
0c9c453ea0
Profile.current_project not used any more, remove last remaining references. cc: #336 2020-02-27 12:34:21 +02:00
Pēteris Caune
93b48ce720
In setup instructions, show an additional "log ina adn go to the Integrations" page for logged-out users 2020-02-27 12:16:42 +02:00
Pēteris Caune
9389408cbc
The "require_setting" decorator and more tests. 2020-02-27 11:35:18 +02:00
Pēteris Caune
b5b5c58d77
Split "Add Pagerduty Connect" in three views for clarity. 2020-02-27 10:28:14 +02:00
Pēteris Caune
157711bc95
Reduce usage of Profile.current_project cc: #336 2020-02-26 10:56:17 +02:00
Pēteris Caune
6a0c90853b
request.project is now unused, removing 2020-02-26 10:37:19 +02:00
Pēteris Caune
9c3f7101db
Don't use request.project in the pricing page cc: #336 2020-02-26 10:27:45 +02:00
Pēteris Caune
bb808852d9
Reduce usage of request.project cc: #336 2020-02-25 15:39:54 +02:00
Pēteris Caune
318934697f
Remove last references of the hc-channels route. 2020-02-25 15:26:33 +02:00
Pēteris Caune
f2375f9f45
Don't redirect to /integrations/, redirect to /project/<uuid>/integrations/ 2020-02-25 15:19:20 +02:00
Pēteris Caune
7060d49306
The "Add Telegram" page shows a project picker. cc: #336 2020-02-25 14:51:39 +02:00
Pēteris Caune
acce0808ce
Project code in URL for the "Add Slack" page. cc: #336 2020-02-25 14:22:34 +02:00
Pēteris Caune
dee189be33
Project code in URL for the "Add Trello" page. cc: #336 2020-02-25 11:24:32 +02:00
Pēteris Caune
26757c6785
Clean up Pushover validation. 2020-02-25 11:05:52 +02:00
Pēteris Caune
f6f2b18c5d
Project code in URL for the "Add Pushover" page. cc: #336 2020-02-25 10:48:58 +02:00
Pēteris Caune
ea333f7ac1
Project code in URL for the "Add PagerDuty (Connect)" page. cc: #336 2020-02-25 10:14:42 +02:00
Pēteris Caune
f13ad875a1
Project code in URL for the "Add Discord" page. cc: #336 2020-02-25 09:57:11 +02:00
Pēteris Caune
38bd84cc91
Project code in URL for the "Add Pushbullet" page. cc: #336 2020-02-21 17:31:17 +02:00
Pēteris Caune
44819cb555
Project code in URL for the "Add PagerDuty" page. cc: #336 2020-02-21 15:47:45 +02:00
Pēteris Caune
81f9a604e1
Project code in URL for the "Add Shell" page. cc: #336 2020-02-21 15:44:55 +02:00
Pēteris Caune
88f2a01182
Project code in URL for the "Add Apprise" page. cc: #336 2020-02-21 15:40:56 +02:00
Pēteris Caune
056134f2de
Project code in URL for the "Add WhatsApp" page. cc: #336 2020-02-21 15:33:42 +02:00
Pēteris Caune
9f5c133719
Project code in URL for the "Add VictorOps" page. cc: #336 2020-02-21 15:30:01 +02:00
Pēteris Caune
250935006d
Project code in URL for the "Add SMS" page. cc: #336 2020-02-21 15:26:06 +02:00
Pēteris Caune
f6a7d46058
Project code in URL for the "Add Prometheus" page. cc: #336 2020-02-21 15:22:10 +02:00
Pēteris Caune
5fb5b05f2e
Project code in URL for the "Add Pagertree" page. cc: #336 2020-02-21 15:18:15 +02:00
Pēteris Caune
1f950feee1
Fix Matrix test case. 2020-02-21 15:14:24 +02:00
Pēteris Caune
0ea2369dc0
Project code in URL for the "Add Pagerteam" page. cc: #336 2020-02-21 15:08:53 +02:00
Pēteris Caune
a6d497b21e
Project code in URL for the "Add OpsGenie" page. cc: #336 2020-02-21 15:03:26 +02:00
Pēteris Caune
d0b77febbc
Project code in URL for the "Add MS Teams" page. cc: #336 2020-02-21 14:58:22 +02:00
Pēteris Caune
70ff6c53e4
Project code in URL for the "Add Mattermost" page. cc: #336 2020-02-21 14:54:17 +02:00
Pēteris Caune
f8758e39ea
Project code in URL for the "Add Matrix" page. cc: #336 2020-02-21 14:44:44 +02:00
Pēteris Caune
59f5b7a5f5
Project code in URL for the "Add Webhook" page. cc: #336 2020-02-21 14:29:05 +02:00
Pēteris Caune
ea423e5420
Project code in URL for the "Integrations" and the "Add Email" pages. cc: #336 2020-02-21 14:15:13 +02:00
Pēteris Caune
5e051d53f8
Validate channel identifiers before creating/updating a check. Fixes #335 2020-02-20 10:43:40 +02:00
Pēteris Caune
cde1f50ac2
API: update check's "alert_after" field when changing schedule 2020-02-19 12:45:33 +02:00
Pēteris Caune
fb527e4ed8
Security: check channel ownership when setting check's channels via API 2020-02-19 12:19:51 +02:00
Pēteris Caune
435659166c
Don't let SuspiciousOperation bubble up when validating channel ids in API 2020-02-19 11:43:42 +02:00
Pēteris Caune
7a0f3421dd
Setup instructions for Prometheus. 2020-02-18 16:48:01 +02:00
Pēteris Caune
e52ac9af91
Put API key in the path (not query string) cc: #300 2020-02-14 16:39:31 +02:00
Pēteris Caune
12b946acf3
Experimental Prometheus metrics endpoint. cc: #300 2020-02-14 16:12:13 +02:00
Pēteris Caune
0ff4bd01e0
Improved UI to invite users from account's other projects. Fixes #258.
The team size limit is applied to the number of distinct users across all projects. Fixes #332.
2020-02-14 13:05:21 +02:00
Pēteris Caune
82d61335b0
The "render_docs" command checks if markdown and pygments is installed. cc: #329 2020-02-14 10:14:29 +02:00
Pēteris Caune
15b9611c5a
Show a warning in project's top navigation if the project has no configured integrations. Fixes #327 2020-02-13 10:29:01 +02:00
Pēteris Caune
c8ccd89af2
In hc.front.views.ping_details, if a ping does not exist, return a friendly message 2020-02-11 09:55:30 +02:00
Pēteris Caune
b0b6ee3149
In hc.front.views.ping_details, if a ping does not exist, return 404 instead of 500 2020-02-11 09:44:02 +02:00