Commit Graph

20607 Commits

Author SHA1 Message Date
Sven Grossmann
a1ec5be730
Loki: Add timeRange to labels requests in LogContext to reduce loading times (#79478)
Loki: Add timeRange to labels requests
2023-12-14 10:14:02 +01:00
Khushi Jain
ee82801843
Chore: Remove gf-form in UserPermission & Annotation Query (#78785)
* Chore: Remove gf-form in UserPermission

* more changes

* Update public/app/features/admin/UserPermissions.tsx

Co-authored-by: Tobias Skarhed <1438972+tskarhed@users.noreply.github.com>

* more change

* Added annotationQueryEditor

* empty div

* Update public/app/plugins/datasource/elasticsearch/components/QueryEditor/AnnotationQueryEditor.tsx

Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>

* final

---------

Co-authored-by: Tobias Skarhed <1438972+tskarhed@users.noreply.github.com>
Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>
2023-12-14 09:27:30 +02:00
Nathan Marrs
590bab21b0
BarChart: Fix incorrect legend field labels (#78511)
Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
2023-12-14 05:54:02 +02:00
Adela Almasan
d4b75928ca
Tooltip: Improved Timeseries and Candlestick tooltips (#75841) 2023-12-13 16:34:56 -06:00
Andre Pereira
70b980e47f
Tempo: Fix cache in TraceQL editor (#79468)
Fix 77380
2023-12-13 16:06:07 +00:00
Julien Duchesne
884e0427e6
ngalert openapi: Add X-Disable-Provenance to missing operations (#79278)
Swagger(ngalert): Add `X-Disable-Provenance` to missing operations
I added all functions that call the `determineProvenance` function

Schema changes are from:
`make` in `pkg/services/ngalert/api/tooling`
`make swagger-clean && make openapi3-gen` in root
2023-12-13 10:55:59 -05:00
Kevin Yu
9501d06edf
CloudWatch: Remove core imports from app/features/variables/types (#79361)
* CloudWatch: Remove core imports from app/features/variables/types

* fix import

* lint
2023-12-13 06:46:33 -08:00
Laura Fernández
d28284c8f1
TimeRangePicker: do not swap time ranges when to is before from (#78915) 2023-12-13 14:40:09 +01:00
Matias Chomicki
65535a3b3f
Loki/Elasticsearch: prevent errors in onDashboardLoadedHandler (#79451)
* Loki: prevent errors in onDashboardLoadedHandler

* Elasticsearch: prevent errors in onDashboardLoadedHandler
2023-12-13 15:37:21 +02:00
Galen Kistler
d6eca75bf7
Loki: strip out invalid options for logs/metrics queries (#79409)
* fix bug in split query where metric queries with maxLines of 0 would not execute
2023-12-13 07:08:30 -06:00
Sven Grossmann
db7fa30384
Elasticsearch: Fix modify query with backslashes (#79430)
* Elasticsearch: Fix modify query with backslashes

* add test devenv
2023-12-13 14:07:46 +01:00
Juan Cabanas
a18cba0ced
PublicDashboards: Remove unsupported datasource warning for cloudwatch (#79403) 2023-12-13 09:18:29 -03:00
Ashley Harrison
1efd21c08a
Data sources: Add skeleton loader (#79016)
* refactor out DataSourcesListCard

* add skeleton

* increase gap between buttons on skeleton to match real component

* lineHeight: 1 instead of 0

* refactor out ternary
2023-12-13 09:50:27 +00:00
Victor Marin
5aff3389f4
Table: Highlight row on shared crosshair (#78392)
* bidirectional shared crosshair table WIP

* add shared crosshair to table panel

* lower around point threshold

* add feature toggle

* add index based verification

* add adaptive threshold

* switch to debounceTime

* lower debounce to 100

* raise debounce back to 200

* revert azure dashboard

* re-render only rows list on data hover event

* further break down table component

* refactor

* raise debounce time

* fix build
2023-12-13 11:33:14 +02:00
Sonia Aguilar
106903b549
Alerting: Add export mute timings feature to the UI. (#79395)
* Add export for all muteTimings and a single muteTiming

* Add test

* Fix snapshot

* Fix test

* Add mute timing name in file name when exporting single mute timing
2023-12-13 09:53:44 +02:00
Kevin Yu
377262c283
Cloudwatch: Fix errors while loading queries/datasource on Safari (#79417)
* pass super.query to query runners

* fix types in tests

* clearer name for query function

* fix test
2023-12-12 17:32:04 -08:00
Leon Sorokin
09cef892a5
OptionsPicker: Use fuzzy search and improve ranking of matches (#79286) 2023-12-12 16:41:50 -06:00
Leon Sorokin
19cda38f1b
PanelQueryRunner: Shallow diff series DataFrames (#79257) 2023-12-12 16:11:17 -06:00
Julien Duchesne
f977e3faf5
ngalert swagger: Fix status code (#79415)
This endpoint returns a 202, not a 204
Let me know if we should instead change the response of the API
2023-12-12 13:40:36 -05:00
Torkel Ödegaard
eec4fd623d
Stat: Fix inconsistent center padding (#79389) 2023-12-12 09:59:49 -08:00
Isabel
937a7ed6d9
Docs: add missing alt text - transformations 10.3 (2/3) (#79277)
* Added missing alt text

* Rebuilt markdown file

q
wq

* baldm0mma/081223-missing-alt-text-2/ add alt image content to images and build markdown

* baldmomma/081223-missing-alt-text-2/update alt text and build

* baldm0mma/081223-missing-alt-text-2/ make altText required

---------

Co-authored-by: jev forsberg <jev.forsberg@grafana.com>
2023-12-12 10:07:52 -07:00
Kristina
bc8ad7b6e5
Explore: Create menu for short link button (#77336)
* WIP first pass

* Change to toolbarbutton/buttonselect pattern

* Move to two toolbarbuttons with dropdown

* Justify text to the right of icons

* Fix betterer

* Fix styling and tests

* Add to docs

* Perist last clicked, add translations

* move styling to core component

* use label for tooltip, let parser combine panes in multiple params

* Explore: Panes encoding suggestions (#78210)

panes encoding suggestions

* WIP-add menu groups

* Get group actions working

* add icons and non-local last selected state

* Fix translations after merge

* Add categories to translation, tweak the verbiage

* Fix translation extraction

* Fix tests

* fix translation conflict

* Log if time is absolute

---------

Co-authored-by: Giordano Ricci <me@giordanoricci.com>
2023-12-12 09:55:03 -06:00
Esteban Beltran
7e68e3f49e
Sandbox: Improve logging of sandbox lifecycle for monitoring (#79297)
* Sandbox: Log a plugin loading inside the sandbox

* Improve tracking of general sandbox errors

* Fix import
2023-12-12 16:28:56 +01:00
Sonia Aguilar
1d53d71ba9
Alerting: Fix max data points placeholder rendering decimals (#78946)
Fix max data points placeholder rendering decimals
2023-12-12 15:45:56 +01:00
Shabeeb Khalid
8bf5cdcf0c
Core: Rename index.ts to completionUtils.ts in Loki monaco completion provider (#79253)
Rename index.ts to completionUtils.ts in Loki monaco completion provider

This is a follow up to #76374. The name `index.ts` is not matching with
the pattern in the whole project as per the original discussion. It was
noted in https://github.com/grafana/grafana/pull/76080#discussion_r1352812657
2023-12-12 15:19:50 +02:00
Julien Duchesne
b232c64d9a
accesscontrol swagger: Add global field to RoleDTO type (#79351)
* `accesscontrol` swagger: Add `global` field to `RoleDTO` type
The field is currently added in the MarshalJSON function so it isn't reflected in the spec
This PR sets the "static" version of the RoleDTO, that has the global field, as the swagger model

* Revert the marshalling logic
2023-12-12 08:04:25 -05:00
kay delaney
6989db1ad3
Dashboards: Run shared queries even when source panel is in collapsed row (#77792) 2023-12-12 12:05:05 +00:00
Fabrizio
3783d87576
Tempo: Fix autocompletion with strings (#79370) 2023-12-12 12:55:21 +01:00
Ivana Huckova
953d0d4c70
Loki: Remove imported test utility function from Prometheus (#78901)
Loki: Remove import from prometheus test utility
2023-12-12 12:54:56 +01:00
Joey
eff9374a63
Tempo: Update cheatsheet (#78797)
* Tempo: Update cheatsheet

* Update text
2023-12-12 11:46:43 +00:00
Grafana I18n Bot
b08b82607a
I18n: Crowdin sync (#79386)
* New translations grafana.json (French)

* New translations grafana.json (Spanish)

* New translations grafana.json (German)

* New translations grafana.json (Chinese Simplified)

* Github Action: Auto-fix i18n files

---------

Co-authored-by: grafana-i18n-bot <grafana-i18n-bot@users.noreply.github.com>
2023-12-12 11:19:43 +00:00
Ashley Harrison
ffda25f4a3
Skeleton: Abstract out attach/animation logic (#79309)
* apply styles globally to skeleton

* use abstraction everywhere

* just use withSkeleton

* add comment

* update docs

* use it in News as well

* rename withSkeleton to attachSkeleton

* move to @grafana/ui/src/unstable

* rename skeletonProps to rootProps
2023-12-12 11:05:36 +00:00
Ashley Harrison
7c2b3ee1af
Navigation: Update synthetics placement in IA (#79302)
* update synthetics placement in IA

* lowercase s in synthetics
2023-12-12 10:57:52 +00:00
Ivana Huckova
ed86583107
Loki: Decouple from Prometheus operationUtils (#78830)
* Loki: Decouple from Prometheus operationUtils

* Update comments
2023-12-12 11:44:35 +01:00
Ben Sully
f040a8321b
Plugins: Add Command Palette extension point (#78098)
Co-authored-by: Marcus Andersson <marcus.andersson@grafana.com>
2023-12-12 08:52:09 +00:00
Neil Shen
999c9c5ea3
Heatmap: Fix null options migration (#79083)
* Fix heatmap null options migration

Some dashboard generation libraries, such as grafanalib, may produce
heatmaps with a null 'options' attribute. This condition triggers a
panic during migration, resulting in a blank heatmap panel.

This commit addresses the issue by returning default options if a panel has
a null 'options'.

Signed-off-by: Neil Shen <overvenus@gmail.com>

* Nullish coalescing panel.options

Signed-off-by: Neil Shen <overvenus@gmail.com>

---------

Signed-off-by: Neil Shen <overvenus@gmail.com>
2023-12-12 04:55:57 +02:00
Yuri Tseretyan
8af08d0df2
Alerting: Add export of mute timings to file provisioning formats (#79225)
* add export of mute timings to file provisioning formats
* support export of mute timings to HCL
2023-12-11 21:36:51 -05:00
Juan Cabanas
5147bdeb4b
PublicDashboards: Revoke all public dashboards access to a specific user (#78709) 2023-12-11 16:55:16 -03:00
Ashley Harrison
bb4aa16b13
Navigation: Fix showing command palette when menu is docked (#79335)
* fix showing command palette when menu is docked

* separate out command palette
2023-12-11 18:54:56 +02:00
Sonia Aguilar
e6f2de51a3
Alerting: Fix for data source filter on cloud rules. (#79327)
* fix data source filter not worling for cloud rules

* Add test
2023-12-11 17:14:46 +01:00
ismail simsek
12793bfbed
InfluxDB: Interpolate tag keys in influxql queries (#79288)
* interpolate tag keys

* fix unit tests
2023-12-11 16:09:21 +01:00
Sven Grossmann
488d4870f0
Loki: Fix timeRange missing in variable requests (#79326) 2023-12-11 16:01:25 +01:00
Sonia Aguilar
fdb4626847
Alerting: Fix UI inheriting mute timings from parent when calculating the polic… (#79295)
* Fix UI inheriting mute timings from parent when calculating the policy tree properties

* Add test for this use case
2023-12-11 15:49:35 +01:00
Eric Leijonmarck
2447e90be9
Auth: Fix anonymous user table useragent not parsable (#79307)
fix for useragent not parsable
2023-12-11 15:12:37 +01:00
kay delaney
c80b14951d
InspectDataTab: Use templateSrv.replace with getProcessedData (#79113) 2023-12-11 14:11:27 +00:00
Esteban Beltran
46142da4db
Chore: Migrate from aria-label to data-testid in plugin-related tests (#79272)
* Update basicsettings for datasource

* Change aria-label for data-testid

* Update more tests

* Update betterer

* Remove unnecessary data-testid

* Put back aria label for some datasource selectors

* Try to use data-testid with alerts

* Update betterer
2023-12-11 15:05:54 +01:00
Joey
4751013a91
Pyroscope: Decouple from templateSrv (#79068)
* Decouple templateSrv

* Update test
2023-12-11 13:14:22 +00:00
Sven Grossmann
e3d14307ed
Loki: Fix values variable with unexisting label and stream selector (#79310) 2023-12-11 14:51:55 +02:00
Ashley Harrison
05dcc7a441
Navigation: Independent docked state (#78954)
* initial start

* more progress

* behaviour working?

* only use media query when docked local storage state is true

* close menu when undocking

* remove unneeded animation code and fix focus when toggling between docked/undocked

* better feature toggle handling (can go back and forth)

* remove restoreFocus (for now)
2023-12-11 11:41:14 +00:00
Ashley Harrison
bae9dbe418
News: Add loading skeleton (#79009)
* convert to emotion object syntax

* add news skeleton
2023-12-11 10:43:36 +00:00