3
0
mirror of https://github.com/grafana/grafana.git synced 2025-02-25 18:55:37 -06:00
Commit Graph

87 Commits

Author SHA1 Message Date
Kristina
7b4dd4fe47
Explore: Only update pane's instance of Inspector ()
* send instance ID to query inspector, ensure requestId match before updating data

* Extract logic for mixed request ID, use in Explore prefix when appropriate

* Change query inspector to get passed request ID

* Fix test
2024-02-16 08:10:22 -06:00
Victor Marin
a1ff439a20
Fix query inspector in explore to scroll to bottom () 2024-02-14 10:00:16 +02:00
renovate[bot]
f8056a3e56
Update dependency react-virtualized-auto-sizer to v1.0.20 ()
* Update dependency react-virtualized-auto-sizer to v1.0.20

* Update dependency react-virtualized-auto-sizer to v1.0.20

* update types

* mock in a few more tests

* fix InspectDataTab test

* fix test

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-01-17 12:13:14 +00:00
Haris Rozajac
bdbc3f351c
Explore: Format data in Data tab in Query Inspector ()
* Fix betterer

* Improve formatting logic
2024-01-16 07:04:31 -07:00
Fabrizio
522519f671
Tempo: Decouple Tempo from Grafana core () 2024-01-16 11:36:40 +01:00
kay delaney
c80b14951d
InspectDataTab: Use templateSrv.replace with getProcessedData () 2023-12-11 14:11:27 +00:00
Kristina
fc4b0faacd
Explore: Hide support button ()
Only show support button if there is a dashboard
2023-11-28 07:30:58 -06:00
kay delaney
9e11779921
Chore: Clean up usage of deprecated stylesFactory function () 2023-11-21 14:01:53 +00:00
Ashley Harrison
2c0c51a0df
Chore: improve types ()
* fix some types

* more type updates

* some more fixes

* more changes

* string instead of unknown

* more like original logic

* remove outdated comment

* update betterer
2023-11-16 12:39:12 +00:00
Esteban Beltran
0b03344baa
Chore: Update to typescript 5 ()
* Update dependency typescript to v5

* Update yarn.lock

* Fix typescript errors

* Update typescript version sdk

* Revert useDescription.ts

* Fix ts errors

* Fix Typescript errors after Symbol.unscopables type change

* Fix colormanipulator errors

* Update packages/grafana-data/src/vector/FunctionalVector.ts

* Fix ts errors in dashboardmigrator

* Fix sandbox component typescript error

* Update yarn

* Update to typescript 5.2

* Fix typescript error

* update typescript/vscode patch/sdk/whatever

* fix ts errors in elasticsearch

* Fix two errors in alerting

* Fix error in dashboard-scene

* Fix errors in dashboard tests

* Fix errors in explore tests

* Fix error in plugins sandbox

* fix error in DashboardQueryRunner

* fix errors in grafana-data

* fix errors in PanelChrome story

* update betterer

* better fix for cloud monitoring

* fix error in reducer tester

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Zoltán Bedi <zoltan.bedi@gmail.com>
Co-authored-by: Josh Hunt <joshhunt@users.noreply.github.com>
Co-authored-by: joshhunt <josh@trtr.co>
2023-11-07 13:20:20 +00:00
Alex Khomenko
25779bb6e5
Stack: Use the component from grafana/ui ()
* grafana/ui: Move Stack out of unstable

* grafana/ui: Replace imports

* Replace the import from experimental

* Cleanup

* Remove invalid prop

* Add flexGrow

* Remove Stack used in Field

* Remove import
2023-11-06 18:15:52 +02:00
Stefan Mitic
4d8560d9a9
i18n: Markup Explore's Query Inspector for translations () 2023-10-13 18:36:43 +01:00
Galen Kistler
af3ea54d0e
Logs Panel: Add milliseconds to download file ()
* add milliseconds to log panel txt file download
2023-09-26 07:14:40 -05:00
Ryan McKinley
a1250632c3
Inspector: Show transformation query errors () 2023-09-20 09:09:51 -07:00
Torkel Ödegaard
05f01dee0c
DashboardScene: Inspect / query tab () 2023-09-14 12:45:13 +02:00
Torkel Ödegaard
5e9f252962
DashboardScene: Inspect / Json tab ()
* DashboardScene: Inspect / Json tab

