Commit graph

1442 commits

Author SHA1 Message Date
Joey Orlando
3fc08b5656
Merge pull request #894 from grafana/jorlando/fix-grafana-toolkit-transitive-cve
fix yarn.lock
2022-11-24 12:52:56 +01:00
Innokentii Konstantinov
3b73522f5a
Fix saving source link template (#898)
* Add test for update integration templates

* Fix saving source link template
2022-11-24 16:26:12 +08:00
Innokentii Konstantinov
fdbcd43a70
Merge pull request #860 from grafana/rares/ui-improvements-9.3
Rares/UI improvements 9.3
2022-11-24 16:23:34 +08:00
Rares Mardare
d68563e687 Merge branch 'dev' into rares/ui-improvements-9.3 2022-11-24 09:59:36 +02:00
Joey Orlando
cc13990bf5
Merge pull request #896 from grafana/jorlando/remove-hostess-dependenc
remove hostess tool + add extra_hosts entry to oncall backend containers
2022-11-24 02:50:16 +01:00
Rares Mardare
f88b8223b8 fix casing 2022-11-23 23:43:21 +02:00
Joey Orlando
19e7fc4c00
remove hostess tool + add extra_hosts entry to oncall backend containers 2022-11-23 19:31:26 +01:00
Vadim Stepanov
255964ceaf
Mobile app messaging backend (#874)
* move mobile notifications to a separate backend, remove critical notification

* remove outdated mobile app code

* MOBILE_APP_PUSH_NOTIFICATIONS_ENABLED -> FEATURE_MOBILE_APP_INTEGRATION_ENABLED

* create error log if no devices are set up

* move mobile auth related code to the mobile_app Django app

* move mobile auth related code to the mobile_app Django app

* move mobile auth related code to the mobile_app Django app

* fix typing

* add GCMDevice todos

* add user connection capabilities

* add user connect/disconnect to the messaging backend

* move APNS endpoint to mobile_app Django app

* restore critical notifications

* support hackathon app

* tweak migrations so mobile app auth tokens are preserved

* reuse notify_by IDs

* use mobile app template to render push notification

* add GCM/FCM (Android) support

* fix unlink user

* logger.error -> logger.info
2022-11-23 15:56:43 +00:00
Rares Mardare
987700bbf4 make tabs horizontally scroll if <1500px 2022-11-23 17:04:27 +02:00
Rares Mardare
af418573e3 minor merge fixes 2022-11-23 15:59:54 +02:00
Joey Orlando
f21eec3c6a
fix yarn.lock 2022-11-23 14:40:59 +01:00
Rares Mardare
b15ff7d30c Merge branch 'dev' into rares/ui-improvements-9.3 2022-11-23 15:25:48 +02:00
Rares Mardare
3ab15275ef fix for routes & incidents list load 2022-11-23 15:09:46 +02:00
Joey Orlando
d0dbc4207a
Merge pull request #893 from grafana/main
main -> dev
2022-11-23 13:33:21 +01:00
Joey Orlando
d50db0dd80
[Hotfix] UI not handling invalid grafana tokens properly (#892)
* bug-fix

fix issue where frontend would not properly handle
scenario where Grafana API token was not yet available/valid
2022-11-23 13:29:58 +01:00
Ildar Iskhakov
2052faa8d1
Fix web oncall calendars not loading (#891)
* Fix oncall schedules bug

* Update custom_on_call_shift.py
2022-11-23 20:19:52 +08:00
dependabot[bot]
b01457e33b Bump loader-utils from 2.0.3 to 2.0.4 in /grafana-plugin
Bumps [loader-utils](https://github.com/webpack/loader-utils) from 2.0.3 to 2.0.4.
- [Release notes](https://github.com/webpack/loader-utils/releases)
- [Changelog](https://github.com/webpack/loader-utils/blob/v2.0.4/CHANGELOG.md)
- [Commits](https://github.com/webpack/loader-utils/compare/v2.0.3...v2.0.4)

---
updated-dependencies:
- dependency-name: loader-utils
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-23 10:10:07 +01:00
Jack Jackson
c517569108
Create generic Make command to run Django manage.py (#886)
See https://github.com/grafana/oncall/pull/868
2022-11-22 22:15:22 +01:00
Jack Jackson
491093100a
Note that Docker Compose >=v2.10 is required (#885)
See https://github.com/grafana/oncall/issues/846
2022-11-22 22:13:52 +01:00
Michael Derynck
bd275848dc
Merge pull request #883 from grafana/dev
Merge dev to main
2022-11-22 18:36:17 +00:00
Michael Derynck
2edd88cbe3 Update changelog 2022-11-22 11:27:41 -07:00
Rares Mardare
4d1da2ecd2 improved toQueryParams version, fixed infinite reload on Incidents due to using 'replace' instead of 'partial' 2022-11-22 14:37:18 +02:00
Michael Derynck
9e5efbd1b0
Merge pull request #830 from grafana/mderynck/organization-moved-headers
Organization moved headers
2022-11-21 16:40:50 +00:00
Yulya Artyukhina
381520ee13
Get rid of installation token + add a bunch of tests (#624)
* Get rid of installation token (for OSS installations)

This is done by being required to supply the grafana API URL as an
environment variable on the backend. Additionally, optionally an OnCall
API URL environment variable can be passed in to the frontend (this basically
allows completely skipping the need to configure anything).
- deduplicated a lot of the sync logic on the frontend + made
error message more useful and consistent
- Split PluginConfigPage component into several subcomponents
(making it easier to test each individual component)
- Moved RootWithLoader (from plugin/GrafanaPluginRootPage) into its own
subcomponent (making it easier to test)
- Added tests for pre-existing components that were touched:
  - PluginConfigPage component (and its new subcomponents)
  - state/plugin and state/rootBaseStore functions
  - apps.grafana_plugin django app

Helm changes:
- add GRAFANA_API_URL to oncall.env
- some yaml autoformatting changes
- remove reference to python manage.py issue_invite_for_the_frontend --override

Co-authored-by: Joey Orlando <joseph.t.orlando@gmail.com>
2022-11-21 16:26:00 +01:00
Ildar Iskhakov
d26f76fea0
Add new ci pipeline: helm chart end to end testing (#855) 2022-11-21 16:10:25 +01:00
Matias Bordese
5e03e3ad93
Merge pull request #840 from grafana/schedules-fixes-bunch-4
Web schedules minor bug fixes after initial release
2022-11-21 11:09:41 -03:00
Maxim
a55fa9e668 minor bug fixes after release 2022-11-21 11:03:53 -03:00
Yulia Shanyrova
a53dc71883
developer readme has been updated: troubleshooting case (#859)
* developer readme has been updated: troubleshooting case

Co-authored-by: Joey Orlando <joey.orlando@grafana.com>
2022-11-21 14:19:43 +01:00
Yulya Artyukhina
5b62060e41
Merge pull request #836 from grafana/fix-warning-popup-on-slack-slash-command
Fix warning pop-up on action in slack for disconnected user
2022-11-21 11:51:59 +01:00
Rares Mardare
47c80eb3f5 include queryByTestId within await call 2022-11-21 11:26:41 +02:00
Rares Mardare
6be6a4289e call fn 2022-11-21 11:24:15 +02:00
Rares Mardare
75c7d2bb56 bring back children arrow return in PageErrorHandlingWrapper to prevent NPE errors 2022-11-21 11:23:05 +02:00
Rares Mardare
ecf54678ac Merge branch 'dev' into rares/ui-improvements-9.3 2022-11-21 11:18:32 +02:00
Chinthiti Wisetsombat
cb551d4bd5
Helm chart: allow using existing secrets for oncall secrets, slack, and telegram (#718)
* chart: allow to use oncall env from existing secret

* chart: slack credentials from existing secret

* chart: telegram token from existing secret

* chart: fix mirage cipher IV length

* chart: restore mirage cipher IV default and remove it from secret

* chart: add keys for existing oncall secret

* chart: add keys for existing slack secret

* chart: add keys for existing telegram secret

* chart: change key existingSecretName to existingSecret

Co-authored-by: Ildar Iskhakov <Ildar.iskhakov@grafana.com>
2022-11-20 12:22:14 +08:00
Innokentii Konstantinov
a704c05c06
Merge pull request #863 from grafana/dev
Release 1.1.2
2022-11-18 17:52:40 +08:00
Innokentii Konstantinov
671c3a74b9 Update Changelod 2022-11-18 17:39:23 +08:00
Innokentii Konstantinov
a227bc6f3e
Merge pull request #862 from grafana/fix_404_create_contact_points
Handle 404 for get_alerting_config
2022-11-18 17:10:27 +08:00
Innokentii Konstantinov
0816813237 Handle 404 for get_alerting_config 2022-11-18 17:07:39 +08:00
Rares Mardare
b9b6d2d5a7 bring back test for outgoing webhooks 2022-11-17 13:59:57 +02:00
Rares Mardare
265c78f342 show header in 9.3 2022-11-17 13:58:34 +02:00
Rares Mardare
5ed1430515 replace deprecated usage of getLocationSrv() in favor of locationService 2022-11-17 13:44:47 +02:00
Rares Mardare
2fa22b7d32 move call of getQueryParams back to PluginRoot and rely on this.props.query instead 2022-11-17 13:09:33 +02:00
Innokentii Konstantinov
0b645b2835 Update changelog 2022-11-16 19:11:13 +08:00
Innokentii Konstantinov
2c384ef709
Merge pull request #858 from grafana/dev
Release v1.1.1
2022-11-16 19:09:15 +08:00
Innokentii Konstantinov
f5fd3dd76b Fixes to clean_slack_channel_leftovers 2022-11-16 18:23:49 +08:00
Rares Mardare
83f281ca37
Rares/grafana9.3 navbar latest (#758)
* new nav changes in progress

* navbar changes

* navbar

* working navbar

* got rid of deprecated usages from @grafana/*

* removed duplicated headers

* navbar changes

* path fix for links

* old navbar support through navbarRootFallback

* alignment

* minor changes

* breadcrumb fix

* header

* tabs and header for legacy navigation

* nav fix

* more fixes :)

* refactored sass rule

* docker file

* docker source image

* eslint added ^plugin to settings

* docker host

* fix

* test fix

* bring back team selector

* cleanup

* linter fix

* navbar chatops changes

* navbar

* added component to display header in legacy navbar

* fixed headings

* linter changes

* default route

* navbar class fallback

* permission checks for viewing cloud/live settings

* fixed styling for legacy

* linter + docker

* legacy handling of hideFromTabs

* init tabs logic

* renamed to isTopNavbar

* refactor

* some refactoring

* fix deprecated query usage

* temporarily disable test for webhooks

* reverted docker file to original content
2022-11-16 17:56:54 +08:00
Innokentii Konstantinov
f9a9c1d978
Cleanup on deletion/archivation of slack channel (#822)
* Cleanup on deletion/archivation of slack channel

* Bulk update of organizations, filter channel filters by org

* Optimize org bulk update
2022-11-16 17:56:05 +08:00
Innokentii Konstantinov
043700d228
Add additional validation for route's position field (#831)
* Add test for out of range route's order value

* Add additional validation for route's position when manual ordering is applied

* Remove print()

* Remove print
2022-11-16 17:55:53 +08:00
Julia
cc028783bb Change warning window text 2022-11-14 12:34:05 +01:00
Jack Jackson
0bb1a792ea Add documentation for issue make when CDPATH is set unusually
Note - you may be wondering "how could your system possibly function if
`.` is not part of `CDPATH`? Testing suggests that behaviour is
inconsistent between shells - `sh` will entirely ignore the current
directory if `.` is absent, but `zsh` will still attempt to search the
current directory even if `.` is not in `CDPATH`
2022-11-14 08:07:43 +01:00