Commit Graph

19579 Commits

Author SHA1 Message Date
Sonia Aguilar
10f0d094ad
Alerting: Visualize autogenerated policy tree for simplified routing. (#79509)
* WIP

* WIP: disable some actions when is autogenerated policy

* WIP

* Wip: add checks for group by in auto-generated policy

* Make autogenerated policy readOnly and enable Readonly modal for it

* Use real check for autogenerated root

* Fix test

* Refactor: rename consts

* Add test for policy form being read only

* Add tests

* Update some code comments

* Fix Switch component not being styled as disabled

* Rename isAutogeneratedChunkOpen property to isBranchOpen and fix test

* Revert fix for Switch as it has moved to another separate PR

* Split Policy component in smaller sub components

* use useAlertmanagerAbility form for checking autogenerated tree visibility and fix container for autogenerated policy being rendered when it's not supported

* Update useAbilities test and dont use toAbility for ViewAutogeneratedPolicyTree

* Fix Policy being unmounted every 10 secs and move the collapsed/expanded state to each Policy component

* remove permissions from createDropdownMenuActions method parameters and convert the method to a hook

* Revert using PolicyItem

* Add test for createDropdownMenuActions

* Revert having a read only view form for the policy

* Remove readonly from default policy form

* Only show collapsible when node has children

* Split DefaultPolicyIndicator

* use hidehideCurrentPolicy instead of showCurrentPolicy

* Address some review suggestions
2024-01-15 13:36:26 +01:00
Eric Leijonmarck
3979ea0c47
Anonymous Access: Pagination for devices (#80028)
* first commit

* add: pagination to anondevices

* fmt

* swagger and tests

* swagger

* testing out test

* fixing tests

* made it possible to query for from and to time

* refactor: change to query for ip adress instead

* fix: tests
2024-01-15 12:13:38 +00:00
Máté Szabó
e2b706fdd3
Jaeger: Add service dependency graph support (#72200)
* Jaeger: Add service dependency graph support

Add support for visualizing Jaeger's service dependency graph via the
Jaeger data source. Per the discussion[1], this is done by proxying the
internal Jaeger HTTP API endpoint used by Jaeger's own UI for fetching
graph data, and transforming it into a format suitable for the node
graph panel in Grafana.

---
[1] https://github.com/grafana/grafana/discussions/52035

* Small lint fixes

* Type fix

---------

Co-authored-by: Andrej Ocenas <mr.ocenas@gmail.com>
2024-01-15 13:02:00 +01:00
Ashley Harrison
ec53487c99
NestedFolderPicker: separate toggle to force enable picker without nestedFolders (#80461)
* separate nestedFolderPickerOverride toggle to force enable it without nestedFolders

* let's call it newFolderPicker

* update unit tests and keyboard handling

* reduce spacing when no folder open chevron

---------

Co-authored-by: Josh Hunt <joshhunt@users.noreply.github.com>
2024-01-15 11:43:19 +00:00
renovate[bot]
d91d4e87b9 Update dependency immer to v10.0.3 2024-01-15 11:31:54 +00:00
Ashley Harrison
15af2e5053
Connections: Pass keywords from the backend to CommandPalette (#80276)
* pass keywords from the backend to CommandPalette

* add csv and json to keywords
2024-01-15 11:30:55 +00:00
Josh Hunt
94ec6474d3
NestedFolders: Support Shared with me folder for showing items you've been granted access to (#80141)
* start shared with me frontend tweaks

* prevent linking to sharedwithme folder

* tests

* make divider take up 0 height

* Prevent sharedwithme from being selected

* test
git push

* pr feedback

* prevent setting url for sharedwithme

* split iconForItem/kind functions

* Hide sharedwithme in nested folder picker

* fix test fixture
2024-01-15 10:56:31 +00:00
Ashley Harrison
083605c17f
DockedMenu: only set the menu state to be docked if the window size is big enough (#80379)
* only set the menu docked in state if the window size is big enough

* adjust sizes

* remove top border on dockedMegaMenu

* another css tweak

* use xxl consistently

* CONSISTENTLY

* ok maybe not
2024-01-15 10:12:41 +00:00
Andreas Christou
702e7cb3ac
Azure: Fix type exports (#80469)
Fix type exports
2024-01-15 10:54:52 +01:00
Ashley Harrison
21200fd5f8
Chore: Mock out faro so this test doesn't throw an error (#80477)
mock out faro for all tests
2024-01-15 09:43:53 +00:00
renovate[bot]
0e04c934b7 Update dependency @types/testing-library__jest-dom to v5.14.9 2024-01-15 00:13:21 +00:00
Tamás Nyíri
11662e18b3
TimelineChart: Fix rendering of small boxes (#72775) (#80420) 2024-01-12 12:59:46 -06:00
Armand Grillet
77ae1a5f6f
Alerting: Rename min interval field to interval in alert query editor (#80453) 2024-01-12 18:35:31 +01:00
Sven Grossmann
4e474161a1
Logs: Add show context to dashboard panel (#80403)
* Logs: Add show context to dashboard panel

* add prop to enable show context toggle

* update test

* adjust tests

* add query targets as a dependency

* extract `useDatasourcesFromTargets` hook

* add tests

* remove comment
2024-01-12 19:19:00 +02:00
Galen Kistler
289bfc070e
Loki: Derived fields unit test flake (#79949)
use async find when interacting with elements to avoid flakey 'not wrapped in act(...)' error
2024-01-12 19:05:58 +02:00
Fabrizio
c6db73f0bf
Tempo: Fix regression caused by #79938 (#80465) 2024-01-12 17:35:24 +01:00
renovate[bot]
9ba56d9349 Update dependency @types/prismjs to v1.26.3 2024-01-12 16:31:08 +00:00
Jamin
66c85d9826
Frontend: Migrate LoadingIndicator.tsx from aria-label e2e selectors to data-testid (#79664)
* refactor: update component to use data-testid

* refactor: update loading indicator e2e selector

* oops - forgot to update betterer results

* update loading indicator in variable picker

---------

Co-authored-by: joshhunt <josh@trtr.co>
Co-authored-by: Josh Hunt <joshhunt@users.noreply.github.com>
2024-01-12 18:30:11 +02:00
Sonia Aguilar
4ea997b595
Alerting: Fix firing alerts title when showing active in Insights panel (#80414)
* Fix firing alerts title when showing active alerts in Insights panel

* Update red to green and change the component name to Active.tsx instead of Firing.tsx
2024-01-12 16:47:27 +01:00
Misi
c196bde2e0
Auth: Include missing SSO settings from system settings on read paths (#80421)
* first touches

* Merge missing SSO settings to support Advanced Auth pages

* fix
2024-01-12 15:20:50 +01:00
Giordano Ricci
e471064cda
Explore: use numeric ids for panel ids when building query transactions (#80135) 2024-01-12 14:05:46 +00:00
kay delaney
4a5f271142
Scenes/PanelEdit: Replace panel when commiting editor changes (#80282)
* Scenes/PanelEdit: Replace panel when commiting editor changes

* Clone panel rather than setting it as body directly
2024-01-12 15:22:53 +02:00
renovate[bot]
3594a068a6 Update dependency @types/lodash to v4.14.202 2024-01-12 11:42:12 +00:00
Matias Chomicki
aa670280fc
Logs: add infinite scrolling to Explore (#76348)
* Explore: propose action, thunk, and decorators for load more

* LogsContainer: add loadMore method

* Query: remove unused var

* Loading more: use navigation to simulate scrolling

* Explore: figure out data combination

* Fix imports

* Explore: deduplicate results when using query splitting

* LogsNavigation: add scroll behavior

* Remove old code

* Scroll: adjust delta value

* Load more: remove refIds from signature

We can resolve them inside Explore state

* Load more: rename to loadMoreLogs

* Infinite scrolling: use scrollElement to listen to scrolling events

* Explore logs: add fixed height to scrollable logs container

* Logs: make logs container the scrolling element

* Logs: remove dynamic logs container size

It works very well with 1 query, but breaks with more than 1 query or when Logs is not the last rendered panel

* Logs navigation: revert changes

* Infinite scroll: create component

* Infinite scroll: refactor and clean up effect

* Infinite scroll: support oldest first scrolling direction

* Infinite scroll: support loading oldest logs in ascending and descending order

* Infinite scroll: use scroll to top from logs navigation

* Logs: make logs container smaller

* Logs: make container smaller

* State: integrate explore's loading states

* Infinite scroll: add loading to effect dependency array

* Infinite scroll: display message when scroll limit is reached

* Infinite scroll: add support to scroll in both directions

* Infinite scroll: capture wheel events for top scroll

* scrollableLogsContainer: deprecate in favor of logsInfiniteScrolling

* Infinite scroll: implement timerange limits

* Infinite scroll: pass timezone

* Fix unused variables and imports

* Infinite scroll: implement timerange limits for absolute time

* Infinite scroll: fix timerange limits for absolute and relative times

* Infinite scroll: reset out-of-bounds message

* Logs: make container taller

* Line limit: use "displayed" instead of "returned" for infinite scrolling

* Infinite scrolling: disable behavior when there is no scroll

* Remove console log

* Infinite scroll: hide limit reached message when using relative time

* Logs: migrate styles to object notation

* Prettier formatting

* LogsModel: fix import order

* Update betterer.results

* Logs: remove exploreScrollableLogsContainer test

* Infinite scroll: display loader

* Infinite scroll: improve wheel handling

* Explore: unify correlations code

* Explore: move new function to helpers

* Remove comment

* Fix imports

* Formatting

* Query: add missing awaits in unit test

* Logs model: add unit test

* Combine frames: move code to feature/logs

* Explore: move getCorrelations call back to query

It was causing a weird test failure

* Fix imports

* Infinite scroll: parametrize scrolling threshold

* Logs: fix overflow css

* Infinite scroll: add basic unit test

* Infinite scroll: add unit test for absolute time ranges

* Formatting

* Explore query: add custom interaction for scrolling

* Query: move correlations before update time

* Fix import in test

* Update comment

* Remove comment

* Remove comment

* Infinite scroll: report interactions from component

* Fix import order

* Rename action

* Infinite scroll: update limit reached message

* Explore logs: remove type assertion

* Update betterer
2024-01-12 13:22:03 +02:00
renovate[bot]
df513c870f Update dependency @types/jest to v29.5.11 2024-01-12 11:08:22 +00:00
Ida Štambuk
dfc251d5b9
Cloudwatch Variable Editor: Adjust width in new form styling (#80387) 2024-01-12 12:07:22 +01:00
Dominik Prokop
900fa04c9b
VariableEditorForm: Fix multi-value variable runtime error (#80425) 2024-01-12 12:24:53 +02:00
Joey
dd9b3d65d4
Tempo: Update trace to profiles link (#80364)
Update trace to profiles link
2024-01-12 10:20:01 +00:00
Ivan Ortega Alba
e9f1b41d23
EditVariable: Add base form to edit variables (#80172) 2024-01-12 12:01:11 +02:00
grafana-delivery-bot[bot]
caee68b5a8
Release: Bump version to 10.4.0-pre (#80412)
"Release: Updated versions in package to 10.4.0-pre"

Co-authored-by: grafana-delivery-bot[bot] <132647405+grafana-delivery-bot[bot]@users.noreply.github.com>
2024-01-12 10:21:50 +01:00
Dominik Prokop
cd66149c65
DashboardScene: Handle Dashboard data source when editing panel (#79991)
* Dashboard model compat wrapper update

* Handle changing data source type to and from Dashboard data source

* VizPanelManager tests

* Betterer

* DashboardModelCompatibilityWrapper tests

* Review: test updates

* Test updates

* Test fix

* Move the complexity of the dashboard data source edit directly to the ShareQueryDataProvider

* Make sure deactivation handler ain't called multiple times

* Make sure compat panel compat wrapper return queries for shared runner with transformations

* Betterer

* VizPanelManager: Remove data object subscription

* Remove unnecesary code
2024-01-12 01:21:32 -08:00
Ivana Huckova
74da229cd6
Loki: Remove prom utils in import/export from abstract query (#80312) 2024-01-12 10:13:30 +01:00
Leon Sorokin
b53e0521d2
Panels: AnnotationsPlugin2 (#79531)
Co-authored-by: Adela Almasan <adela.almasan@grafana.com>
2024-01-12 09:02:40 +02:00
Haris Rozajac
d4f76c3391
Dashboard-Scene Migration: User can view JSON Mode tab (#80332)
* View JSON Model tab

* Use correct translation field

* Extract json grabbing and formatting into a model method
2024-01-11 15:18:35 -07:00
Nathan Marrs
c40b2f90ba
Canvas: Support context menu in panel edit mode (#80335) 2024-01-11 19:41:19 +02:00
Ivan Ortega Alba
eb64209301
GeneralSettings: Enable support for nowDelay (#79703) 2024-01-11 17:53:06 +01:00
Joey
e054ef7c98
Tempo: Add template vars to embedded flamegraph (#80363)
* Add template vars to embedded flamegraph

* Update location of templateSrv.replace in spanFlameGraph
2024-01-11 16:28:59 +00:00
Andre Pereira
aa73dfa735
Data Trails: Sync cursor of all breakdown graphs with main metric graph (#80226)
* Sync cursor of all breakdown graphs with main metric graph

* Remove syncs from breakdown scene since they're not needed
2024-01-11 16:10:16 +00:00
Sonia Aguilar
e1af9bcecc
Alerting: Fix group filter (#80358)
* Fix group filter

* Fix Warning: Receivedfor a non-boolean attribute

* remove defaultQueryString.length > 3 from the logic to check if input is invalid
2024-01-11 17:28:12 +02:00
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