Commit Graph

19785 Commits

Author SHA1 Message Date
Esteban Beltran
f890cb23b8
Sandbox: use same trusted types default policy than grafana main realm (#75539) 2023-09-27 16:50:23 +02:00
Aaron Sanders
e4e19f6ca2
DashGPT: Simplify auto-generate state management as a hook (#75236)
Co-authored-by: Ivan Ortega <ivanortegaalba@gmail.com>
Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2023-09-27 16:47:06 +02:00
Alex Khomenko
13321788e8
OrgUsersTable: Fix RolePicker overflow (#75541)
* OrgUsersTable: Fix RolePicker overflow

* Remove redundant styles
2023-09-27 17:24:58 +03:00
Levente Balogh
163b0d182b
Connections: Make the "Add new Connection" page work without internet access (#75272)
* fix: make the "Add new Connection" page work without internet access

* feat: update error message

* fix: update the API url in the error log
2023-09-27 15:04:23 +02:00
Ashley Harrison
b374912937
Drawer: Make content scroll by default (#75287)
* deprecate scrollableContent prop and make it the default behaviour

* restore prop behaviour, just make it default to true

* Update packages/grafana-ui/src/components/Drawer/Drawer.tsx

Co-authored-by: Alexa V <239999+axelavargas@users.noreply.github.com>

---------

Co-authored-by: Alexa V <239999+axelavargas@users.noreply.github.com>
2023-09-27 13:31:57 +01:00
Virginia Cepeda
14e94d663f
Alerting: Show panels within collapsed rows in dashboard picker (#75490)
* Show panels within collapsed rows in dashboard picker

* Fix lint

* fix lint
2023-09-27 09:15:42 -03:00
Esteban Beltran
2bbd5521fe
Sandbox: Use resolveCache to resolve plugin's code file as systemjs does (#75509)
* Sandbox: Use resolveCache to resolve plugin's code file as systemjs does

* Add clarifying comments
2023-09-27 13:56:35 +02:00
Josh Hunt
720543f483
Chore: Remove unreachable return in parseDataplaneLogsFrame (#75516) 2023-09-27 11:11:37 +00:00
Matias Chomicki
a3d0dfcbcc
Loki: Improve getLogQueryFromMetricsQuery (#75492)
* Query utils: fix bug in getLogQueryFromMetricsQuery function

* Query utils: implement getLogQueryFromMetricsQueryAtPosition

* Loki autocomplete situation: use getLogQueryFromMetricsQueryAtPosition

* Fix typo

* getLogQueryFromMetricsQueryAtPosition: use find instead of filter
2023-09-27 11:39:50 +03:00
Joey
d57aef2eda
Tempo: Normalize static filter queries (#72794)
* Only show static filter if tag is defined

* Update previosuly left out test

* Add test

* Add warning if tag is missing
2023-09-27 09:03:37 +01:00
Alex Khomenko
87ced17060
Admin: Use InteractiveTable for user and team tables (#74821)
* Admin: Use InteractiveTable

* Admin: Fix pagination

* Admin: Use CellWrapper

* Admin: Split components

* Admin: Separate OrgUsersTable

* Admin: Remove UsersTable

* Admin: Use the new table for TeamList

* Admin: Cleanup TeamList page

* Admin: Add edit team action

* Admin: Use explicit edit action instead of a link wrapper

* Admin: Fix responsive styles

* Cleanup

* Remove redundant sort

* Add item key

* Fix icon styles

* Set loading by default

* Use separate pagination component

* Use default sorting functionality

* Fix merge conflicts

* Update betterer

* Move pagination inside OrgUsersTable.tsx

* Disable sort if results have more than 1 page

* Update betterer results

* Use CSS objects

* More style fixes

* Update betterer
2023-09-27 08:55:57 +03:00
Leon Sorokin
32ed3e8009
TimeSeries: Implement ad hoc y-zoom via Shift-drag (#75408) 2023-09-26 18:12:45 -05:00
Dominik Prokop
918f11d81e
Revert "Dashboard: Reduce scope of contain: strict to TextPanel (#75466)
Revert "Dashboard: Reduce scope of `contain: strict` to TextPanel (#75329)"

This reverts commit ade0de5ae9.
2023-09-26 08:51:26 -07:00
Matias Chomicki
edbe45efc2
Elasticsearch: HTTP settings migration (#72840)
* Elasticsearch: migrate data source http settings

* Elasticsearch: migrate data source http settings

* Remove test code

* Update unit test

* Connection settings: add url placeholder

* Elasticsearch config editor: improve on-change handling of custom auth

* Config editor: add missing oauthPassThru option
2023-09-26 17:17:17 +02:00
Domas
bd452fe904
Trace View: Remove "deployment.environment" default traces 2 logs tag (#74986)
* Remove deployment.environment default tag

* format

* remove mentions from docs
2023-09-26 16:52:32 +03:00
Galen Kistler
af3ea54d0e
Logs Panel: Add milliseconds to download file (#75045)
* add milliseconds to log panel txt file download
2023-09-26 07:14:40 -05:00
Laura Fernández
611df82259
Grafana UI: create Grid component in the unstable package (#75299) 2023-09-26 14:02:50 +02:00
renovate[bot]
3bd9bfe2be
Update dependency @grafana/scenes to v1.8.0 (#75371)
* Update dependency @grafana/scenes to v1.8.0

* remove ts-expect-errors

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2023-09-26 14:02:42 +03:00
Ivan Ortega Alba
735b6493b1
Dashboards: Auto-generate dashboard title and description when saving as (#75246) 2023-09-26 12:53:08 +02:00
Jack Westbrook
8affc84d13
Fix: Provide default angular export for plugins (#75424)
fix(plugins): provide default export of angular for old system.register plugins
2023-09-26 13:24:09 +03:00
Esteban Beltran
95889b2e25
Tests: Add basic e2e tests for frontend plugin sandbox (#70759)
* Add initial e2e tests for sandboxing

* Add tests for sandbox on

* Add additional sandbox tests

* Move sandbox into various suite

* Test drone setup

* Move variable

* Update drone

* Update plugins path for e2e

* Revert drone changes

* use drone from main

* Use lib.star from main

* Move sandbox test to its own suite

* Expand methods to inject iframes

* Restore e2e script

* Add back change to script

* Update tests for trusted types

* Integrate custom plugins into grafana-server

* Echo for deubging

* add debugging message

* Expand message

* Add extra for ci

* fix path

* Improve start-server logic

* Remove duplicated logic

* Restore file deleted by mistake

* Restore file to main
p

* restore file

* Restore start script

* Update e2e/panels-suite/frontend-sandbox-panel.spec.ts

Co-authored-by: Levente Balogh <balogh.levente.hu@gmail.com>

---------

Co-authored-by: Levente Balogh <balogh.levente.hu@gmail.com>
2023-09-26 10:58:47 +02:00
Gilles De Mey
5a1580c659
Alerting: Contact points v2 part 3 (#72444) 2023-09-26 11:44:18 +03:00
Leon Sorokin
ade0de5ae9
Dashboard: Reduce scope of contain: strict to TextPanel (#75329) 2023-09-25 23:47:38 +03:00
Kat Yang
9532ff3799
Chore: Split OSS and Enterprise OAPI Spec Generation (#75133)
* chore: implement sofia makefile changes from #62456

* chore: clean up makefile and generate specs

* docs: update command to delete old specs

* fix: regenerate specs with enterprise linked

* chore: implement review comments

* Update Makefile

Co-authored-by: Sofia Papagiannaki <1632407+papagian@users.noreply.github.com>

* chore: update make command in drone step

* chore: update bingo, fix makefile indentation error, regen specs

* fix: revert .bingo/README changes to make prettier happy

* chore: add BEP as owners of api-enterprise-spec.json

* chore: rerun drone

---------

Co-authored-by: Sofia Papagiannaki <1632407+papagian@users.noreply.github.com>
2023-09-25 15:34:57 -04:00
Galen Kistler
a996f3b4a7
Loki Query Builder: Throw warning in query builder when order of operations is ambiguous (#75198)
* flag vector aggregations containing metric expressions (i.e.`(...)`) containing binary operation expressions with ambiguous error in the UI when switching between code and visual query builders.
2023-09-25 21:28:51 +03:00
Sarah Zinger
ef441f02d0
Cloudwatch: Fix Unexpected error (#74420)
Fix unexpected error when creating a new cloudwatch datasource.

Involves a fair amount of refactoring, so if this causes unexpected issues related to region fetching we can turn this off with the cloudwatchNewRegionsHandler feature toggle, although we do not predict it will so we are enabling it to default to true and hope to remove it shortly.
2023-09-25 14:19:12 -04:00
Leon Sorokin
436b0ee48a
Dashboard: Set z-index of active panel to 999 (#75382) 2023-09-25 11:58:03 -05:00
Josh Hunt
b4a6e7ac7f
Chore: Update pseudo locale (#75383) 2023-09-25 19:15:17 +03:00
Victor Marin
13db9066a3
Transformations: Show row index as percent in 'Add field from calculation' (#74322)
* show row index as percentage in add field from calc transform

* prettier

* add test + modify docs

* show quantile and add percentage unit default. add explanatory tooltip and docs

* fix test

* set unit percent only on quantile mode

* Change naming to percentile

* Rename to As Percentile

* docs mods
2023-09-25 18:34:42 +03:00
Juan Luis Peña Wagner
ffb15ef363
NodeGraph: Allow to set node radius in dataframe (#74963)
Allow to set node radius in dataframe
2023-09-25 16:55:52 +02:00
Isabella Siu
4cc72a22ad
OpenSearch: Add timeRange to parameters passed to getTagValues (#74952) 2023-09-25 09:57:39 -04:00
Andreas Christou
61e3f3a059
MSSQL: ConfigEditor updates (#75275)
* Add secure json data type

* Update Azure credentials form with Field components

- Update labels
- Update widths
- Remove excess code

* Update config editor

* Fix lint
2023-09-25 14:14:41 +01:00
Leon Sorokin
6811b0ae63
Dashboard: Set descending z-index of panels in a dashboard (v2) (#75328)
Co-authored-by: Adela Almasan <adela.almasan@grafana.com>
2023-09-25 06:46:11 -05:00
Aditi Patel
56c75cc542
I18n: Markup ExploreToolbar component (#74292)
* chore: markup explore-split-toolbar and data-source-dropdown

* chore: markup explore-refesh-picker

* fix:  apostrophe in empty-recent-list paragraph

* chore: added markup for add to dashboard

* fix: corrected prefix

* fix: typos

* chore: updated markup prefixes in all other languages

* chore: added i18n markup for aria-labels

* i18n files generated

* i18n aria-label added for Add to Dashboard

* fix: fixed prefixes according to the grafana guidelines

* chore: generated i18n json files

* fix: fixed prefixes

* fix: apos; entity rendering

* chore: updated markup files

* chore: updated markup Locale file

* fix: updated prefix names

* chore: updated markup files

* fix: updated markup prefix for data-source-picker

* fix: trimmed extra spaces

* chore: updated markup files

* fix: added back translation phrases

* fix: Updated prefix name in DataSourceDropdown.tsx

* fix: created addToDashboard variable with translation markup
2023-09-25 10:38:17 +02:00
Leon Sorokin
0668820259
StateTimeline: Refactor hover markers (#75326) 2023-09-23 05:35:17 +03:00
Leon Sorokin
aadd5bacfa
Chore: uPlot v1.6.26 (#75199) 2023-09-22 11:33:39 -05:00
ismail simsek
a64bfdfb94
InfluxDB SQL: Provide raw query preview for query history (#75030)
* log the sql query

* render the raw sql

* Update rawQuery

* unit tests
2023-09-22 17:40:18 +02:00
ismail simsek
d076f733e9
Prometheus: Fix applying ad-hoc filters to the expression that has a template variable (#75250)
* Interpolate first and then apply ad-hoc filters

* More tests
2023-09-22 17:32:19 +02:00
Ashley Harrison
ff0642bf6e
Chore: Type improvements 🧹 (#75271)
* fix some e2e flows types

* some type fixes

* must... fix... more...

* MOAR

* MOREMOREMORE

* 1 more
2023-09-22 15:06:49 +01:00
Ivan Ortega Alba
eba74f0408
Analytics: Track usage of auto-generate functionality (#75267) 2023-09-22 16:03:50 +02:00
Joey
4155f0a92e
Tracing: Fix cannot assign to read only property in TagMappingInput (#75070)
* Fix cannot assign to read only property in TagMappingInput

* cloneDeep and updates

* Update assignment

* Updates state change
2023-09-22 15:03:42 +01:00
Kristina
e1f7501359
Explore: Anchor to 0 in timeseries' stacked displays (#75251)
Anchor to 0 for stacked explore graphs
2023-09-22 07:50:29 -05:00
Galen Kistler
ac98197132
Loki Query Builder: binary expression and numeric literal bugs (#74950)
* Following similar changes made to prometheus in #47198, reverse the order of binary operator parameter array, and fix bugs introduced by importing prometheus lezer constants into loki parser

* add unit test asserting buildVisualQueryFromString does not properly parse queries with nested binary operations

* fix onOrIgnoring parsing logic which was always stripping out the value of the matcher when a boolean was found
2023-09-22 07:17:01 -05:00
Andres Martinez Gotor
c70623fb85
Chore: Rename testdata plugin with a fully qualified name (#75104) 2023-09-22 15:00:40 +03:00
Torkel Ödegaard
3529b7413d
DashboardScene: Include url params when switching from old dashboard arch to new (#74969)
* DashboardScene: Include url params when switching from old dashboard arch to new

* remove imports

* fix
2023-09-22 13:04:17 +02:00
Ivana Huckova
28b4d7fa0c
Loki: Remove unused methods (#75106)
* Loki: Remove unused imports in dataosurce.ts

* Extract range from props, fix lint

* Fix naming

* Remove unused types
2023-09-22 12:41:54 +02:00
Andreas Christou
c78d5fa4e3
Update QueryVariableEditor layout (#75099)
* Allow setting legend header style and add container

* Use Box and Text components

* Minor element update

* Use box instead of div
2023-09-22 11:04:22 +01:00
Matias Chomicki
91ed2a6afe
Loki Query Editor: Add support for new logfmt features (#74619)
* Loki autocomplete: add IN_LOGFMT situation for log queries

* Loki autocomplete: add IN_LOGFMT situation for metric queries

* Loki autocomplete: improve handling of trailing pipes and spaces

* Loki autocomplete: add logfmt arguments completion

* Loki autocomplete: add flags support to IN_LOGFMT

* Loki autocomplete: extend IN_LOGFMT situation with labels and flag

* Loki autocomplete: return logQuery in IN_LOGFMT situation

* Loki autocomplete: offer label completions when IN_LOGFMT

* Query utils: update parser detection method

* Validation: update test

* Loki autocomplete: improve IN_LOGFMT detection when in metric query

* Loki autocomplete: improve logfmt suggestions

* Loki autocomplete: improve logfmt suggestions in different scenarios

* Loki autocomplete situation: refactor resolvers to support multiple paths

* Situation: add test case

* Loki autocomplete: allow user to use 2 flags

* Situation: change flag to flags

* Remove console log

* Validation: import test parser

* Completions: better handling of trailing comma scenario

* Upgrade lezer-logql

* Revert temporary imports

* Loki Query Builder: Add support for new logfmt features (#74858)

* Query builder: add params to logfmt definition

* Logfmt operation: add default params

* Query builder: update deprecated JsonExpression

* Operation utils: update logfmt renderer

* Query builder: parse LogfmtParser

* Query builder: parse LogfmtExpressionParser

* Remove console log

* Remove unused variable

* Remove extra character from render

* Update unit tests

* Fix unit tests

* Operations: remove restParams from logfmt booleans

* Parsing: group cases

* Formatting

* Formatting

* Update modifyQuery

* LogContextProvider: update with parser changes

* LogContextProvider: remove unnecessary type castings

It takes more energy to write `as unknow as LokiQuery` than to write a refId.

* Formatting

* Situation: use charAt instead of substring with endsWith

* Situation: explain logfmt suggestions

* Logfmt: improve flag suggestions

* Remove console log

* Completions: update test
2023-09-22 12:34:17 +03:00
Joey
e0659c05da
Tracing: Span filters reset show matches only (#75150)
* Reset show matches only when clear button pressed

* Add test

* Update test
2023-09-22 09:02:38 +01:00
Torkel Ödegaard
115038a35b
Breadcrumbs: Enable plugins to override breadcrumbs that are generated by pages defined in plugin.json (#75218)
* Breadcrumbs: Make it more flexible for plugins to override items defined in plugin.json

* only check when we have a url

* better fix
2023-09-22 07:38:34 +02:00