Commit Graph

20793 Commits

Author SHA1 Message Date
Gábor Farkas
ced5b29951
Postgres: Fix enabling the socks proxy (#80361)
postgres: fix enabling the socks proxy
2024-01-11 17:05:38 +02:00
Hariom Maurya
5c8e88d6ab
Tempo: Add } when { is inserted automatically (#80113) 2024-01-11 15:52:19 +01:00
Ashley Harrison
12135998e6
Profile: Use Stack so the profile tabs span the full width of the page (#80353)
use Stack so the profile tabs span the full width of the page
2024-01-11 12:54:19 +00:00
Alexander Zobnin
bb2156967d
Team LBAC: Show permissions warning (#80215)
* Permissions: Add team LBAC warnings

* Replace info with warning if present

* Keep info message

* Update warning message

* Translate permission warning

* Use box component

* Generate translation placeholder

* Use multiple messages

* Move LBAC warnings to enterprise
2024-01-11 12:48:55 +01:00
Agnès Toulet
31b02a8c9a
Rendering: Fix streaming panels always reaching timeout (#80022) 2024-01-11 12:37:21 +01:00
renovate[bot]
8dba53b541 Update dependency @testing-library/user-event to v14.5.2 2024-01-11 11:01:21 +00:00
Ieva
0f4e123de0
RBAC: prioritise directly applied permissions over inherited permissions (#80212)
show directly applied permissions over inherited permissions
2024-01-11 11:01:19 +00:00
Ezequiel Victorero
6d81e08e72
Analytics: Restore property in export json event (#80099) 2024-01-11 07:38:14 -03:00
Alex Khomenko
370fd5a5af
SSO Config: Add generic OAuth (#79972)
* 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: Add Generic OAuth page

* SSO: Add Generic OAuth page

* 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

* Update fields

* Add more fields

* Add more fields

* Fix spacing

* Add UserMapping fields

* Add rest of the fields

* Add FieldRenderer

* Update types

* Update comment

* Update feature toggle

* Add checkbox

* Do not submit form if there are errors

* Fix revalidation

* Redirect on success only

* Fix redirect behavior

* Add missing descriptions

* Use inline checkbox

* Add enabled field

* Restore feature toggle

* Remove source field from PUT request

* Add URL to the fields

* Add hidden prop to fields and sections

* Add Delete button

* Prettier

* Add authStyle, still not working, description updates

* Fix saving select values

* Run prettier

* Use defaultValue in Select field

---------

Co-authored-by: Mihaly Gyongyosi <mgyongyosi@users.noreply.github.com>
2024-01-11 11:23:38 +01:00
Torkel Ödegaard
2fd26e2773
AppChrome: Fixes topnav height (#80342)
* AppChrome: Fixes top padding

* better fix
2024-01-11 10:33:38 +01:00
Matias Chomicki
be12d3919f
Logs navigation: fix multiple incorrect calls to addResultsFromCache (#80307)
* Logs container: prevent unnecessary rerenders from arrow functions

* Logs navigation: refactor effects and calls to addResultsToCache

* Logs navigation pages: disable buttons while loading

* Logs navigation: add regression test

* Formatting
2024-01-11 00:52:43 +02:00
Kevin Yu
752d788bd6
Chore: rename CloudWatch mock file (#80260) 2024-01-10 13:59:30 -08:00
Alyssa Bull
284afbcd4b
Azure Monitor: Add select all subscription option for ARG queries (#79582) 2024-01-10 13:58:03 -07:00
Leon Sorokin
31921bbb01
DashboardGrid: Add LayoutItemContext to affect zIndex from panels (#80116) 2024-01-10 12:09:54 -06:00
Darren Janeczek
796ef05e97
fix: data trails auto query use general generator for unconventional metrics (#80301) 2024-01-10 18:23:41 +01:00
renovate[bot]
c959b5549c
Update typescript-eslint monorepo to v6 (#71634)
* Update typescript-eslint monorepo to v6

* move to latest eslint-config-grafana

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-01-10 18:17:54 +02:00
Jamin
108c196d08
Frontend: Migrate Drawer.tsx from aria-label e2e selectors to data-testid (#79616)
* refactor: update aria-label to data-testid

* refactor: update aria-label to data-testid

* refactor: replace title

* refactor: update selector text

* feat: update translation file

* fix old phrases

---------

Co-authored-by: joshhunt <josh@trtr.co>
2024-01-10 11:20:51 +00:00
Ashley Harrison
1162c28a55
Connections: hook up search to url params to match cloud behaviour (#80166)
hook up connections search to url params to match cloud behaviour
2024-01-10 09:57:17 +00:00
Kristian Bremberg
2d6ad9f7c5
Login: convert scheme relative URL to path (#80220)
* Login: convert scheme relative URL to path

* linting
2024-01-10 11:31:35 +02:00
Konrad Lalik
282a3f9a66
Alerting: Allow copying error messages from query badges (#80078)
* Add interactive mode to the Badge component

* Add expression errors as Alert components instead of badges

* Revert "Add interactive mode to the Badge component"

This reverts commit 9558743fc7.
2024-01-10 10:17:57 +01:00
Isabella Siu
4fa6bad7c0
CloudWatch: Remove dependency on local TemplateSrv (#79283) 2024-01-09 16:52:37 -05:00
Ryan McKinley
114845a99a
Transformations: Use an explicit join seperator when converting from an array to string field (#80169) 2024-01-09 18:24:16 +02:00
renovate[bot]
a449df3455
Update dependency @cypress/webpack-preprocessor to v6.0.1 (#80217)
* Update dependency @cypress/webpack-preprocessor to v6.0.1

* fix type errors

* restore old checksum for scenes

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2024-01-09 15:32:24 +00:00
Victor Marin
35e3988d4a
Add versions tab in dashboard settings (#80190) 2024-01-09 17:26:46 +02:00
Joey
314cdaf618
Pyroscope: Decouple frontend (#80066)
* Decouple query options

* Decouple Variable support

* Fix after merge
2024-01-09 11:40:39 +00:00
Sven Grossmann
0f8d4db934
Log Context: Add highlighted words to log rows (#80119)
* Log Context: Add highlighted words to log rows

* Update public/app/features/logs/components/log-context/LogRowContextModal.tsx

Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>

---------

Co-authored-by: Ivana Huckova <30407135+ivanahuckova@users.noreply.github.com>
2024-01-09 12:56:48 +02:00
Ezequiel Victorero
40e4d3deb5
UI: Hide additional separator when time picker is hidden (#80168)
UI: Hide additional separator when time range is hidden
2024-01-09 07:43:31 -03:00
Konrad Lalik
229c1f417f
Alerting: Disable export all rules button when no GMA rules (#80126)
Disable export button when no GMA rules
2024-01-09 11:08:28 +01:00
Ashley Harrison
68ba6cc67b
Chore: some type fixes (#80094)
* some type fixes

* few more fixes

* more

* fix unit test
2024-01-09 10:00:00 +00:00
Matias Chomicki
fb34916d1e
Logs navigation: derive current page index (#80167)
* Logs navigation: derive current page index

* Formatting
2024-01-09 11:49:27 +02:00
Sonia Aguilar
6f8ddac4eb
Alerting: Simplified routing part3 (#79941)
* Update alert rule model in FE following BE design doc

* Remove unnecessary conditional rendering

* Update styles for optional route settings: add indentation

* Update test

* Add validation for  grouBy to include grafana_folder and alertname

* Split conversions between FEdataModel/ DTO, in separate functions

* Update texts following Brenda's suggestions

* Update text
2024-01-09 08:39:43 +01:00
Lucy Chen
49af992661
Task: Add i18n support for public dashboards (#79659)
* feat(public-dashboards): add i18n support

* fix(public-dashboard): correct name convention for i18n

* fix(public-dashboard): correct i18n key convention + extraction

* feat(public-dashboard): mark up i18n for remaining cfg modal

* fix(public-dashboard): de-dynamicize ack comps for i18n + markup i18n for missing parts

* feat(public-dashboard): mark up i18n for DeletePubDashModal

* feat(public-dashboard): mark up i18n for ShareModal public dashboard

* chore(i18n): run yarn i18n:extract

* update naming cconvention

* add mark up phrases

* update json file

* fix import

* fix title

* fix url

* Copy button translation

* Update user admin page

* escape char

* interpolation

* fix escape

* prettier space

* update naming

* update setting keys

* standardize key naming convention

* fix radiobutton

* Fix naming convention as recommended by frontend team

* Prettier and fix naming

* fix variables that cannot be translated

* prettier check

---------

Co-authored-by: hainenber <dotronghai96@gmail.com>
2024-01-08 13:30:01 -05:00
Ivana Huckova
df8624c8cd
Loki: Remove imports from core in various files (#79990)
* Remove imports from core in tracking.ts

* Remove imports from core in tracking.test.ts

* Remove imports from core in querySplitting.test.ts
2024-01-08 18:43:59 +01:00
Ivana Huckova
6fbd6e3d31
ConfigDescriptionLink: Replace with component from @grafana/experimental (#80144)
ConfigDescriptionLink: Replace with component from grafana/experimental
2024-01-08 18:34:49 +01:00
Matias Chomicki
4950935401
Loki Query Builder: Add parsing support for aggregations with grouping (#80145)
Loki Query Builder: Add parsing support for aggregations with grouping arguments
2024-01-08 17:17:19 +01:00
Jo
c60a1dddc2
Analytics: Fix metanalytics sending 'undefined' to backend (#80127)
* fix metanalytics sending 'undefined'

* revert panelId defined

* Update public/app/features/query/state/queryAnalytics.ts

Co-authored-by: Ivan Ortega Alba <ivanortegaalba@gmail.com>

* finish fix

---------

Co-authored-by: Ivan Ortega Alba <ivanortegaalba@gmail.com>
2024-01-08 17:06:06 +01:00
Gilles De Mey
d2b023076b
Alerting: Add support for TTL for pushover for Mimir Alertmanager (#78687) 2024-01-08 15:48:36 +01:00
Darren Janeczek
890d6a960f
refactor: data-trails auto query logic (#79435)
* refactor: data-trails auto query logic for most currently identified metric suffixes (excluding `_bucket`)
2024-01-08 09:48:08 -05:00
colin-stuart
062e772bb2
Auth: Implement the SSO Settings GET endpoint (#79144)
* Return data in camelCase from the OAuth fb strategy

* changes

* wip

* Add defaults for oauth fb strategy

* revert other changes

* basic includeDefaults query param implementation

* basic secret removal and etag implementation

* correct imports

* rebase

* move default settings filter to models

* only replace ClientSecret value if set

* first GetForProvider test & use FNV for ETag to avoid Blocklisted import error

* add tests

* add annotation for the openapi spec & generate spec

* remove TODO

* use IsSecret, improve tests, remove DefaultOAuthSettings

* add comment explaining generateFNVETag

* add error handling for generateFNVETag

* run go generate

* Update pkg/services/ssosettings/api/api.go

Co-authored-by: Mihai Doarna <mihai.doarna@grafana.com>

* move isSecret to service, create GetForProviderWithRedactedSecrets func

* add unit test for GetForProviderWithRedactedSecrets & remove duplicated code

* regen openapi/swagger

* revert dependency bumps

---------

Co-authored-by: Mihaly Gyongyosi <mgyongyosi@users.noreply.github.com>
Co-authored-by: Mihai Doarna <mihai.doarna@grafana.com>
2024-01-08 09:35:14 -05:00
Giordano Ricci
21e9c01fc1
Chore: Fix some Explore deprecations (#80076) 2024-01-08 14:11:05 +00:00
Ezequiel Victorero
25ff4baa76
UI: New share button and toolbar reorganize (#77563) 2024-01-08 10:42:24 -03:00
Sven Grossmann
d1b0e9082d
Loki: Fix metric time splitting to split starting with the start time (#80085)
* Loki: Fix metric time splitting to split starting with the start time

* add test case to gdev-dashboard

* fix splitting test
2024-01-08 13:26:16 +01:00
Joey
f0cb88e3b5
Pyroscope: Add Span ID to options collapsed info (#79981)
* Pyroscope: Add Span ID to options collapsed info

* Update for multiple

* Update public/app/plugins/datasource/grafana-pyroscope-datasource/QueryEditor/QueryOptions.tsx

Co-authored-by: Fabrizio <135109076+fabrizio-grafana@users.noreply.github.com>

---------

Co-authored-by: Fabrizio <135109076+fabrizio-grafana@users.noreply.github.com>
2024-01-08 12:07:19 +00:00
Ivana Huckova
0440b29ebf
Chore: Bump @grafana/experimental from 1.7.4 to 1.7.5 (#80074)
* For LLM, replace enabled() with health()

* For LLM, replace enabled() with health()

* Update experimental in azueremonitor and testdata plugins
2024-01-08 10:29:08 +01:00
Konrad Lalik
6fd0ae0474
Alerting: Fix alertmanager query param when returning to silences list (#80021)
* Add alertmanager query param when returning to silences list. Sync query and storage alertmanager param

* Remove unused imports
2024-01-08 10:16:37 +01:00
Ivana Huckova
9cdd519e53
Loki: Use localStorage to set and get showExplain (#80069)
* Loki: Use localStorage to set and get showExplain

* Move hooks outside of shared folder
2024-01-07 12:51:21 +01:00
Matthew Jacobson
aa03b8f8a7
Alerting: Guided legacy alerting upgrade dry-run (#80071)
This PR has two steps that together create a functional dry-run capability for the migration.

By enabling the feature flag alertingPreviewUpgrade when on legacy alerting it will:
    a. Allow all Grafana Alerting background services except for the scheduler to start (multiorg alertmanager, state manager, routes, …).
    b. Allow the UI to show Grafana Alerting pages alongside legacy ones (with appropriate in-app warnings that UA is not actually running).
    c. Show a new “Alerting Upgrade” page and register associated /api/v1/upgrade endpoints that will allow the user to upgrade their organization live without restart and present a summary of the upgrade in a table.
2024-01-05 18:19:12 -05:00
Leon Sorokin
200c71f5d6
VizTooltips: Optimize performance (#80102) 2024-01-05 16:07:04 -06:00
Leon Sorokin
1ec04243da
Heatmap: All tooltip mode selector (#79956)
Co-authored-by: Adela Almasan <adela.almasan@grafana.com>
Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2024-01-05 13:11:24 -06:00
Oscar Kilhed
583b9797af
Transformations: Move moving average, regression analysis and format string transformations to public preview (#80067)
* move transformation features to public preview

* update docs

* Update docs/sources/panels-visualizations/query-transform-data/transform-data/index.md

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>

* Update docs/sources/panels-visualizations/query-transform-data/transform-data/index.md

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>

* Update docs/sources/panels-visualizations/query-transform-data/transform-data/index.md

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>

* fix formating of ffs

---------

Co-authored-by: Isabel <76437239+imatwawana@users.noreply.github.com>
2024-01-05 19:39:02 +01:00