Commit Graph

20793 Commits

Author SHA1 Message Date
Nathan Marrs
3609dbd0a2
Barchart: Fix percent stacking regression (#79903)
Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
2024-01-05 18:58:47 +02:00
Ivana Huckova
c48e2c7d0d
Loki: Update mocks and move into __mocks__ (#79993)
Loki: Update mocks and move into __mocks__
2024-01-05 17:11:58 +01:00
Ivana Huckova
45f157e5db
Loki: Fix import of escapeLabelValueInExactSelector to be from Loki (#80063)
* Loki: Fix import of escapeLabelValueInExactSelector to be from Loki

* Add test

* Update test nane
2024-01-05 16:54:46 +01:00
Giordano Ricci
c3934ba60b
Explore: Preserve time range when creating a dashboard panel from Explore (#80070)
* Explore: Preserve time range when creating a dashboard panel from Explore

* fix tests
2024-01-05 15:10:31 +00:00
Oscar Kilhed
f5a221e93f
Transformations: Fix bug where having NaN in the input to regression analysis transformation causes all predictions to be NaN (#80079)
Make regression analysis transformation handle NaN
2024-01-05 15:50:20 +01:00
Julien Duchesne
c7f515b9b2
fix(swagger): POST -> GET method for two access control endpoints (#80082)
Missed those here: https://github.com/grafana/grafana/pull/80053
2024-01-05 09:40:08 -05:00
Giordano Ricci
61623a4a9b
Chore: move PrometheusListView specific utils in the correct directory (#80072) 2024-01-05 14:19:50 +00:00
Giordano Ricci
8bd053e5f4
Explore: Init with mixed DS if there's no root DS in the URL and queries have multiple datasources (#80068) 2024-01-05 14:19:39 +00:00
Marco Schaefer
329ec2624a
fix: Faro usage issue (#80033) 2024-01-05 14:47:32 +01:00
Tobias Skarhed
fbd0ceec7c
Chore: Remove gf-form in Permissions (#79908)
* Remove empty table in favor of Alert

* Change to using Box and Text
2024-01-05 14:32:01 +01:00
Julien Duchesne
5e74c19628
fix(swagger): Add new access control endpoints (#80053)
There were a few errors that prevented these endpoints (which are the most up-to-date ones) from being present in the openapi spec:
- The `enterprise` tag excluded the endpoints from being generated
- `okRespoonse` typo
- Invalid templating on the parameters
- Missing parameter structs
2024-01-05 08:12:01 -05:00
Dominik Prokop
47b986606e
DashboardScene: Update tracking behavior (#80057) 2024-01-05 14:32:06 +02:00
Alex Khomenko
99f7110e39
React Hook Form: Update to v 7.49.2 (#79493)
* Update RHF to latest

* Update Form types

* Fix alerting types

* Fix correlations types

* Update tests

* Fix tests

* Update LabelsField.tsx to use InputControl

* Update RuleEditorGrafanaRules.test.tsx

* Update RuleEditorCloudRules.test.tsx

* Only require one label

* Update RuleEditorRecordingRule.test.tsx

* Fix labels rules

* Revert

* Remove RHF from ignore rules

* Revert

* update form validation for overriding group timings

* Fix changes to correlations

* Fix auth type errors

---------

Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com>
Co-authored-by: Kristina Durivage <kristina.durivage@grafana.com>
2024-01-05 12:41:49 +02:00
Ivana Huckova
2b02ada7ad
Loki: Remove dependency on appNotification (#80035)
* Loki: Remove dependency on appNotification

* Fix and add tests

* Fix lint
2024-01-05 11:01:47 +01:00
Ivana Huckova
b6bee6f72b
Loki: Remove usage of store from app/core/store and use localStorage directly (#80023)
Loki: Remove usage of store from  and use localStorage directly
2024-01-05 10:33:44 +01:00
Matthew Jacobson
c18da48e50
Alerting: Separate overlapping legacy and UA alerting routes (#76517)
* Separate overlapping legacy and UA alerting routes

api/alert-notifiers, alerting/list, and alerting/notifications existed in both
legacy and UA.
Rename legacy route paths and nav ids to be independent of UA ones.
2024-01-04 18:01:57 -05:00
Adela Almasan
935ecdd809
XYChart: Improved new tooltip (#75818)
Co-authored-by: Ihor Yeromin <yeryomin.igor@gmail.com>
Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
2024-01-05 00:55:23 +02:00
Galen Kistler
098e47747f
Logs Panel: Table UI - add explore viz type to grafana_explore_logs_result_displayed event (#80037)
* add explore visualisation type to grafana_explore_logs_result_displayed event

* add log row count

---------

Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com>
2024-01-04 14:01:28 -06:00
Nathan Marrs
339ea65a58
Gdev: Fix breaking gdev testdata datasource (#80007)
fix for breaking gdev testdata datasource
2024-01-04 11:13:55 -08:00
Sven Grossmann
91e49ec0d6
Loki: Fix getParserAndLabelKeys not returning parsed labels (#80029) 2024-01-04 17:58:03 +01:00
Yuri Tseretyan
f6a46744a6
Alerting: Support hysteresis command expression (#75189)
Backend: 

* Update the Grafana Alerting engine to provide feedback to HysteresisCommand. The feedback information is stored in state.Manager as a fingerprint of each state. The fingerprint is persisted to the database. Only fingerprints that belong to Pending and Alerting states are considered as "loaded" and provided back to the command.
   - add ResultFingerprint to state.State. It's different from other fingerprints we store in the state because it is calculated from the result labels.
  -  add rule_fingerprint column to alert_instance
   - update alerting evaluator to accept AlertingResultsReader via context, and update scheduler to provide it.
   - add AlertingResultsFromRuleState that implements the new interface in eval package
   - update getExprRequest to patch the hysteresis command.

* Only one "Recovery Threshold" query is allowed to be used in the alert rule and it must be the Condition.


Frontend:

* Add hysteresis option to Threshold in UI. It's called "Recovery Threshold"
* Add test for getUnloadEvaluatorTypeFromCondition
* Hide hysteresis in panel expressions

* Refactor isInvalid and add test for it
* Remove unnecesary React.memo
* Add tests for updateEvaluatorConditions

---------

Co-authored-by: Sonia Aguilar <soniaaguilarpeiron@gmail.com>
2024-01-04 11:47:13 -05:00
Joey
ef6b35ad3b
Tempo: Copy trace query to TraceQL tab (#79935)
* Copy trace query to TraceQL tab

* Remove datasourceType

* Update button position

* Update test

* Remove extra check

* Update text
2024-01-04 16:10:09 +00:00
Bryan Huhta
e64cb8541f
Pyroscope: Send start/end with profile types query (#77523) 2024-01-04 16:35:47 +01:00
Dominik Prokop
e93c150406
DashboardScene: Enable scene tracking information (#79963)
* DashboardScene: Enable scene tracking information alt

* tests update

* Review

* Revert "tests update"

This reverts commit 43f894236a.

* nit
2024-01-04 16:34:15 +01:00
Haris Rozajac
20096259d3
Explore: Add active state to ContentOutlineItemButton (#78779)
* Add active state to ContentOutlineItemButton

* Improve

* WIP: improve

* Cleanup

* Fix

* Improve betterer, remove extra curly braces
2024-01-04 08:15:50 -07:00
Torkel Ödegaard
f0c38611a2
Scenes: Remove old scenes stuff (#79760)
* Scenes: Remove old scenes stuff

* Fixes

* Fixes

* update
2024-01-04 15:44:41 +01:00
Adela Almasan
692e8958a3
VizTooltips: Disable newVizTooltips when dashboard shared cursor is enabled (#79996) 2024-01-04 08:29:39 -06:00
Alex Khomenko
0844b87b2f
PluginDetails: Fix usage list height (#79695) 2024-01-04 15:42:28 +02:00
Torkel Ödegaard
a349ef6c0b
Themes: Fixes system theme asset paths (#80019) 2024-01-04 14:33:19 +01:00
Eric Leijonmarck
89a3337afa
Fix: Text area for devices not found to say no devices (#80011)
* initla commit

linting

make it along the area

* linting
2024-01-04 14:04:45 +01:00
Ashley Harrison
5154a9d99c
Chore: wait for component to render properly to prevent act warning (#80016)
wait for component to render properly to prevent act warning
2024-01-04 11:25:48 +00:00
Joey
70a25eaf2c
Pyroscope: Update data source name in variable editor tooltip (#79974)
Update data source name in tooltip
2024-01-04 11:24:01 +00:00
Zoltán Bedi
b2b4e8f68d
MySQL: Update documentation around timezone (#79213)
* MySQL: Update documentation around timezone

* Update docs/sources/datasources/mysql/_index.md

Co-authored-by: lwandz13 <126723338+lwandz13@users.noreply.github.com>

* Update formatting

* see -> refer to

---------

Co-authored-by: lwandz13 <126723338+lwandz13@users.noreply.github.com>
2024-01-04 12:28:00 +02:00
Giordano Ricci
2d18961768
Explore: Fix URL sync with async queries import (#79584)
* cancel pending queries

* Update public/app/features/explore/hooks/useStateSync/index.ts

Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com>

* Update public/app/features/explore/hooks/useStateSync/index.ts

* Fix test

---------

Co-authored-by: Piotr Jamróz <pm.jamroz@gmail.com>
2024-01-04 09:50:27 +00:00
Jo
5ae3249c36
Auth: Hide forgot password if grafana auth is disabled (#79895)
* hide forgot password if grafana auth is disabled

* fix test
2024-01-04 10:46:55 +01:00
Torkel Ödegaard
e924627659
Frontend: Reload the browser when backend configuration/assets change (#79057)
* Detect frontend asset changes

* Update

* merge main

* Frontend: Detect new assets / versions / config changes (#79258)

* avoid first check

* Updates and add tests

* Update

* Update

* Updated code

* refine

* use context

---------

Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
2024-01-04 08:00:07 +01:00
Andreas Christou
dd77ff6bcd
Plugins: Externalise Azure Monitor data source (#79545)
* Set up frontend linting for Azure

- Fix final frontend import
- Fix other lint issues

* Add Azure Monitor to backend linting

* Remove featuremgmt dependency

* Add intervalv2 to list of disallowed imports

* Remove config dependency

- Replace with function from azure-sdk

* Remove util dependency

* Duplicate interval functionality from core

* Add required backend wrappers

* Update frontend

* Add testing helper

* Add missing package

* Bump minimum grafana dependency

* Fix dependency

* Regen cue

* Fix lint

* Update expected response file

* Update import and dependency
2024-01-03 19:20:22 +00:00
Ashley Harrison
d680a020cc
Command Palette: Adjust command palette extensions priority (#79992)
adjust command palette extensions priority
2024-01-03 16:18:27 +00:00
Esteban Beltran
5c67c4b082
Chore: Log error from App loading in console and faro (#79977)
* Chore: Log error from App loading in console and faro

* Add error spy for console
2024-01-03 15:51:31 +01:00
Mihai Doarna
c219a19f97
Auth: Add missing 404 status code from the SSO Settings delete endpoint (#79982)
add missing 404 status code from sso settings delete endpoint
2024-01-03 16:05:11 +02:00
Ivana Huckova
7be8301a26
Loki: Add integration tests to query builder (#79978)
* Loki: Add integration tests

* Use findBy instead of getBy

* Fix console error
2024-01-03 15:57:53 +02:00
Ashley Harrison
9de79fb5e9
Chore: remove react-popper-tooltip in favour of @floating-ui/react (#79465)
* use floating-ui instead of react-popper-tooltip in Tooltip

* remove useTheme2 usage

* remove escape handling logic in favour of useDismiss

* don't need this useEffect anymore

* convert Toggletip to use floating-ui

* use explicit version

* convert OperationInfoButton to use Toggletip

* convert nestedFolderPicker to use floating-ui

* convert Dropdown to use floating-ui and remove react-popper-tooltip

* fix Modal/Tooltip tests

* revert to old toggletip behaviour

* revert OperationInfoButton to not use Toggletip

* add mock for requestAnimationFrame

* remove requestAnimationFrame mock

* remove fakeTimers where they're not used

* use floating-ui in ButtonSelect

* Fix filters unit tests

* only attach description if label is different

* use 'fixed' strategy for Toggletip

* use stroke and strokeWidth

* set move: false to only show the tooltip if a hover event occurs

* update type for onClose
2024-01-03 12:42:26 +00:00
Tobias Skarhed
9c9a055c3e
Chore: Remove gf-form from PluginDashboards (#79300)
Remove gf-form in PluginDashboards
2024-01-03 13:30:39 +01:00
Tobias Skarhed
65a655cfc9
Chore: Remove gf-form in DashboardLinks (#79762) 2024-01-03 13:30:17 +01:00
Adela Almasan
070e41d136
Exemplars: Update UX to match new tooltips (#79916) 2024-01-03 06:27:34 -06:00
Adela Almasan
552fa78564
StateTimeline: Add tooltip multi mode (#79944)
Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
2024-01-03 06:27:17 -06:00
Marco Schaefer
7d5432e10a
Faro: Add missing SessionInstrumentation for Faro config (#79826) 2024-01-03 13:00:27 +01:00
Ida Štambuk
a255058ccf
Query Editor: Display error even if error field is empty (#79943) 2024-01-03 11:31:59 +01:00
Fabrizio
ed5c90a8b1
Tempo: Fix Spans table format (#79938) 2024-01-03 11:28:13 +01:00
Joey
e372b54722
Tempo: Easily filter by trace duration (#79931)
* Easily filter by trace duration

* Add test

* Update onChange
2024-01-03 10:00:22 +00:00
Leon Sorokin
fb79be4a43
Transformations: Add frame source picker to allow transforming annotations (#77842)
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
2024-01-02 23:33:31 -06:00
Drew Slobodnjak
2502fe4d19
Canvas: Add Pan and Zoom (#76705)
* Canvas: Add Zoom

* Scale selecto components based on zoom state

* Fix pan by reverting to 3.1.0 for zoom-pan

* Update to latest library that fixes pan regression

* Add mini map to canvas pan zoom

* Fix selecto and anchors on hover

* Update naming to be more clear

* Switch back to contentComponent

* Apply transformScale to drag and resize

* Update connection source and target scaling

* Add option to display mini map

* Update yarn lock

* Revert "Update yarn lock"

This reverts commit 3d1dd65d57.

* Set yarn lock to main

* Revert "Set yarn lock to main"

This reverts commit 64bc50557e.

* Update to Yarn 4

* Add react-zoom-pan-pinch

* Update react-zoom-pan checksum

* Revert changes to json files

* Remove last line of api merged

* Remove last lines of all impacted jsons

* Update home json

* Update coordinate calc function to include scale

* Fix types in coordinate calc function

* Fix util calculation for transform

* Fix arrow anchor shift behavior

* Fix scale offset when adding elements during zoom

* Fix drag of selected group during zoom

* Add feature flag for canvas pan zoom

* Revert "Add feature flag for canvas pan zoom"

This reverts commit b026e31d8d.

* Regenerate feature flag after merge

* Apply feature flag to enable pan zoom wrappers

* Add mini map toggle behind feature flag

* Simplify minimap behavior

* Update feature flag registry

* Set minimap to false by default

* fix gen-cue

* Set toggles gen to main

Add blank line to toggle gen csv

* Add canvas pan zoom to csv

* Remove old comment

* Change ref parameter to be more descriptive

* Rename visibleFun to be more descriptive

* Consolidate transformScale transformRef in util

* Remove non-null assertion on connection parentRect

* Consolidate parentRect null coalescing into object

* Remove minimap and change toggle

* Add controls inline help for pan and zoom

* Clean up mouse events

* Pull scale out of ref and isolate transform

* Remove transform ref from scene div

* Fix context menu visible behavior

* Fix connections and update util functions

* Move transform component instance to util

* fix backend test

* minor updates

* Clean up connections / fix minor bug where offset of arrow wasn't being calculated correctly

* missed connection code cleanup

* cleanup scene code a bit more

* actually fix backend test

* move eslint disable line closer to actual issue

---------

Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2024-01-02 11:52:21 -08:00
Ihor Yeromin
a05f266e27
Units: Add scalable unit option (#79411)
* fix(units): add scalable unit option

---------

Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2024-01-02 18:40:57 +01:00
Torkel Ödegaard
9126dbceaf
Gauges: Fixing broken auto sizing (#79926) 2024-01-02 16:55:48 +01:00
Fabrizio
7746250367
Parca: Add standalone building configuration (#79896)
* Parca: Decouple frontend

* Parca: decouple backend

* Parca: add standalone build process

* Regenerate cue files

* Fix import

* Trigger CI

* Fix test

* Trigger CI

* Trigger CI
2024-01-02 16:36:57 +01:00
Khushi Jain
fe757f69c5
Forms: Remove gf-form from opentsdb/components (#79830)
* Forms: Remove gf-form from opentsdb/components

* filter and tag

* rate

* Update public/app/plugins/datasource/opentsdb/components/DownSample.tsx

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

* Update public/app/plugins/datasource/opentsdb/components/FilterSection.tsx

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

* Update public/app/plugins/datasource/opentsdb/components/MetricSection.tsx

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

* Update public/app/plugins/datasource/opentsdb/components/RateSection.tsx

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

* Update public/app/plugins/datasource/opentsdb/components/TagSection.tsx

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

* prettier

* more changes

---------

Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>
2024-01-02 16:06:23 +02:00
Kristina
5e9e6ddaf7
Explore: Graph should reuse old time range while waiting for queries (#79725)
* Do not pass frames forward until data is done loading

* UsePrevious to get last timerange before query is done
2024-01-02 07:16:25 -06:00
Christopher Zinda
60fa462a2d
Grafana UI: Use correct path to 'online.svg', 'warn-tiny.svg', 'critical.svg' and 'background_tease.jpg' (#78273)
Bug fix: Use correct path to 'online.svg', 'warn-tiny.svg', 'critical.svg' and 'background_tease.jpg'
2024-01-02 10:28:11 +00:00
Sonia Aguilar
1654df24da
Alerting: Fix reusing last url in tab when reopening a new tab in rule detail a… (#79801)
Fix reusing last url in tab when reopening a new tab in rule detail action buttons
2024-01-02 10:51:34 +01:00
Gilles De Mey
e5227550c4
Alerting: Detail view v2 (#77795) 2024-01-02 10:05:58 +01:00
Sonia Aguilar
f6f259f0b5
Alerting: Simplified routing part2 (#78671)
* wip

* WIP: Added some actions, timings and grouping

* WIP: remove reducer and use form fields instead

* Show defaults when using override in route settings

* Update alert rule model for simplified routing

* Use defaults in placeholders when overriding timings

* Add validation for contact point

* Add selected contact point details

* Refactor: extract components to separate files and reorg in subfolders

* Fix test

* Update revalidate mode in form

* Extract RuleEditorSectionBody outside NotificationStep component to avoid unmounting any time this one renders

* Remove reValidateMode option in form

* Fix after merging

* Address PR review comments part1

* Address PR review comments part2

* Create routeTimingsFields constant to reuse labels, descriptions and arial labels for the mute timing fields

* Move conditional rendering to the parent in AutomaticRooting and ManualAndAutomaticRouting

* Simplify AlertManagerManualRouting properties
2024-01-02 08:43:31 +01:00
Ryan McKinley
ae3156d727
XYChart: Config cleanup and refactoring (#79915)
* xy config cleanup

* more cleanup

* clean up betterer some

---------

Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2023-12-31 16:50:53 -08:00
Adela Almasan
7eea30d0e8
VizTooltip: Improved StateTimeline tooltip (#79599)
Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
2023-12-29 17:38:40 -06:00
Leon Sorokin
b3387793f1
Chore: uPlot v1.6.28 (#79732) 2023-12-29 13:43:15 -06:00
Tobias Skarhed
99582b48d7
Chore: Remove gf-form usage in grafana datasource (#79640) 2023-12-29 13:37:44 +01:00
Ivan Ortega Alba
1892ae5ca8
Tracking: Report dash nowDelay and liveNow values (#79744) 2023-12-29 12:36:09 +01:00
Brendan O'Handley
83eb831a8f
Prometheus: Query advisor added copy for preview (#77903)
* add alert with link to docs

* remove historical secondary text

* add tooltip to opening button to suggest selecting a metric

* fix merge conflict issue

* add llm check for tooltip with docs

* update starting message copy and alert copy

* Update public/app/plugins/datasource/prometheus/querybuilder/components/promQail/PromQail.tsx

Co-authored-by: Rob Whelan <github@jtheory.com>

* Update public/app/plugins/datasource/prometheus/querybuilder/components/PromQueryBuilder.tsx

Co-authored-by: Rob Whelan <github@jtheory.com>

* add check for vector for button, remove check in helpers

* clean a little, fix tests

* refactor out query assistant button

* fix styles

---------

Co-authored-by: Rob Whelan <github@jtheory.com>
2023-12-28 11:37:27 -06:00
Fabrizio
05fb9b5ecb
Parca: Decouple frontend (#79876) 2023-12-28 17:48:59 +01:00
Todd Treece
e28bbd50d8
PanelQueryRunner: Skip shallow diff when streaming (#79860) 2023-12-26 16:23:41 -05:00
Brendan O'Handley
a9f4ffab5d
Prometheus: Migrate from aria-label to data-testid for selectors (#78554)
* migrate from aria-label to data-testid for selectors

* fix e2e tests with shared components

* fix e2e tests with more shared components

* pass data-testid to SelectBase component

* pass data-testid to value container and traverse the dom to access the input in e2e
2023-12-26 13:43:06 -06:00
Jamin
f41a0559fa
Frontend: Migrate NewsContainer.tsx from aria-label e2e selectors to data-testid (#79666) 2023-12-26 15:06:33 +00:00
Leon Sorokin
36a3508a0f
BarChart: Show "No data" message for zero-length frames (#79844) 2023-12-22 22:04:50 -06:00
ismail simsek
094cfdd8dd
Chore: Start language provider only once in prometheus variable editor (#79763)
Start language provider only once
2023-12-21 22:46:16 +01:00
Sven Grossmann
99a821e665
Log Context: Add cacheFilters property (#79784)
* add `forceApplyFilters` property

* PR review

* fix tests

* remove import

* comment flaky test

* add context tab documentation

* review

* doc
2023-12-21 17:02:29 +01:00
Santiago
a77ba40ed4
Alerting: Use the forked Alertmanager for remote secondary mode (#79646)
* (WIP) Alerting: Use the forked Alertmanager for remote secondary mode

* fall back to using internal AM in case of error

* remove TODOs, clean up .ini file, add orgId as part of remote AM config struct

* log warnings and errors, fall back to remoteSecondary, fall back to internal AM only

* extract logic to decide remote Alertmanager mode to a separate function, switch on mode

* tests

* make linter happy

* remove func to decide remote Alertmanager mode

* refactor factory function and options

* add default case to switch statement

* remove ineffectual assignment
2023-12-21 15:26:31 +01:00
Alex Khomenko
fde8a00721
SSO: Add GitHub auth configuration page (#78933)
* Setup route

* Set up the page

* Add orgs

* Load settings

* Make API call

* Remove log

* Add FormPrompt

* Update types

* Add tests

* Fix tests

* Cleanup

* Load settings

* Fix naming

* Switch to PUT endpoint

* Switch to CSS object

* Setup fields

* Render fields

* Extend types

* Dynamic provider page

* Rename page

* Filter out non-implemented providers

* Fix types

* Add teamIDs validation

* Update tests

* Fix URL

* Update name

* Send full data

* Add password input

* Update test

* Expand default values

* Fix test

* Use SecretInput

* Remove dev mode for the feature toggle

* Convert fields

* Remove fieldFormat utils

* Update fields logic

* Update tests

* Update betterer

* SSO: Make client secret not required

* Update field name

* Revert feature toggle to dev mode

* Use provider endpoint

* Fix form state check

* Update tests

* Fix URL redirect after form submit

* Mock locationService

* Separate Form component

* Fix trailing slash
2023-12-21 15:26:42 +02:00
Sven Grossmann
f05cbe589a
Loki: Open log context in new tab (#79723)
* pass `getLogRowContextQuery` to component

* reset `appliedContextFilters` in `getLogRowContextQuery`

* open show context in new tab

* open window before crafting url

* only open in new tab if getRowContextQuery is set

* only open `about:blank`

* change conditional
2023-12-20 22:10:29 +01:00
linoman
824e0f9ce8
Plugins: Display plugin permissions required (#78355)
* Add definition of external service registration

* Add style and tables for permissions needed

* Add external service registration to local without counterpart

* Add feature toggle check

* Add feature flag check in the backend as well

* Add the disclaimer for permissions

---------

Co-authored-by: Gabriel MABILLE <gabriel.mabille@grafana.com>
2023-12-20 16:29:13 +01:00
Alyssa Bull
e27e2f66ba
Cloud Monitoring: Remove dependencies (#79282) 2023-12-20 08:26:39 -07:00
Andrew Hackmann
8ff0cfddf4
Azure Monitor: Fix multi-resource bug "Missing required region params, requested QueryParams: api-version:2017-12-01-preview..." (#79669)
* actually fix the bug

* prettier
2023-12-20 09:24:44 -06:00
ismail simsek
516d7a74f2
Prometheus: Fix sending time parameter for query result template variable request (#79754)
* Send time parameter for query result template variable request

* fix tests
2023-12-20 16:08:54 +01:00
Hugo Kiyodi Oshiro
edddbe1f53
Plugins: Add uninstall requested message for cloud plugins (#79748) 2023-12-20 14:47:11 +01:00
Galen Kistler
0db19a7924
Loki: strip out backticks in query editor line filter (#79340)
* pull in @svennergr's solution to switch delimiter on existence of backtick

---------

Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com>
2023-12-20 15:33:58 +02:00
Andre Pereira
16dffaf501
Data trails: Sort related metrics and hide empty panels (#79397)
* Use levenshtein method to sort metric names

* Optionally hide empty panels in MetricSelectScene

* Transform ignore leven

* Refactor code to use $behaviours. Move preview cache to class variable instead of state

* Use lazy loading for metric scene

* Update scenes lib

* simplify behavior

* Remove hide empty toggle

* Bump scenes

---------

Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
2023-12-20 13:14:57 +00:00
Eric Leijonmarck
ae3cb8231b
Anonymous: Fix anonymous access needs anonymousEnabled in config to show in UI (#79738)
* fix: anonymous access needs anonymousEnabled in config to show

* add enabled to tests
2023-12-20 10:59:29 +01:00
Gabriel MABILLE
e7bc913dfd
ServiceAccounts: Lock role picker for external service accounts (#79727) 2023-12-20 10:16:33 +01:00
Domas
b312f48c10
Loki: Replace pre-calculated $__interval values for backend interpolation (#79697)
Loki datasource: pass through interval variables
2023-12-20 10:24:06 +02:00
Adela Almasan
209619c8c1
Heatmap / Status History: Enable annotations rendering (#79483) 2023-12-19 20:24:55 +02:00
Gilles De Mey
324f7d7534
Alerting: Allow linking to library panels (#79693) 2023-12-19 18:41:49 +02:00
Gilles De Mey
52dc425458
Test: Prevent jest from failing on accessing variable before declaration (#79705) 2023-12-19 18:30:06 +02:00
Torkel Ödegaard
82af0d6230
PanelQueryRunner: Fix loading state (#79690) 2023-12-19 15:13:11 +01:00
Jára Benc
315dd75767
Dashboards: Skip inherited object variable names (#79567) 2023-12-19 15:08:28 +01:00
Hugo Kiyodi Oshiro
ecfc8048e1
Plugins: Disable add new data source for incomplete install (#79658) 2023-12-19 14:53:31 +01:00
Dominik Prokop
73eab8fcd6
DashboardScene: Data source and query options edit for a panel (#79267)
* Scenes bump

* Refactor query group components so that they are reusable

* Basic queries rendering and datasource change

* Store last used ds in local storage

* maxDataPoints and minInterval queries options

* Progress on query options

* Query options tests

* Allow panel inspection / queries inspection from panel edit

* Add counters to data pane tabs

* Betterer update

* Handle data source changes

* Minor fixes

* Data source change tests

* Handle scenario of data source change when transformations are in place

* Review comment

* Fix test
2023-12-19 05:51:19 -08:00
Sven Grossmann
96b5b10e20
Loki: Fix language provider's start method won't fetch labels with changed timerange (#79631)
Loki: Fix issue with timeranges in language provider
2023-12-19 14:45:33 +01:00
Torkel Ödegaard
f7429b79ba
Variables: Interpolate variables used in custom variable definition (#78800)
* Variables: Interpolate variables used in custom variable definition

* Update

* Fixing tests
2023-12-19 14:23:57 +01:00
Sven Grossmann
a15681c93c
Loki: Drop all errors in volume requests (#79686) 2023-12-19 14:21:08 +01:00
ismail simsek
ea079ebf0c
InfluxDB: Enable SQL support by default (#79474)
* remove alpha notification

* enable the feature toggle by default

* fix
2023-12-19 14:12:36 +01:00
Galen Kistler
598a2a6fa9
Logs Panel: Table UI - Explore default state (#79653)
* save explore visualisation type in local storage
2023-12-19 07:10:27 -06:00
Gilles De Mey
d0714a5303
Alerting: Small cleanup to remove mute timing as inheritable property (#79680) 2023-12-19 14:39:31 +02:00