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 )
v8.4.0-beta1
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
Giordano Ricci
6415b9a54d
Explore: avoid locking timepicker when range is inverted ( #44790 )
...
* Explore: avoid locking timepicker when range is inverted
* Explore: prevent time picker to lock if from & to search parameters are present
2022-02-03 13:45:29 +00:00
Konrad Lalik
bb88cf683c
Alerting: Fix alert notification template ( #44761 )
...
* Wrap the inner template into div to prevent premailer from breaking the HTML structure
* Remove test row
* Add wrapper explanation
* Remove redundant code
* Add empty line
2022-02-03 14:17:05 +01:00
Todd Treece
c8bb4c733e
Prometheus: Set interval on time field ( #44802 )
2022-02-03 08:15:55 -05:00
Gilles De Mey
29b97361f7
Alerting: load correct unified alerting tab ( #44794 )
2022-02-03 13:35:56 +01:00
Serge Zaitsev
43b15b92ad
Chore: Remove bus from the alerting service ( #44496 )
...
* propagate notificationservice down to the notifiers
* replace dispatch in result handler
* remove dispatch from the rule reader
* remove dispatch from eval context
* remove dispatch from alerting usage
* remove dispatch from alerting usage
* remove dispatch from notifier
* attempt to fix tests in alerting
* hello linter, my old friend; also disable some tests for now
* use mocks to fix the tests
* resolving wire providers
* make linter happy
* remove yet another bus.dispatch
* fix tests using store mock
2022-02-03 13:26:05 +01:00
Alex Khomenko
a79c048344
Feature Highlights: move setting to a feature toggle ( #44780 )
...
* Add toggle
* Use the toggle
* Cleanup
2022-02-03 13:53:23 +02:00
Ivana Huckova
c23bc1e7b7
Prometheus: Show variable options in query builder ( #44784 )
...
* Prometheus: Show variable options
* Remove lint error
* Fix test for CodeQL
* Update public/app/plugins/datasource/prometheus/datasource.ts
Co-authored-by: Torkel Ödegaard <torkel@grafana.org >
* Update public/app/plugins/datasource/loki/datasource.ts
Co-authored-by: Torkel Ödegaard <torkel@grafana.org >
Co-authored-by: Torkel Ödegaard <torkel@grafana.org >
2022-02-03 11:40:19 +01:00
Kat Yang
f582e6c86a
Chore: Remove bus from password ( #44482 )
...
* Chore: Remove bus from password
* Refactor: Remove bus from password.go and adjust tests
* remove sqlstore dependency from notifications
* Chore: Remove bus from password
* Refactor: Remove bus from password.go and adjust tests
* remove sqlstore dependency (again)
* remove fmt printf
* fix dependencies in http server
* fix renamed method in tests
Co-authored-by: Serge Zaitsev <serge.zaitsev@grafana.com >
2022-02-03 10:33:46 +01:00
Gábor Farkas
f36ed878e9
Loki: add helper function to handle instant/range queries ( #44785 )
...
* loki: add helper function to handle range/instant queries
* improved comment
Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com >
Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com >
2022-02-03 10:25:37 +01:00
Peter Holmberg
3314178a0a
grafana/ui: Fix RelativeTimeRange supported formats ( #44535 )
...
* remove link to docs site
* extract tooltip to component
* text and formatting
* use div instead of p
2022-02-03 10:13:19 +01:00
Vardan Torosyan
f38f10416a
Revert fixed roles and service accounts ( #44778 )
...
* Revert fixed roles and service accounts
* Leave the fixed role for service accounts
2022-02-03 09:59:26 +01:00
Armand Grillet
8c6a5f043a
[docs] Clarify legacy alerting deprecation ( #44759 )
...
* Clarify legacy alerting deprecation
* Lint Markdown
2022-02-03 09:59:02 +01:00
idafurjes
1b286e6bb5
Remove bus from quota, preferences, plugins, user_token ( #44762 )
...
* Remove bus from quota, preferences, plugins, user_token
* Bind sqlstore.Store to *sqlstore.SQLStore
* Fix test
* Fix sqlstore wire injection, dependency
2022-02-03 09:20:20 +01:00