Dimitris Sotirakis
5543ad883d
CI: Remove grafana/drone-grafana-docker image ( #44983 )
...
* Remove grafana/drone-grafana-docker image
* Rename step
* Remove manual gcloud authentication
(cherry picked from commit 329b1a1ef3903c7e2c3ec1f286f9b0f00fcd023e)
* Add publish command for main
* Fix TAG variable parsing
* Remove shouldSave from main builds
* Reorder dependencies
* Update grabpl version
2022-02-07 18:30:41 +01:00
Ashley Harrison
a552e7323f
Improve existing e2e repeat tests a bit ( #45001 )
...
* Improve existing e2e repeat tests a bit
* nicer menu blur
2022-02-07 16:24:30 +00:00
Gábor Farkas and Joey Tawadrous
9c2dd505ff
github: add issues to observability squad projects ( #44992 )
...
* github: add issues to observability squad projects
* Added new actions
Co-authored-by: Joey Tawadrous <joey.tawadrous@grafana.com >
2022-02-07 17:23:58 +01:00
renovate[bot] and Renovate Bot
f0b6aa04ff
Update jest monorepo to v27.5.0 ( #44994 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com >
2022-02-07 16:20:44 +00:00
Karl Persson
922b9465ec
Access Control: Add function to set several permissions on a resource in one transaction ( #44768 )
2022-02-07 17:04:32 +01:00
Gabriel MABILLE
178193c84b
AccessControl: Use an SQLFilter struct ( #44887 )
2022-02-07 16:18:52 +01:00
Agnès Toulet
bdac6576e4
Feature Highlights: add highlight to toolbar button and add upgrade modal ( #44645 )
...
* Feature Highlights: add highlight to toolbar button and add upgrade modal
* replace hideTitle attribute by making title optional
* update modal design
* remove unused updates
2022-02-07 16:04:15 +01:00
Marcus Efraimsson
05ea825c76
Chore: Logging improvements ( #44925 )
...
Fixing a couple bugs, adds some tests and hopefully decrease
lock contention when logging.
Switching from using sync.RWMutex to go-kit SwapLogger.
Fixes bug when creating a new logger from an existing one that
screwed up the keyvals and/or lost the logger name.
Ref #44681
2022-02-07 16:00:08 +01:00
renovate[bot] and Renovate Bot
f4b13f7d04
Update dependency react-calendar to v3.7.0 ( #44984 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com >
2022-02-07 15:46:33 +01:00
Ivana Huckova
2250c229d6
Prometheus: Add multi-word search and higlight to metric selector ( #44906 )
...
* Prometheus: Add multi-word search and higlight to metric selector
* Remove redundant test
* Remove redundant test id
* Update PromQueryBuilder test
* Match only words split with space
2022-02-07 15:18:17 +01:00
J Guerreiro and eleijonmarck
94820e1f29
Add/Delete API keys to Service accounts ( #44871 )
...
* ServiceAccounts: move token handlers to specific file
* ServiceAccounts: move Add API key to Service account
* APIKeys: api keys can still be used even when service accounts are enabled
* APIKeys: legacy endpoint can't be used to add SA tokens
* ServiceAccount: add tests for creation with nil and non-nil service account ids
* ServiceAccounts: fix unnasigned cfg and AC typo
* Test: test service account token adding
* fix linting error
* ServiceAccounts: Handle Token deletion
* rename token funcs
* rename token funcs and api wrapping
* add token deletion tests
* review
Co-authored-by: eleijonmarck <eric.leijonmarck@gmail.com >
* remove bus
* Update pkg/api/apikey.go
Co-authored-by: eleijonmarck <eric.leijonmarck@gmail.com >
2022-02-07 14:51:54 +01:00
Ashley Harrison
12176e24ef
Chore: update eslint ( #44982 )
2022-02-07 13:46:02 +00:00
ying-jeanne
016fa77460
remove bus from loginservice ( #44907 )
2022-02-07 14:36:15 +01:00
ying-jeanne
69c764897e
remove dispatch from apikey ( #44955 )
2022-02-07 21:14:54 +08:00
Eric Leijonmarck
334c29eebf
feat: creation of service account ( #44913 )
...
* feat: creation of service account
* added back button for the details page
* refactor: remove unused file, renamed fields
* oppps
2022-02-07 14:12:39 +01:00
a8e9369084
Update Monthly patch updates ( #44686 )
...
* Update Monthly patch updates
* Remove 3 troublesome packages...
Co-authored-by: Renovate Bot <bot@renovateapp.com >
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com >
2022-02-07 13:08:10 +00:00
Piotr Jamróz
bfe66a1780
Fix conflicts incorrectly resolved in 8fabe8b6a7 ( #44975 )
2022-02-07 13:36:16 +01:00
Torkel Ödegaard
f92ab9bc72
Prometheus: Adds missing options to the new query builder ( #44915 )
...
* Prometheus: Query builder legend format, first working state
* Added format option
* Working options section
* Wrapping stuff up removing old stuff
* Fixed ts issues
* Review fixes
* Added unit tests for preview toggle
2022-02-07 13:32:36 +01:00
Gábor Farkas
d9d1f8520e
loki: backend-queries: set interval-value in dataframe ( #44965 )
...
* loki: backend-queries: set interval-value in dataframe
* fixed unit test
* added interval-specific unit test
2022-02-07 13:02:04 +01:00
idafurjes
caa5f356be
Remove bus from dashboard api ( #44923 )
...
* Remove bus from dashboard api
* Polish api dashboard tests
* Remove Delete Slug method
* Fix sqlstore dashboard test
* Remove bus from dashboard permission
* Remove GetDashboardsBySlug from sqlstore
2022-02-07 12:43:43 +01:00
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] and 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 and achatterjee-grafana
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 and George Robinson
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 and Serge Zaitsev
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 and Ying WANG
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 and Piotr Jamróz
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 and Alex Khomenko
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 and Giordano Ricci
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 and Eric Leijonmarck
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