Commit graph

1569 commits

Author SHA1 Message Date
Matias Bordese
c9ea6e4728 Add web_schedules feature flag 2022-09-02 15:37:33 -03:00
Matias Bordese
ecbc3ea778 Fix channel filter updates when there are multiple backends 2022-09-02 14:26:47 -03:00
Julia
7d869f7ff9 Merge branch 'dev' into on-call-shifts-update-logic 2022-09-02 17:19:53 +03:00
Vadim Stepanov
2fdce0504b
Improve version mismatch warning (#469) 2022-09-02 15:16:00 +01:00
Yulya Artyukhina
4ada990ba4
Merge pull request #432 from grafana/fix-getting-rotation-start-date
Fix events start date calculation
2022-09-02 17:13:38 +03:00
Michael Derynck
0ef2cbf77b Fix message typo 2022-09-01 11:41:52 -06:00
Michael Derynck
50dc7d6240 Handle a exceptions on some retrying tasks 2022-09-01 11:39:47 -06:00
Vadim Stepanov
cc67d49047
Remove outdated tasks & DynamicSettingsManager (#465) 2022-09-01 17:50:17 +01:00
Michael Derynck
1d3cb8761e
Merge pull request #461 from grafana/fix-slack-message-blocks
Remove unused footer/duplicate block_id from post message to channel
2022-09-01 07:40:46 -06:00
Vadim Stepanov
5f69350679
Handle JSONDecodeError for outgoing webhooks (#460) 2022-09-01 14:36:34 +01:00
Michael Derynck
5ad172f704 Remove unused footer/duplicate block_id from post message to channel 2022-09-01 07:29:57 -06:00
Innokentii Konstantinov
f6f29b061e Add logging 2022-09-01 16:02:53 +05:00
Michael Derynck
53b9bb638c Check if notification policies is empty 2022-08-30 15:29:10 -06:00
Michael Derynck
c26158ba9d Check if notification policies is empty 2022-08-30 15:26:04 -06: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
Julia
36ce64b57a Revert changes in events start date calculation, fix bug with getting wrong events start date 2022-08-30 16:43: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
Matias Bordese
363e90c861 Fix custom on call shift test 2022-08-29 14:33:19 -03:00
Innokentii Konstantinov
76901a564b Handle case when user somehow deleted all their notification policies 2022-08-26 14:26:01 +05: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
Vadim Stepanov
b32d24a85e
Generate unique distinction for alert groups with broken templates / unrenderable distinction (#405)
* Generate unique distinction for alert groups with broken templates

* insert_demo_uuid -> insert_random_uuid
2022-08-24 16:40:10 +01:00
Vadim Stepanov
eba799abb4
Handle Telegram BadRequest (#404) 2022-08-24 15:35:01 +01: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
ddc2cf2083
Merge pull request #400 from grafana/matiasb/fix-sorting-in-schedule-test
Fix schedule test, sort users before compare
2022-08-23 17:15:43 -03:00
Matias Bordese
771ad617ff Fix schedule test, sort users before compare 2022-08-23 17:11:04 -03:00
Matias Bordese
3c4ba80f5f
Merge pull request #397 from grafana/matiasb/user-already-linked-telegram-account
Handle user already linked to telegram account when verifying
2022-08-23 16:52:29 -03:00
Matias Bordese
94b634234e
Merge pull request #396 from grafana/matiasb/fix-next-rotation-event-start
Revisit recurring events start date respect to rotation start
2022-08-23 16:52:10 -03:00
Matias Bordese
5b6f4b2c54 Handle user already linked to telegram account when verifying 2022-08-23 14:59:10 -03:00
Matias Bordese
619b09bc6e Revisit recurring events start date respect to rotation start 2022-08-23 12:06:14 -03:00
Ildar Iskhakov
762c681ebf
Merge pull request #323 from grafana/167-slack-notification-not-displaying
Fix slack notifications not displaying properly
2022-08-23 18:03:12 +03:00
Vadim Stepanov
3cd9a81d7d
Add logging for Telegram BadRequest (#394) 2022-08-23 15:17:05 +01: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
Julia
32daaf74ce Fix tests 2022-08-18 18:27:34 +03:00
Julia
febe4cc9e0 Add calculation for rotation index 2022-08-18 18:04:38 +03:00
Julia
0fae8b7dcf Fix circular import 2022-08-18 14:28:48 +03:00
Julia
bcf6ccb865 Move calculation of event start and end dates to separate method 2022-08-18 13:55:07 +03:00
Rares Mardare
96cb5b7e00
Merge pull request #354 from grafana/531-links-new-tab
351 - Open external links in new tab
2022-08-18 13:15:08 +03:00
Julia
736bc3b348 Fix events dates calculation for old shifts and ical schedules 2022-08-17 17:04:27 +03:00
Julia
5405af3598 Fix test 2022-08-17 13:54:56 +03:00
Julia
1e3e39d5e0 Add tests for events datetime calculation 2022-08-17 13:17:28 +03: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
82d0548cd3 Fix rotation start in tests after merged updates 2022-08-16 11:02:12 -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
Julia
a0efa4e025 Improve update shift logic using rotation start and until dates 2022-08-16 15:38:52 +03:00