Torkel Ödegaard
79e5e5c024
DataSource: Default data source is no longer a persisted state but just the default data source for new panels ( #45132 )
...
* PanelEdit: Change the meaning of default data source to be just that the default for new panels
* Added migration, and also migration for annotation datasource prop to data source refs
* fix
* Fixing tests
* Fixes to annotation
* Fixing unit test
2022-03-08 08:56:12 +01:00
Leon Sorokin
a9ee446de4
HeatmapNG: fix Prometheus frame-per-bucket heatmap response rendering ( #46309 )
2022-03-07 20:51:11 -06:00
Jeff Levin
5d2f34d8e2
ValidatedQueries: start of validated queries API ( #44731 )
...
* adds an api endpoint for use with public dashboards that validates orgId, dashboard, and panel when running a query. This feature is in ALPHA and should not be enabled yet. Testing is based on new mock sqlstore.
Co-authored-by: Jesse Weaver <jesse.weaver@grafana.com>
Co-authored-by: Leandro Deveikis <leandro.deveikis@gmail.com>
2022-03-07 09:33:01 -09:00
Karl Persson
77393121ca
ingore permissions in json serialization ( #46295 )
2022-03-07 16:35:57 +01:00
Leon Sorokin
0ee552dd65
LegacyBrowser: fix Safari 13.1 (lacks logical nullish assignent) ( #46260 )
2022-03-07 09:21:28 -06:00
Kevin Yu
1bf605fa83
Docs: Fix link to instructions for backporting a PR ( #46211 )
2022-03-07 07:10:18 -08:00
J Guerreiro
c6cae8411a
APIKeys: add API key migration to ensure fk is null ( #46285 )
2022-03-07 15:58:20 +01:00
Karl Persson
0debf33c76
Access control: Always append all permissions to role admin in oss ( #46282 )
...
* Always append all permissions to built in role admin in oss
2022-03-07 13:28:39 +01:00
Timur Olzhabayev
00a8542ecf
Adding migration guide for dashboard and fixing signing doc ( #46238 )
2022-03-07 13:12:13 +01:00
Ivana Huckova
6e96506c23
Query history: Add search functionality ( #45932 )
...
* Query history: Add search functionality
* Add more tests
* Add documentation
* Fix spell errors
* Update docs
* Update docs
* Fix lint error
* Update docs/sources/http_api/query_history.md
Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com>
* Document limit
* Run tests with postgres and mysql
* Use CASE insted of IIF
* Use BooleanStr instead of 1
* Change LIKE to LikeStr()
* Return back integration tests
* Update SQL to use Bool() everywhere
* Create new tests for sorting
* Update docs/sources/http_api/query_history.md
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
* Update docs/sources/http_api/query_history.md
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
* Update docs/sources/http_api/query_history.md
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
* Update docs/sources/http_api/query_history.md
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
* Update docs/sources/http_api/query_history.md
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
* Add page, count and limit to results
* Remove newline
* Update documentation
* Update docs
Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com>
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
2022-03-07 12:28:04 +01:00
renovate[bot]
801d751b20
Update dependency rollup to v2.70.0 ( #46275 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-07 08:59:50 +01:00
renovate[bot]
f0e48938f8
Update dependency ts-node to v10.7.0 ( #46265 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-07 08:55:08 +01:00
Yuriy Tseretyan
288e8eeb15
Alerting: Do not update rule in database if it was not changed ( #45980 )
...
* do not include update if no diff
* refactor calculate changes to include diff (and log)
Co-authored-by: George Robinson <george.robinson@grafana.com>
2022-03-04 16:16:33 -05:00
J Guerreiro
7f1e8cee2b
APIKeys: Add AC controls for legacy API keys ( #46255 )
...
* APIKeys: Add AC controls for legacy API keys
* pluralize actions
2022-03-04 19:01:03 +01:00
kay delaney
b47f5433d7
DataLinks: Encode variable params for data link URLs ( #46100 )
2022-03-04 17:05:56 +00:00
renovate[bot]
9aa4bde7fc
Update dependency css-loader to v6.7.0 ( #46245 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-04 16:17:39 +00:00
Will Browne
6a8cbd8663
Plugins: Plugin settings refactor ( #46246 )
...
* remove bus and direct use of sqlStore
* add decryption to interface
* return nil
* rename field
* re-order fields
* rename file
2022-03-04 17:09:50 +01:00
Dimitris Sotirakis
b409c9782f
Update grabpl ( #46253 )
2022-03-04 16:31:39 +01:00
Andrej Ocenas
1604e09549
Prometheus: Add text to Add operation button ( #46249 )
2022-03-04 15:59:11 +01:00
Connor Lindsey
23956557d8
TraceView: Reduce whitespace in KeyValuesTable ( #46105 )
2022-03-04 07:37:32 -07:00
Will Browne
7694b78456
mv and refactor ( #46242 )
2022-03-04 15:26:35 +01:00
Andrej Ocenas
5aa1713941
Prometheus: Support more binary operations in visual builder ( #46241 )
...
* Add definitions and code to parse more binary ops
* Add alternativesKey
* Add signs to nested query
* Change label
2022-03-04 15:04:09 +01:00
renovate[bot]
53d8c03dff
Update dependency mini-css-extract-plugin to v2.6.0 ( #46214 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-04 12:13:35 +00:00
Eric Leijonmarck
3d168eb34b
Searchable service accounts ( #45844 )
...
* WIP
* draft of WIP
* feat: search and filtering works 🌈
* Update pkg/models/org_user.go
* Apply suggestions from code review
* refactor: remove unsed function
* refactor: formatting
* Apply suggestions from code review
Co-authored-by: J Guerreiro <joao.guerreiro@grafana.com>
* WIP
* comment
* Update public/app/features/serviceaccounts/ServiceAccountsListPage.tsx
Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>
* review comments
* wip
* working search and initial load of service accounts
* number of tokens working
* removed api call
* Apply suggestions from code review
* added accescontrol param
* accesscontrol prefix corrected
Co-authored-by: J Guerreiro <joao.guerreiro@grafana.com>
Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>
2022-03-04 12:04:07 +01:00
Yaelle Chaudy
45e4611807
Added test coverage commands to package.json ( #46235 )
2022-03-04 11:37:33 +01:00
Shirley
438512c7ef
CloudWatch: Add tests to query input region in executeLogAlertQuery ( #46212 )
2022-03-04 11:15:36 +01:00
Artur Wierzbicki
bdbb9ed54a
Live: Fix support for StreamingFrameAction.Replace
( #46086 )
...
* fix StreamingFrameAction.replace
* simplify
* beautify
* cover `streamingDataFrame.ts` changes with unit tests
* formatting
* cover `LiveDataStream.ts` changes with unit tests
* update frame length after pushing new values
2022-03-04 14:04:30 +04:00
Sergey Kostrukov
1dca39fb91
Auth Proxy: encoding of non-ASCII headers ( #44797 )
...
* Decode auth proxy headers using URL encoding
* Header encoding configuration via settings file
* Rename configuration setting to headers_encoded
* Quoted-printable encoding
* Tests for AuthProxy
* Fix encoding name
* Remove authproxy init
2022-03-04 04:58:27 -05:00
Jack Westbrook
9b5a42845d
Chore: Remove prettier-plugin from ESLint ( #45910 )
...
* chore(eslint): remove prettier-plugin
* chore(eslint): test changes by using grafana/eslint 3.0.0-alpha
* chore(prettier): add js,ts,tsx when checking / writing
* chore(prettier): dont check js files
* chore(linting): align prettier and eslint ignore files
* style: run prettier:write on FE codebase
* chore(eslint): use grafana/eslint-config@3.0.0
2022-03-04 10:49:50 +01:00
Gilles De Mey
a9b1a964b0
Alerting: adds support for federated rules ( #46037 )
2022-03-04 10:16:13 +01:00
matt abrams
52629fbc4e
Postgres: Return tables with hyphenated schemes ( #45754 )
...
* add basic test for buildSchemaConstraint function
* wrap table schema in quote_ident function
* fix type error in meta_query.test
* swap test for inline comment
* make comment more readable
2022-03-04 09:56:55 +01:00
Levente Balogh
c331af93b9
Plugins: allow using both Function and Class components for app plugins ( #46148 )
...
* fix: make it possible to use both class and functional components for plugins
* fix: accept both class and functional components as plugin root pages
* refactor: import types by name
* refactor: use `ComponentType`
2022-03-04 09:52:59 +01:00
Gábor Farkas
c4404982dc
loki: backend-mode: add nanosecond-timestamps ( #45963 )
2022-03-04 09:42:18 +01:00
Jack Westbrook
efe9eed758
Chore: Move Typescript cache file to root ( #45964 )
...
* chore(typescript): move TS cache file to root of repo
* chore(typescript): cache packages ts checks to disk for faster yarn typecheck
2022-03-04 09:26:25 +01:00
Torkel Ödegaard
a404dba29d
Datasource: Fixes changing default data source causes inconsistency between panel data source and query data source ( #46167 )
...
* Datasource: Fixes changing default data source causes inconsistency between panel data source and query data source
* Fix unit tests
2022-03-04 08:58:13 +01:00
Kevin Minehart
0544218bb7
upgrade to 2.9.21 ( #46219 )
2022-03-03 19:00:46 -06:00
Kevin Minehart
593b2846c6
upgrade to 2.9.20 ( #46217 )
2022-03-03 18:09:14 -06:00
Ryan McKinley
0aad61d0ac
Search: add a simple search page (behind feature flag) ( #45487 )
...
Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2022-03-03 14:56:14 -08:00
Kevin Minehart
085a8fde67
linux-x64 -> linux-amd64 ( #46209 )
2022-03-03 23:53:09 +01:00
Shirley
e39d5382cf
CloudWatch: Update minimal policies documentation ( #45478 )
...
* Separate metrics and logs policies
* Update policy examples
Removes GetMetricStatistics which is no longer used
* WIP for testDatasource
* WIP add datasource health check test
* Undo changes on imports
2022-03-03 17:00:10 -05:00
Kevin Minehart
09e74c5ec5
upgrade grabpl ( #46192 )
2022-03-03 18:42:29 +00:00
Karl Persson
7daa0a05e3
Fix spelling ( #46191 )
2022-03-03 19:16:44 +01:00
Karl Persson
8cea8fdaea
Access Control: Filter out hidden permissions in access control dashboard guardian ( #46177 )
...
* Implement GetHiddenACL to handle legacy api correctly
2022-03-03 18:29:39 +01:00
Karl Persson
19266ad3de
Docs: Add documentation for dashboard and folder roles ( #46171 )
...
* Add docs for dashboard and folder permissions
* Add docs for dashboard and folder roles
* Update docs/sources/enterprise/access-control/fine-grained-access-control-references.md
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
* Update docs/sources/enterprise/access-control/fine-grained-access-control-references.md
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com>
2022-03-03 18:29:16 +01:00
Leon Sorokin
3e3a657343
BarChart: fix hovered series highlight in tooltip ( #44882 )
2022-03-03 10:57:54 -06:00
Ashley Harrison
b1125c0ba3
TextPanel: Sanitize after markdown has been rendered to html ( #46166 )
...
* Sanitize after markdown has been rendered to html
* Update e2e test
2022-03-03 16:50:09 +00:00
Kyle Brandt
994a22f4c2
Chore: Remove deprecated no-op option PreferServerCipherSuites ( #46174 )
...
* Chore: Remove deprecated no-op option PreferServerCipherSuites
from the tls configs.
Per golang docs: "PreferServerCipherSuites is a legacy field and has no effect."
2022-03-03 11:48:26 -05:00
Joey Tawadrous
6f3ebbe6cc
Trace view scroll to top button ( #46077 )
...
* Trace view scroll to top button
* Updated button css selector
* Updates for scrolToTop
* Updated snapshot
* Updated render
* Add smooth scrolling
2022-03-03 16:19:44 +00:00
Andres Martinez Gotor
cfbf58fb92
AzureMonitor: Move rest of deprecated code ( #46109 )
2022-03-03 17:16:10 +01:00
renovate[bot]
0880e0a472
Update dependency webpack to v5.70.0 ( #46172 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-03 16:55:00 +01:00