Innokentii Konstantinov
3e8c7a24c8
Add hiding personal phone numbers ( #411 )
...
* Add hiding personal phone numbers
* Fix tests
* phone number toggler
* fixed issue where id was not set
* some improvement changes
* show toggle just for validated phone numbers
* ux changes + refactored PhoneVerification
* minor changes
* linter
* hide banner
* ux changes for phone verification
* make it full width
* linter
* show action only if phone is verified
* linter
* revert isCodeSent once phone is forgotten
* fix UserHiddenFieldsSerializer
* await for loadUser
* missing WithPermissions wrapper
Co-authored-by: Rares Mardare <rares.mardare@grafana.com>
Co-authored-by: Rares Mardare <40542072+teodosii@users.noreply.github.com>
2022-09-09 12:42:40 +05:00
Julia
67eb0b423d
Merge branch 'dev' into on-call-shifts-rotation-index
...
# Conflicts:
# engine/apps/schedules/models/on_call_schedule.py
2022-09-08 16:43:35 +03:00
Matias Bordese
62ace52ff0
Merge pull request #507 from grafana/matiasb/fix-preview-rotation-start
...
Update preview rotation start logic to match update logic
2022-09-08 10:32:31 -03:00
Matias Bordese
2d13f9116b
Update shift preview to return events for (all) affected shifts
2022-09-08 09:33:51 -03:00
Matias Bordese
a4c036d5aa
Update preview rotation start logic to match update logic
2022-09-07 15:37:03 -03:00
Matias Bordese
e5c247cf42
Add name search filter to schedules API
2022-09-07 14:34:43 -03:00
Julia
9f71b5d72f
Merge branch 'dev' into on-call-shifts-rotation-index
2022-09-07 18:54:39 +03:00
Matias Bordese
026474b43b
Merge pull request #486 from grafana/matiasb/update-preview-shift-pk-reuse
...
Update web schedule shift preview PK reusing logic
2022-09-07 11:35:34 -03:00
Matias Bordese
02326d81fa
Merge pull request #485 from grafana/matiasb/schedules-related-escalation-chains
...
Add related escalation chains details to schedule API
2022-09-07 11:17:05 -03:00
Matias Bordese
5a68847557
Refactoring schedule API annotations
2022-09-07 11:12:38 -03:00
Matias Bordese
0a9c9eb59a
Merge pull request #487 from grafana/matiasb/next-shifts-per-user-list-all
...
Update next shifts per user to list all (web) schedule users
2022-09-07 10:26:28 -03:00
Matias Bordese
b48aadc01c
Merge pull request #473 from grafana/matiasb/fix-update-channel-filter-api-multiple-backends
...
Fix channel filter updates when there are multiple backends
2022-09-06 17:14:07 -03:00
Vadim Stepanov
afe13550da
Alert group search ( #488 )
...
* use web title template to render alert group verbose name
* remove group_verbose_name from tests
* clean up group_verbose_name
* remove verbose_name from API & plugin
* verbose_name migration
* update verbose name on web title template change
* use long queue for updating verbose name
* use first alert for updating verbose name
* improve batch_ids
* fix update_verbose_name
* post-review fixes
* post-review fixes
2022-09-06 11:30:12 +01:00
Julia
5c0d0ace3e
Remove user group rotation reordering
2022-09-06 12:59:38 +03:00
Matias Bordese
d74f4cc2be
Update next shifts per user to list all (web) schedule users
2022-09-05 17:23:35 -03:00
Matias Bordese
c413c54329
Update web schedule shift preview PK reusing logic
2022-09-05 15:50:58 -03:00
Matias Bordese
b41fec5439
Add related escalation chains details to schedule API
2022-09-05 15:00:14 -03:00
Matias Bordese
b5a892a9c2
Merge pull request #381 from grafana/matiasb/fix-final-schedule-event-splitting
...
Fixes for final event calculation when splitting/combining events
2022-09-05 10:10:11 -03:00
Matias Bordese
7fd0e5ecf7
Skip empty events in final schedule
2022-09-02 16:45:35 -03:00
Matias Bordese
37eefe8e08
Allow empty users when previewing a web schedule shift
2022-09-02 16:45:35 -03:00
Matias Bordese
84dd4eebf5
Update shift preview to reuse shift PK when previewing update
2022-09-02 16:45:35 -03:00
Matias Bordese
c84f53c2b7
Handle shift previews for rotation updates
2022-09-02 16:45:35 -03:00
Matias Bordese
11175e27e5
Combine same-shift schedule events early
2022-09-02 16:45:35 -03:00
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
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
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
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