renovate[bot]
08ee093dfe
Update Storybook updates to v6.4.15 ( #44586 )
...
* Update Storybook updates to v6.4.15
* revert(storybook): remove webpack process resolution as 6.4.14 patched it
* chore(yarn): update packageExtensions for storybook bump
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Jack Westbrook <jack.westbrook@gmail.com>
2022-02-07 11:29:15 +01:00
renovate[bot]
b28f12608d
Update dependency fork-ts-checker-webpack-plugin to v7 ( #44620 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-02-07 11:26:55 +01:00
Dimitris Sotirakis
67225d9cfc
Update upload-cdn command args ( #44966 )
2022-02-07 10:56:05 +01:00
Dimitris Sotirakis
f96a6c10c5
CI: Update GCP_GRAFANA_UPLOAD_KEY
var name ( #44303 )
...
* Update GCP_KEY var name
* Rename GCP_GRAFANA_UPLOAD_KEY for upload-packages
* Update grabpl
2022-02-07 10:11:27 +01:00
Marcus Andersson
eb9d85a2bf
Deprecation: use locationService in favor of getLocationSrv ( #44813 )
...
* deprecated
* updating documentation.
* added deprecation notice.
* Replacing deprecated getLocationSrv.
* Update docs/sources/developers/plugins/migration-guide.md
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
* Update docs/sources/developers/plugins/migration-guide.md
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
* Update docs/sources/developers/plugins/migration-guide.md
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
* Update docs/sources/developers/plugins/migration-guide.md
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
* updating according to feedback.
* Update docs/sources/developers/plugins/migration-guide.md
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
* Update docs/sources/developers/plugins/migration-guide.md
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
2022-02-07 09:37:56 +01:00
Gábor Farkas
560c773905
loki: run some queries through the backend ( #44729 )
2022-02-07 08:43:48 +01:00
Nathan Marrs
3a2e3267ba
BarChart: Add support for data links ( #44932 )
2022-02-04 18:31:00 -08:00
Leon Sorokin
b07345e57e
StateTimeline: add spanNulls editor ( #44811 )
2022-02-04 16:57:11 -06:00
Alexander Weaver
935059a376
Alerting: Create basic storage layer for provisioning ( #44679 )
...
* Simplistic store API for provenance lookups on arbitrary types
* Add a few notes in comments
* Improved type safety for provisioned objects
* Clean-up TODOs for future PRs
* Clean up provisioning model
* Clean up tests
* Restrict allowable types in interface
* Fix linter error
* Move AlertRule domain methods to same file as AlertRule definition
* Update pkg/services/ngalert/models/provisioning.go
Co-authored-by: George Robinson <george.robinson@grafana.com>
* Complete interface rename
* Pass context through store API
* More idiomatic method names
* Better error description
* Improve code-docs
* Use ORM language instead of raw sql
* Add support for records in different orgs
* ResourceTypeID -> ResourceType since it's not an ID
Co-authored-by: George Robinson <george.robinson@grafana.com>
2022-02-04 13:23:19 -06:00
Kat Yang
7105bb3be7
Chore: Remove bus from admin users ( #44869 )
...
* Chore: Remove bus from admin users
* Mock authinfoservice
* Update user id
* attempt to fix the tests in admin users api
* fix type cast
* revert skipped tests
Co-authored-by: Serge Zaitsev <serge.zaitsev@grafana.com>
2022-02-04 13:45:42 -05:00
Yuriy Tseretyan
ddfe2dce74
Alerting: Split grafana and lotex routes ( #44742 )
...
* split Lotex and Grafana routes
* update template to use authorize function for every route
2022-02-04 12:42:04 -05:00
Will Browne
126ed461b1
remove grafana specific config from package ( #44866 )
2022-02-04 18:14:53 +01:00
Kat Yang
5c87044aa2
Chore: Remove bus from frontend settings ( #44921 )
2022-02-04 17:55:50 +01:00
Kat Yang
0e6300fb49
Chore: Remove bus from admin ( #44920 )
...
* Chore: Remove bus from admin
* fix test
Co-authored-by: Ying WANG <ying.wang@grafana.com>
2022-02-04 17:53:58 +01:00
Serge Zaitsev
9d654bb6b8
Chore: Remove bus from plugin proxy api ( #44899 )
...
* remove bus from plugin proxy api
* fixing the tests
2022-02-04 17:35:00 +01:00
idafurjes
7a23700e1a
Remove unused GetDashboard method ( #44890 )
...
* Remove unused GetDashboard method
* Uncomment test
* Fix dashboard service integration test
* Remove comment
2022-02-04 17:21:06 +01:00
Piotr Jamróz
a40fa83893
Query History: Remove unused properties ( #44904 )
...
* Remove unused properties
* Fix unit tests
* Fix unit tests
2022-02-04 17:05:46 +01:00
Ivana Huckova
0f362f8dfc
Query history: Create API to delete query from query history ( #44653 )
...
* Query history: Add delete and refactor
* Update docs/sources/http_api/query_history.md
Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com>
Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com>
2022-02-04 16:14:36 +01:00
Gilles De Mey
1680e284e5
Alerting: validate namespace and groupname for Grafana manages and Lotex alerts ( #44872 )
2022-02-04 15:04:11 +01:00
George Robinson
9df43abbb5
Fix evaluation of alert rules for datasources with custom headers ( #44862 )
...
* Fix evaluation of alert rules for datasources with custom headers
* Fix unit tests
* Fix integration tests
* Evaluator fields should be package private
2022-02-04 14:56:37 +01:00
Karl Persson
3cf31451ec
Access control: Reduce number of API calls for role picker ( #44905 )
...
* Restucture state for TeamRolePicker and UserRolePicker
Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>
2022-02-04 14:54:42 +01:00
Serge Zaitsev
61533a3cb4
Chore: Remove bus from health api ( #44897 )
...
* remove bus from health api
* fix health api tests
* use db health query as a method
* use pointer in sqlstore mock
2022-02-04 14:33:35 +01:00
Serge Zaitsev
058e3ffc21
Chore: Remove bus from Alerting API ( #44894 )
...
* assign handlers to httpserver
* turn sqlstore mock in to a pointer
* add search service interface
* fix tests for alerting and other apis
* once again, make linter happy
2022-02-04 13:41:15 +01:00
Vardan Torosyan
b38d3f339a
Documentation for granting and revoking access for teams. ( #44863 )
2022-02-04 13:17:25 +01:00
Piotr Jamróz
6bb6b13379
Query History: Refactor persistence layer ( #44545 )
...
* Extract Rich History storage into two separate implementations
Implement getting all entries and adding a new entry
* Add deleting rich history items
* Add editing rich history
* Simplify RichHistoryStorage API
* Reorganize methods
* Rename variable
* Remove feature toggle
* Fix TS errors
* Fix tests
* Clean up
* Clean up only when adding new entry
* Fix showing a warning message
* Use enum instead of a string
* Update public/app/core/history/richHistoryLocalStorage.ts
Co-authored-by: Giordano Ricci <me@giordanoricci.com>
* Update public/app/core/history/richHistoryLocalStorage.ts
Co-authored-by: Giordano Ricci <me@giordanoricci.com>
* Improve readability
* Rename files and remove inferred return types
* Use const over a var
* Remove unsed files
* Remove redundant null check
* Update public/app/core/history/richHistoryLocalStorageUtils.ts
Co-authored-by: Giordano Ricci <me@giordanoricci.com>
* Fix linting issues
Co-authored-by: Giordano Ricci <me@giordanoricci.com>
2022-02-04 12:46:27 +01:00
Ashley Harrison
9e52361c1e
Accessibility: Fix text selection when using FocusScope ( #44770 )
...
* Add tabIndex={-1} to places using focusScope to allow for text highlighting
* use useDialog
* don't need explicit tabIndex anymore
* remove duplicate spreading of props
2022-02-04 11:20:18 +00:00
Ivana Huckova
e7a0e69153
Loki: Use explore query field unless new query builder feature toggle is enabled ( #44858 )
...
* Loki: Fix using of Explore editor in Explore
* Add test and remove Explore fields in module
* Update tests
2022-02-04 12:19:18 +01:00
Jeremy Price
525d9d97a8
Fix crash on no service accounts ( #44389 )
...
* Fix crash on no service accounts
* Fix tests
* Update org_users.go
* Update org_users.go
* linter, again
* Update build.go
* Update pkg/services/serviceaccounts/tests/common.go
* fix: big D
Co-authored-by: Eric Leijonmarck <eric.leijonmarck@gmail.com>
2022-02-04 11:06:30 +00:00
Gabriel MABILLE
74ee5262e8
vscode: proposal to add current workdir to vscode config ( #39088 )
2022-02-04 09:18:40 +01:00
Josh Hunt
f1b2e2b7ff
Chore: More variable e2e tests ( #44803 )
...
* Add Datasource variable e2e tests
* Update other tests
* Fix names/comments in tests
* Add Interval variable tests
* fix typo
2022-02-04 12:37:01 +11:00
Josh Hunt
de7a920967
Chore: Suppress messages and logs from tests ( #44629 )
...
* Suppress "not wrapped in act()" warning in UserPicker test
* Add menuShouldPortal to AmRoutesExpandedForm to suppress deprecation warning
* use forwardRef in alerting ActionIcon to suppress ref warning
* Add menuShouldPortal to alerting GroupBy to suppress deprecation warning
2022-02-04 12:36:44 +11:00
Jeff Levin
df8e377b5e
Add feature toggle for validated queries ( #44453 )
...
This PR was written before the featuremgmt package. The authors of that package included the validated queries toggle. Merging for history.
2022-02-03 16:30:23 -09:00
Josh Hunt
6211ca4d3d
Chore: Move variable field selectors to data-testid ( #44801 )
...
* Chore: Move variable field selectors to data-testid
* Fix data source variable editor selector
* fix test
2022-02-04 11:55:19 +11:00
Gilles De Mey
c1a0c2664c
Alerting: add custom grouping to Alert Panel ( #44559 )
...
Co-authored-by: Peter Holmberg <peterholmberg@users.noreply.github.com>
2022-02-03 19:07:27 +01:00
ying-jeanne
c5211f848d
remove bus from search service ( #44825 )
2022-02-03 18:46:38 +01:00
Selene
3ce0730558
AuthService: Move database logic to its own class and package ( #44835 )
...
* Move database logic to its own class and package
* Fix lint
2022-02-03 18:23:45 +01:00
Kat Yang
9b3cb4a306
Chore: Remove bus from index ( #44851 )
2022-02-03 18:22:21 +01:00
bolshoytoster
7f2d3055d8
Logging: Fix don't return an error trying to initialize the file logger ( #42952 )
...
Fixes #42897
Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com>
2022-02-03 18:17:25 +01:00
Gabriel MABILLE
8217d6d206
AccessControl: Change teams permissions page when accesscontrol is enabled ( #43971 )
...
* AccessControl: Change teams permissions page when frontend is hit
* Implement frontend changes for group sync
* Changing the org/teams/edit permissions
Co-authored-by: ievaVasiljeva <ieva.vasiljeva@grafana.com>
* Fixing routes
Co-authored-by: ievaVasiljeva <ieva.vasiljeva@grafana.com>
* Use props straight away no need to go through the state
Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>
* Update public/app/features/teams/TeamPages.tsx
Co-authored-by: ievaVasiljeva <ieva.vasiljeva@grafana.com>
Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>
2022-02-03 17:49:39 +01:00
Sergey Kostrukov
85ea1a5d64
Prometheus: Fix Azure authentication support ( #44407 )
...
Re-adding back Azure authentication support to Prometheus datasource
after the datasource query logic was rewritten from plugin.json routes to
Go backend.
Ref #35857
2022-02-03 17:06:31 +01:00
Gabriel MABILLE
6d931226d8
AccessControl: Show UserPicker based on canListUsers
( #44843 )
...
* AccessControl: Show UserPicker based on canListUser
* Update public/app/core/components/AccessControl/AddPermission.tsx
Co-authored-by: Ieva <ieva.vasiljeva@grafana.com>
2022-02-03 16:59:25 +01:00
Andres Martinez Gotor
71e3e6ec93
Chore: Update pre version ( #44855 )
2022-02-03 16:52:53 +01:00
Andres Martinez Gotor
53a693fd84
Chore: Update latest.json ( #44854 )
2022-02-03 16:52:22 +01:00
Gabriel MABILLE
86756ee3e5
AccessControl: introduce a different accesscontrol check (licensed or not) ( #44777 )
...
Co-authored-by: ievaVasiljeva <ieva.vasiljeva@grafana.com>
2022-02-03 16:27:53 +01:00
Ieva
602d62ebcc
Access control: FGAC for team sync endpoints ( #44673 )
...
* add actions for team group sync
* extend the hook to allow specifying whether the user is external
* move user struct to type package
* interface for permission service to allow mocking it
* reuse existing permissions
* test fix
* refactor
* linting
2022-02-03 15:27:05 +00:00
Marcus Efraimsson
bc7e55d99b
Chore: Fix log filters ( #44681 )
2022-02-03 23:20:02 +08:00
Dimitris Sotirakis
5f16e4cedc
Rename build-e2e-publish pipelines ( #44836 )
2022-02-03 14:23:50 +00:00
Gábor Farkas
0c2ba819a7
Loki: use generic grafana null-insertion mechanism ( #44826 )
...
* loki: refactor: return dataframes instead of timeseries
* fixed unit test
* removed unused import
2022-02-03 15:23:38 +01:00
Grot (@grafanabot)
afac7701cb
ReleaseNotes: Updated changelog and release notes for 8.4.0-beta1 ( #44822 )
2022-02-03 15:15:48 +01:00
Armand Grillet
a943bf9963
Improve prettier:check output ( #44816 )
2022-02-03 15:13:14 +01:00