Commit graph

85 commits

Author SHA1 Message Date
Matias Bordese
ecbc3ea778 Fix channel filter updates when there are multiple backends 2022-09-02 14:26:47 -03:00
Vadim Stepanov
2fdce0504b
Improve version mismatch warning (#469) 2022-09-02 15:16:00 +01:00
Matias Bordese
6339b13a2f
Merge pull request #423 from grafana/matiasb/unlink-slack-account
Add unlink slack account option to profile
2022-08-30 10:57:36 -03:00
Innokentii Konstantinov
45a2d46405
Fix deletion of public api tokens (#422) 2022-08-30 14:25:19 +01:00
Matias Bordese
6b2dad72d6 Add insight log entry 2022-08-30 09:55:57 -03:00
Matias Bordese
a8124b6afe Add unlink slack account option to profile 2022-08-29 14:41:26 -03:00
Innokentii Konstantinov
356aa336ad
Remove auto-recreating logic for UserNotificationPolicy (#414)
* Remove auto-recreating logic for UserNotificationPolicy

It's removed to get rid of select_for_update on User on each notify_user_task

* Fix and add tests

* remove get_user_policies method
2022-08-26 13:46:50 +05:00
Innokentii Konstantinov
434fe17617
user_id -> linked_user_id (#410) 2022-08-25 13:34:19 +05:00
Innokentii Konstantinov
4765c9b07c
Insight logs (#348)
* Entity events insight logs

* Insight logging

* Fix event for updating templates

* Format fixes

* Remove organization_log_type.py

* Simplify signature of chatops_insight_log

* insight logs formatting

* Add possibility to enable all insight logging via DynamicSetting

* Fixes

* Style fixes

* Add migration

* Fix migration
2022-08-24 12:04:44 +05:00
Matias Bordese
771ad617ff Fix schedule test, sort users before compare 2022-08-23 17:11:04 -03:00
Matias Bordese
c73df126cc
Merge pull request #359 from grafana/matiasb/messaging-backends-explicit-enum
Make messaging backends enum be defined explicitly
2022-08-22 12:14:46 -03:00
Innokentii Konstantinov
6fb22e0860
Add alert detail view (#385)
* Alert detail view

* Add id to alert serializer
2022-08-19 14:03:07 +05:00
Vadim Stepanov
ed98178b53
Wrong team error for alert groups page (#337)
* WIP

* WIP added stub for getAlert endpoint

* add TeamFilteringMixin

* handle 403 wrong_team for alert group page

* use TeamFilteringMixin only for alert groups

* return original_get_object for schedules and webhooks

* lint

* fix texts

* add support for None in 403 response, add comments

* handle NotFound in retreive

* remove comments

* use HTTP_403_FORBIDDEN

Co-authored-by: Yulia Shanyrova <yulia.shanyrova@grafana.com>
2022-08-17 10:46:53 +03:00
Matias Bordese
5c87b7562c Fix to check for final type in schedule filter_events 2022-08-16 10:50:16 -03:00
Matias Bordese
4477c56b25 Add shift preview endpoint for web schedule 2022-08-16 10:50:16 -03:00
Matias Bordese
96e2fd6926
Merge pull request #320 from grafana/matiasb-combine-same-shift-events
Update schedule filter_events to combine overlapping same-shift events
2022-08-16 10:44:57 -03:00
Yulya Artyukhina
6f8ee39026
Merge pull request #330 from grafana/on-call-shifts-generate-ical-update
Update generating ical for on-call shifts
2022-08-16 15:26:47 +03:00
Matias Bordese
2a2ecb6612 Make messaging backends enum be defined explicitly 2022-08-11 17:26:45 -03:00
Matias Bordese
1a1c8efa96 Update schedule filter_events to combine overlapping same-shift events 2022-08-09 11:01:07 -03:00
Matias Bordese
4a35d2522a Move schedule helpers (filter events, final) to model 2022-08-04 17:00:09 -03:00
Vadim Stepanov
d409b839b3
Fix circular import for CloudConnector (#329) 2022-08-03 12:43:28 +01:00
Julia
3b2d20edcd Add tests for on-call shift, fix schedules tests 2022-08-03 14:38:48 +03:00
Vadim Stepanov
8b553ce735
Validate Slack and Telegram host env variables (#307)
* Validate Slack and Telegram host env variables

* remove ImproperlyConfigured usage, improve Telegram creds handling

* update TELEGRAM_WEBHOOK_HOST description
2022-08-02 12:57:12 +03:00
Matias Bordese
8fa547ee11
Merge pull request #295 from grafana/matiasb-schedule-next-shifts-per-user
Add schedule next shifts per user endpoint to internal API
2022-07-29 16:29:23 -03:00
Yulya Artyukhina
fdd369c16b
Merge pull request #288 from grafana/julia-web-schedule-backend-3
Create new oncall shift on update for started shifts
2022-07-28 17:30:35 +03:00
Julia
60ac09b950 Correct until validation 2022-07-28 12:18:14 +03:00
Vadim Stepanov
a1b1b83fd1
Optimize alert group list view (#299)
* Revert "Revert "Alert list view & caching rework (#216)""

This reverts commit 730dccc3

* Revert "fix AlertGroupClassicMarkdownRenderer"

This reverts commit 82e53d8e0c513feb8aaef332fc1d3800e90538fc.

* optimize alert group list view

* optimize alert group list view
2022-07-27 14:14:59 +03:00
Julia
26d3ac6a48 fix serializer, add tests for shifts internal api endpoint 2022-07-27 13:40:07 +03:00
Matias Bordese
e6274dc992 Add schedule next shifts per user endpoint to internal API 2022-07-26 15:28:52 -03:00
Julia
c3fc514ad4 Update oncall shift serializer 2022-07-26 16:42:30 +03:00
Julia
0406d7a1f3 Add title for shifts, update shift validation for internal api endpoint 2022-07-25 15:37:25 +03:00
Vadim Stepanov
76f67b171a
Show only maintenances for current team (#287) 2022-07-25 11:09:06 +01:00
Julia
9537e72e4e Add creation oncall shift on update by internal api 2022-07-25 12:52:57 +03:00
Innokentii Konstantinov
0e8e6b2eb7
Merge pull request #285 from grafana/dummy_insight_logs
Test view for the insight logs
2022-07-25 13:41:34 +04:00
Innokentii Konstantinov
972bfd9c68 Fix propagation for the insight logger 2022-07-25 12:59:12 +04:00
Matias Bordese
cf6a43c71e Override shifts use rolling_users 2022-07-22 11:54:53 -03:00
Matias Bordese
4649f1faaa Update schedule tests for missing shift rotation_start 2022-07-22 09:29:34 -03:00
Matias Bordese
1ded234d42 Updates from review, improve readability 2022-07-22 09:13:52 -03:00
Matias Bordese
fdba32a15f Update schedule filter_events to resolve final schedule shifts 2022-07-22 09:13:52 -03:00
Ildar Iskhakov
d08425e17d Add logger for insight logs 2022-07-22 15:09:52 +03:00
Innokentii Konstantinov
4a0dbe674c Add TestInsightLogsAPIView 2022-07-22 14:25:50 +04:00
Yulya Artyukhina
6b456f9820
Merge pull request #220 from grafana/julia-web-schedule-backend-2
Internal api endpoint for oncall shifts
2022-07-22 11:52:22 +03:00
Vadim Stepanov
c37bfe45b1
Fix timezone naming clash (#271) 2022-07-21 15:49:17 +01:00
Vadim Stepanov
0985cb4cb5
Rollback alert group list rework (#269)
* Revert "Alert list view & caching rework (#216)"

This reverts commit 16bbfbbe

* fix AlertGroupClassicMarkdownRenderer
2022-07-21 15:23:02 +01:00
Julia
b7a0411142 Fix oncall shifts serializer, fix migration, update oncall shift log text 2022-07-20 13:11:16 +03:00
Ildar Iskhakov
7e12254d09
Merge pull request #256 from grafana/iskhakov/mobile-app-fixes
Add fixes for the mobile app
2022-07-20 11:04:35 +03:00
Ildar Iskhakov
035d5e99c7 Fix linter 2022-07-20 10:58:54 +03:00
Ildar Iskhakov
ee7a58b5cf Add fixes for the mobile app 2022-07-20 10:26:14 +03:00
Vadim Stepanov
193519abc0
Add version mismatch warning (#241)
* add version mismatch warning

* add link to update docs
2022-07-18 14:24:03 +01:00
Julia
59e88d0c43 fix update shift at internal api endpoint 2022-07-18 15:43:57 +03:00