* Fixing behaviors and writing tests

* Progress

* limit options based on data provider

* Fixes

* Add tracking

* Remove unused function

* Remove unused function

* Fix test

* Update

* Move utils function

* Rename to source
2023-09-14 12:17:04 +02:00
Torkel Ödegaard
73a675af02
DashboardScene: Inspect panel data tab ()
* Refactor data tab to be usable from scenes

* DashboardScene: Inspect data tab

* Everything seem to work now

* don't change drawer size in this PR

* Remove uncommented code

* Fix layout issues for data actions

* Added comment explaining retry
2023-09-11 16:11:22 +02:00
Ashley Harrison
963fffeef1
Chore: fix some more types ()
fix some more types
2023-08-14 16:04:04 +01:00
Gábor Farkas
2c82a6b6c4
Traces: Enable showing trace ids ()
* traces: enable showing trace ids by default

* removed unused imports
2023-07-20 07:59:38 +02:00
Juan Cabanas
8a6c6c3285
PanelInspect: Download CSV without extra blank rows () 2023-07-10 12:16:47 -03:00
Torkel Ödegaard
9f2baaf5c3
PanelInspect: Clean table display settings from field config ()
* Does not work, hmm..

* now it works

* fixing and refactoring

* remove unused import
2023-07-10 16:27:03 +02:00
Gábor Farkas
a62ae10a02
logs: refactor: move logsModel to the logs folder ()
* move files

* fixed imports in the moved files

* updated imports pointing to the moved files
2023-07-04 13:27:52 +02:00
Alexa V
c025783367
Dashboard: Fix Drawer validation to avoid errors with empty request objects () 2023-05-11 10:59:50 +02:00
Torkel Ödegaard
fcb14d2548
InspectDrawer: Fixes issue with double scrollbars ()
* InspectDrawer: Fixes issue with double scrollbars

* Fixed minor issue
2023-05-05 09:54:43 +02:00
Andre Pereira
ffd83a027d
Trace View: Export trace button ()
* Add export button to trace view

* Support zipkin, jaeger and otlp formats
2023-04-28 15:34:14 +01:00
Matias Chomicki
c11baa3ead
Stats Inspector: Prevent long stats from being hidden ()
* Stats Inspector: Prevent stats from being hidden

* Inspect stats: inline container styles
2023-04-20 17:06:47 +02:00
Torkel Ödegaard
507c6e7d97
Templating: Replace __data , __field and __cell_n with macros ()
* Templating: __data __field and __series macros

* filter out datacontext from json serialization

* Fix condition

* Update

* Added test cases for formatting data, and field macros
2023-04-05 11:10:33 +02:00
Gábor Farkas
4ded937c79
Show traceids for failing and successful requests ()
* tracing: show backend trace ids in frontend

* better trace id naming

Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com>

* better trace id naming

Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com>

* better trace id naming

Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com>

* added feature flag

* bind functionality to the feature flag

* use non-generic name for traceid header

* fixed tests

* loki: do not create empty fields

* do not add empty fields

* fixed graphite test mock data

* added unit-tests to queryResponse

* added unit-tests for backend_srv

* more typescript-friendly check

* added unit-tests for runRequest

---------

Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com>
2023-04-05 09:13:24 +02:00
Ryan McKinley
fa740a8bcf
Chore: Remove panel inspect Actions hack ()
remove actions tab hook
2023-03-13 08:07:36 -07:00
Andres Martinez Gotor
15aae5e8a9
Panel: Show multiple errors info in the inspector () 2023-03-08 16:11:38 +01:00
Ashley Harrison
6a720f96f7
A11y: ignore rule since keyboard interaction is already handled ()
* Revert "Accessibility: Remove unnecessary onClick from title element ()"

This reverts commit f19b07c0bc.

* ignore eslint rule
2023-02-08 14:17:15 +00:00
Ashley Harrison
f19b07c0bc
Accessibility: Remove unnecessary onClick from title element ()
* remove unnecessary onClick from title element

* associate icon label with title + fix unit tests

* remove cursor: pointer;

* remove link color from title as it's no longer clickable

* remove useless aria-label

* stop incorrectly marking title as a ReactNode - it's just a string
2023-01-30 13:32:16 +00:00
Andre Pereira
afd39c18ba
Explore: Refactor trace view and move to core ()
* Move TraceView to core grafana

