Commit graph

1569 commits

Author SHA1 Message Date
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
5205ceeede
More accurate invalidating of alert group web cache (#277)
* Disable invalidate ag web cache on user save

* Tweak invalidate_ag_web_cache on AlertReceiveChannel save
2022-07-22 14:58:27 +04: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
Vadim Stepanov
eeba2f5b31
Bring back cached_render_for_web (#262) 2022-07-21 09:21:13 +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
8e233e760d Fixes for the mobile app 2022-07-20 11:39:08 +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
c25ced2562 Merge branch 'iskhakov/mobile-app-fixes' of https://github.com/grafana/oncall into iskhakov/mobile-app-fixes 2022-07-20 10:59:38 +03:00
Ildar Iskhakov
035d5e99c7 Fix linter 2022-07-20 10:58:54 +03:00
Innokentii Konstantinov
55fd6fd211 Fix AlertClassicMarkdownTemplater 2022-07-20 11:51:56 +04:00
Ildar Iskhakov
ddcad396e3 Clean up the code 2022-07-20 10:50:04 +03:00
Ildar Iskhakov
ee7a58b5cf Add fixes for the mobile app 2022-07-20 10:26:14 +03:00
Michael Derynck
d8931cb05f
Use formatted UTC time for fallback in slack message (#225)
* Use formatted UTC time for fallback in slack message

* Lint
2022-07-18 07:55:05 -06: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
Julia
f7b3563600 Update serializers for oncall shifts 2022-07-18 15:23:15 +03:00
Julia
24cfd3686a fix tests 2022-07-18 13:29:01 +03:00
Julia
a4c481a1ff Add rotation_start field to shifts public api endpoint, fix tests 2022-07-18 12:59:50 +03:00
Julia
1893b784e8 Update oncall shifts public api endpoint 2022-07-18 12:36:26 +03:00
Vadim Stepanov
16bbfbbe73
Alert list view & caching rework (#216)
* remove cache usage in AlertGroupView

* remove CustomSearchFilter

* remove caching for alerts

* remove readonly db setup

* render templates on alert creation

* serialize only necessary fields on alert groups list

* optimize AlertGroupListSerializer

* return on-demand templating for alerts

* return on-demand templating for alert groups

* use CursorPaginator

* remove templating on alert create

* pass alert to AlertGroupWebRenderer

* alert_count -> alerts_count

* make sql joins after pagination

* add migration

* bring alert.save() back

* fix tests

* fix tests

* fix tests

* add perpage query param

* add cursor pagination to incidents page

* remove cached_render_for_web usage

* post merge fix

* keep cursor

* lint

* remove get_alert_groups_and_days_for_previous_same_period

* fix pagination on navigate

* refine search_fields on AlertGroupView

Co-authored-by: Maxim <hello.makson@gmail.com>
Co-authored-by: Maxim <maxim.mordasov@grafana.com>
2022-07-14 15:19:25 +01:00
Yulia Shanyrova
78598fb95b
Merge pull request #224 from grafana/1099-list-shift-missing-users
Return list of usernames in a shift that do not match users in OnCall
2022-07-14 13:32:07 +02:00
Matvey Kukuy
30fb243ec8
Merge pull request #212 from grafana/integration-url-path-prefix
Fix integrations giving the wrong URL when using a path prefix
2022-07-14 01:17:18 +03:00
Matvey Kukuy
247cb7459a
Merge pull request #149 from roock/roock_hearbeat_typo
Fix Typo (HearBeat vs HeartBeat)
2022-07-14 01:13:08 +03:00
Innokentii Konstantinov
cede946359 Reshape webhook payload
1. Remove alert.title, alert.message, alert.image_url from webhook payload, they are deprecated.
2. Pass alert_group_id to webhook payload.
2022-07-13 14:54:53 +04:00
Michael Derynck
fc97a4e3de Merge dev 2022-07-12 15:45:59 -06:00
Michael Derynck
74a32c444a Use utility function to create URLs 2022-07-12 15:42:20 -06:00
Michael Derynck
9ce53b8215 Fix tests 2022-07-12 11:47:37 -06:00
Michael Derynck
75172d5e2c Return list of usernames in a shift that do not match users in OnCall 2022-07-12 11:00:02 -06:00
Julia
5ebcb39499 fix by_day value, fix getting next event date with respect to rotation end date 2022-07-12 17:13:56 +03:00
Julia
6dc4657371 fix searching shifts by schedule_id 2022-07-12 14:46:34 +03:00
Julia
d8a3206130 Add oncall shift endpoint to internal api 2022-07-12 13:59:17 +03:00
Julia
c7407d2b39 Add rotation_start for oncall shifts, update model with web choices 2022-07-12 13:55:09 +03:00
Innokentii Konstantinov
37187ef18a
Manual incidents for all teams (#194)
* Fix creation of manual incident via submenu

* Remove legacy finish_configuration_attachments

* Add manual incidents for all teams

* Fix manual incident creation from slash command

* Fix slack title template

* Get rid of migration
2022-07-12 12:56:27 +04:00
Innokentii Konstantinov
f8f86db7b0
Fix phone notifications for oss (#171)
* Fix phone notifications for oss

* Don't pass status_callback_method while processing 21609 error from twilio
2022-07-12 12:56:01 +04:00
Vadim Stepanov
df32f9099f
Add API support for user timezone and working hours (#201)
* add API support for user timezone and working hours

* add tests
2022-07-11 13:16:56 +01:00
Matias Bordese
b5e624e2ed
Merge pull request #196 from grafana/matiasb-web-schedule-backend-1
Initial web schedule model and serializers. Add override shift type.
2022-07-08 14:27:01 -03:00
Matias Bordese
d18d78a48f Disable web schedule create/update from public API 2022-07-08 12:03:18 -03:00
Yulya Artyukhina
ec094726d0
Merge pull request #175 from grafana/update-route-public-endpoint
Update route public endpoint
2022-07-08 17:36:06 +03:00
Julia
a0f3c22e88 Small correction for boolean checks 2022-07-08 12:05:59 +03:00
Matias Bordese
f38e79f41f Limit number of slack messages in resolution notes popup 2022-07-07 16:36:04 -03:00
Matias Bordese
835fdaa3b7 Do not allow override shifts in calendar schedules 2022-07-07 14:38:22 -03:00
Julia
3b53543e73 Update tests for routes in public api 2022-07-07 16:34:01 +03:00
Julia
9ba3f5a9bb Update public endpoint for routes
- Add abilities to enable/disable notification in different messangers
2022-07-07 16:31:25 +03:00
Julia
06b6980832 Merge branch 'dev' into update-route-public-endpoint 2022-07-07 12:16:23 +03:00
Michael Derynck
8d9daf0644 Tweak urljoin usage so integrations give back the correct URL when using a BASE_URL with a path prefix 2022-07-06 15:42:00 -06:00