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
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
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
Ildar Iskhakov
3933c225d9
Merge branch 'dev' into 167-slack-notification-not-displaying
2022-08-04 15:33:58 +03:00
Ildar Iskhakov
21e87bc0d6
Merge pull request #326 from grafana/ildar/critical-alert-on-ios
...
Enable critical alerts for IOS devices
2022-08-03 13:18:57 +03:00
Ildar Iskhakov
4fee9049e0
Enable critical alerts for IOS devices
2022-08-03 12:56:15 +03:00
Michael Derynck
3c1716a2fb
Lint
2022-08-02 15:26:17 -06:00
Michael Derynck
7cee7d4bce
Use blocks instead of attachments so text is used for fallback instead of repeating
2022-08-02 15:24:13 -06:00
Innokentii Konstantinov
819add5f2e
Add DANGEROUS_WEBHOOKS_ENABLED live setting ( #286 )
...
* Add DANGEROUS_WEBHOOKS_ENABLED live setting
* Style fix
* Fix DANGEROUS_WEBHOOKS_ENABLED check
2022-08-02 14:20:18 +04:00
Matias Bordese
fa4d121320
Fix terraform render test to avoid intermittent fail
2022-07-28 10:16:43 -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
Michael Derynck
ff57775368
Change slack URL to be built the same as other engine URLs ( #280 )
...
* Change slack login url to be built the same way as other engine urls
* Fix tests
* Change how to override base url in create_engine_url
* Change how to override base url in create_engine_url
2022-07-22 10:02:00 -06: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
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
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
Ildar Iskhakov
8e233e760d
Fixes for the mobile app
2022-07-20 11:39:08 +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
Julia
a4c481a1ff
Add rotation_start field to shifts public api endpoint, fix tests
2022-07-18 12:59:50 +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
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
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
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
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
Vadim Stepanov
c8964188e7
Allow Telegram DMs without channel connection ( #142 )
...
* allow posting DM messages to Telegram without connecting a channel
* fix get_channel_for_alert_group, add tests
* add docs on usage without channel connection
2022-06-28 09:11:19 +01:00
Julia
49116519b5
lint fix
2022-06-16 17:30:34 +03:00
Julia
d7492bb943
Fix creation contact points for grafana alerting integration
2022-06-16 17:16:31 +03:00
Michael Derynck
66e8cf2cbc
Merge dev to main ( #54 )
...
* Log (failed) attempt to notify a user with viewer role
* Remove https:// prefix from BASE_URL docker env var
* Fix cloud heartbeat name
* Polishing telegram
* Update docker-compose.yml
* Update plugin README (#48 )
* Update README and screenshot, remove plop for build info since version is now displayed prominently
* Sign build
Co-authored-by: Michael Derynck <michael.derynck@grafana.com>
* Build actions (#38 )
* Drone, github action changes
* Minor version updates
* Update frontend dependencies
* Re-enable unit test
Co-authored-by: Michael Derynck <michael.derynck@grafana.com>
* Revert stylelint version (#52 )
* Revert stylelint version
* Build plugin as well as lint
* Build in previous step
Co-authored-by: Michael Derynck <michael.derynck@grafana.com>
* Update screenshot (#53 )
Co-authored-by: Michael Derynck <michael.derynck@grafana.com>
Co-authored-by: Matias Bordese <mbordese@gmail.com>
Co-authored-by: Matvey Kukuy <Matvey-Kuk@users.noreply.github.com>
Co-authored-by: Innokentii Konstantinov <innokenty.konstantinov@grafana.com>
Co-authored-by: Matvey Kukuy <matvey@amixr.io>
Co-authored-by: Michael Derynck <michael.derynck@grafana.com>
2022-06-13 16:39:58 -06:00
Ildar Iskhakov
6a2e2acfcb
Fix migration
2022-06-13 16:29:39 +03:00
Ildar Iskhakov
c2c503788b
Merge pull request #37 from grafana/refactor-integrations
...
Refactor integrations
2022-06-13 12:15:58 +03:00
Ildar Iskhakov
f81227a2d1
Fix linting
2022-06-13 11:43:24 +03:00
Ildar Iskhakov
570b832225
Fix linting
2022-06-13 11:27:41 +03:00
Ildar Iskhakov
7b385a8790
Refactor integrations
2022-06-09 23:27:40 +03:00
Innokentii Konstantinov
94cedd28d9
Merge branch 'dev' into grafana_cloud_notifications
2022-06-09 12:57:49 +04:00
Michael Derynck
583835f8d4
Fix too many tasks being created for create contact points ( #12 )
...
Fix too many tasks being created for create_contact_points_for_datasource task
Co-authored-by: Julia <ferril.darkdiver@gmail.com>
2022-06-06 12:04:31 -06:00
Matias Bordese
9f89897264
Drop data migrations setting up demo tokens
2022-06-06 12:29:25 -03:00
Matias Bordese
f68d3f2146
Plug in sms/phone cloud notifications
2022-06-03 14:59:43 -03:00
Innokentii Konstantinov
0cdd2d7b8b
First touch on grafana cloud notifications
2022-06-03 19:47:25 +04:00
Michael Derynck
6b40f95033
World, meet OnCall!
...
Co-authored-by: Eve832 <eve.meelan@grafana.com>
Co-authored-by: Francisco Montes de Oca <nevermind89x@gmail.com>
Co-authored-by: Ildar Iskhakov <ildar.iskhakov@grafana.com>
Co-authored-by: Innokentii Konstantinov <innokenty.konstantinov@grafana.com>
Co-authored-by: Julia <ferril.darkdiver@gmail.com>
Co-authored-by: maskin25 <kengurek@gmail.com>
Co-authored-by: Matias Bordese <mbordese@gmail.com>
Co-authored-by: Matvey Kukuy <motakuk@gmail.com>
Co-authored-by: Michael Derynck <michael.derynck@grafana.com>
Co-authored-by: Richard Hartmann <richih@richih.org>
Co-authored-by: Robby Milo <robbymilo@fastmail.com>
Co-authored-by: Timur Olzhabayev <timur.olzhabayev@grafana.com>
Co-authored-by: Vadim Stepanov <vadimkerr@gmail.com>
Co-authored-by: Yulia Shanyrova <yulia.shanyrova@grafana.com>
2022-06-03 08:09:47 -06:00