* Remove unused code

* yarn install

* Remove jaeger-ui-components from CODEOWNERS and other tools

* Type fixes

* yarn install

* Remove mock that we no longer need

* Fix merge conflicts

* Re-add Apache license for trace view components

* Use an exclamation-circle instead of triangle to denote errors

* Remove eslint disables and update betterer results instead
2023-01-27 14:13:17 +00:00
Joey Tawadrous
591501ef3f
Traces: Upgraded feature tracking ()
Upgraded feature tracking
2023-01-27 13:33:27 +00:00
Ivana Huckova
a0921f2e88
Explore: Implement logs sample in Explore ()
* Implement log samples

* Explore: Implement logs sample panel

* Log samples: Add documentation

* Update docs

* Add info for log sample

* Fix label

* Update

* Default to true

* Fix copy in test

* Update public/app/features/explore/LogsSamplePanel.tsx

Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com>

* Use timeZone from grafana/schema

* Rename data props to queryResponse

* Unify name to logs sample

* Remove redundant optional parameters in LogsSamplePanel

* Make intervalMs parameter optional in dataFrameToLogsModel and remove undefined argument when not needed

* Fix incorrect position of copy log line button

* Update public/app/core/logsModel.ts

Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com>

Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com>
2023-01-24 19:10:27 +01:00
Sven Grossmann
b1a8e4f2b8
Logs: Add usage tracking to new download-logs button ()
* add usage tracking to new download-logs buttom

* changed 'dimension' to 'area'
2023-01-09 17:25:19 +01:00
Ryan McKinley
a3e341f24b
Inspect: Refactor InspectJSONTab to FC () 2023-01-06 18:14:20 -05:00
Ryan McKinley
48fbe51d37
Chore: Avoid FC in canvas elements and dimension editors () 2023-01-05 09:55:55 -08:00
kay delaney
a8c181bf6a
Chore: Migrate usage of v1 theme to v2 () 2022-11-03 18:15:55 +00:00
Zoltán Bedi
c0b778134e
Revert: Query editor components from grafana-ui ()
* Revert: QueryEditor components from grafana-ui

* Use local version of experimental

* Use experimental for query editor components

* Fix type issues in MSSQL

* point to actual version of experimental package

* point to latest version of experimental

Co-authored-by: Erik Sundell <erik.sundell87@gmail.com>
2022-10-24 17:12:36 +02:00
kay delaney
e85917f041
Chore/React18: Update component prop types () 2022-10-14 10:24:32 +01:00
Alex
6edce00b1a
Inspect: Handle JSON tab crash when the provided object is too big to stringify. ()
* fix(inspector): handle json tab crash when too much data

* message update when JSON stringify fails due to obj size
2022-10-12 00:52:23 -07:00
Josh Hunt
5361efc225
I18n: Migrate to I18next ()
* Switch from lingui from i18next

* Change lingui messages to i18next messages

* Change lingui messages to i18next messages (grafana-ui)

* Init i18n for tests
2022-10-06 16:34:04 +01:00
Sven Grossmann
6bc09a6390
Logs: Add Download logs button to log log-browser ()
* move download functions to utils

* add downloads button

* removed unused export annotations

* changed button to `ToolbarButton`

* added tests and restructured download methods

* pin `blob-polyfill`

* add missing import

* changed type
2022-09-29 16:09:40 +02:00
Alexa V
51028b1b2e
Panel Inspect JSON: Add instrumentation for "Apply" feature ()
Co-authored-by: Ivan Ortega Alba <ivanortegaalba@gmail.com>
2022-09-28 09:56:58 +02:00
Ryan McKinley
0c4d181d1e
SupportSnapshots: Rename to "Get help" () 2022-09-16 08:51:14 -07:00
Ryan McKinley
4125dd57ee
Panels: Add panel debug support helper () 2022-09-09 14:35:52 -07:00
Ryan McKinley
7e53bd107c
Panels: Add troubleshooting snapshot () 2022-09-02 15:38:35 -07:00
Ryan McKinley
1d4e01f8ba
Transformers: Support inner vs outer join () 2022-08-23 10:14:03 -07:00
Ryan McKinley
7755f4c4ba
Inspect: show DataFrame JSON *before* transformation and field config are applied () 2022-08-18 15:06:33 -07:00