Commit Graph

19920 Commits

Author SHA1 Message Date
Matias Chomicki
5e37a27d1f
Loki Autocomplete: Add more context to comments about situations and completions (#76144)
* Loki completion: add more context to comments

* Improve grammar of comment

* Completions: expand on parser-offering part

* Update public/app/plugins/datasource/loki/components/monaco-query-field/monaco-completion-provider/completions.ts

* Formatting
2023-10-09 13:15:12 +02:00
NikolayTsvetkov
ce462e8cd7
Elasticsearch: Added support for calendar_interval in ES date histogram queries (#75459)
* Introduce support for calendar intervals in ES date histogram queries

* Add missing undef type check for ES calendar interval query support
2023-10-09 12:37:38 +02:00
Josh Hunt
07266aa983
Rewrite old useStyles2 pattern to use new pattern (#76136)
* Rewrite old useStyles2 pattern to use new pattern

* fix lint from used imports
2023-10-09 10:49:08 +01:00
Ieva
d3f69fd34a
Chore: legacy access control cleanup for frontend team pages (#75005)
* clean up legacy access control code for teams

* remove editorsCanAdmin config from the frontend

* add editorsCanAdmin config option back for the frontend
2023-10-09 10:32:44 +01:00
Esteban Beltran
5549cd7a76
Sandbox: Fix history.replace calls inside the sandbox (#76049)
* Sandbox: Fix `history.replace` calls inside the sandbox

* Improve signature verification and comments

* Add clarifying comment
2023-10-09 10:42:38 +02:00
Torkel Ödegaard
fc0933d5f4
Schema: Clean up dashboard variables schema (#76121)
* Cleanup variable schema model

* minor fix

* remove type ignores that are no longer type errors
2023-10-09 09:10:52 +02:00
Krishna Dhakal
69142bffe9
Test: add empty test case in sheet utils (#76168)
add empty test case in sheet utils
2023-10-09 09:58:40 +03:00
Victor Marin
ef82767dab
Panel monitoring (#75456)
* WIP

* remove bug

* XY Chart logs

* wip

* wip

* wip

* wip

* wip

* Revert experimental logs

* wip dataviz options monitor

* add logging functionality on panel save

* remove unused file

* readd start load time

* remove afterFrame lib. remove assertions where possible

* add tests

* PR modifications

* fix betterer

* rename logEvent to logPanelEvent

* add feature flag

* split monitor into measurement and logging parts

* rename component

* log panel options on error capture also. Log overrides only then

* refactor logs

* log panel option changes only on error in panel edit mode

* refactor function
2023-10-09 08:19:08 +03:00
Virginia Cepeda
095749b131
Alerting: display datasource information under each section (#76070)
* display datasource information under each section

* Minor - change legend to multi in some panels that were missing it

* Don't show ds info to grafana sections

* Remove unused classname

* Remove unused import

* Fix pickers styling by placing it to the right
2023-10-06 14:36:26 -03:00
Matias Chomicki
16d77dda67
Loki Query Autocomplete: better suggestions and insertions for Logfmt (#75561)
* Logfmt autocompletion: better handling of trailing commas

* Situation: refactor getSituation and  getErrorNode

Looking for simplicity, removing redundancy, and looking for a more accurate node resolution

* Autocompletion: refactor logfmt and top level

* Update tests

* Autocompletion: better handling of trailing characters

* Completions: Update data to type changes

* Update log query in test situation

* Format code

* Autocomplete: support offering partial labels

* Completion: expand test cases
2023-10-06 12:23:48 -05:00
Jo
4474f19836
Service Accounts: Enable adding folder, dashboard and data source permissions to service accounts (#76133)
* Add SAs to Datasource permissions

Co-authored-by: ievaVasiljeva <ieva.vasiljeva@grafana.com>

* add SAs to dashboards/folders managed permissions

* Update public/app/core/components/AccessControl/Permissions.tsx

Co-authored-by: Ieva <ieva.vasiljeva@grafana.com>

* regenerate i18n

* add doc

---------

Co-authored-by: ievaVasiljeva <ieva.vasiljeva@grafana.com>
2023-10-06 17:48:13 +02:00
Victor Marin
8e576911b7
Transformations: Add unary operations to Add field from calculation (#75946)
* Add unary operations to add field from calc transform

* Refactor layout to use new UI components. fix 'as' type assertions

* rename exp

* more docs

* fix docs
2023-10-06 09:44:53 -05:00
Kyle Cunningham
0e0f1183e6
Transformations: Update row title (#75988)
* Update row title in transformations

* Prettier fixes
2023-10-06 09:32:52 -05:00
Fabrizio
b2ba28ab40
Dashboards: Add template variables to selectable options (#75870) 2023-10-06 16:32:30 +02:00
Josh Hunt
c5914d92d4
Dashboards: Fix Dashboards not loading when user doesn't have permission on the parent folder (#76028) 2023-10-06 14:05:56 +00:00
Aditi Patel
a2b71fd149
Markup DataSourcePicker for translations (components used in Explore only) (#75400)
* feat: added markup for data source picker title

* feat: added markup for builtin data source list

* feat: added markup for datasource list

* chore: generated markup files

* feat: added markup for new data source button

* chore: generated markup files

* fix: fixed prefix names

* chore: updated markup files

* fix: removed extra spaces
2023-10-06 15:11:53 +02:00
Haris Rozajac
e773f999ff
Fix the issue with cutoff CustomScrollbar (#75929)
* Remove autoHeightMin

* Fix scroll to the top
2023-10-06 06:49:14 -06:00
Dominik Prokop
2cfbe087fc
DashboardScene serialization: Handle variables and library panels (#76117)
* DashboardScene serialization: Library panels

* DashboardScene serialization: Variables

* TS fix

* Review

* betetrer -u
2023-10-06 05:32:29 -07:00
Ivan Ortega Alba
1a96f3742f
Dashboards: It always detect changes when saving an existing dashboard (#76116)
Deep clone originalDashboard to avoid mutations by object reference
2023-10-06 14:32:04 +02:00
Virginia Cepeda
4d1f8f21bf
Alerting: Add timepicker and autorefresh picker to Insights (#76045)
Add timepicker and autorefresh picker
2023-10-06 09:24:45 -03:00
Nathan Marrs
ede0b0ab03
Auto-generate: Break out reply sanitization into separate util func (#76091) 2023-10-06 14:11:15 +02:00
Ashley Harrison
171e2c1adb
Chore: Improve typings and ignore Graph (#75742)
* fix some types, ignore graph plugin as it'll be gone soon

* update comments

* more more more

* undo renderer change

* use Partial in the editor
2023-10-06 11:48:15 +01:00
Levente Balogh
0081d6baf3
UI Extensions: Allow React.memo() objects as component extensions (#76098)
fix: support the sandbox with component ui extensions
2023-10-06 10:00:09 +02:00
Leon Sorokin
e2dcd5184a
Dashboard: Overflow and z-index adjustments (#75597) 2023-10-05 22:46:15 -05:00
Oscar Kilhed
df9e7671d9
Transformations: Add variable support to join by field (#76056)
Add variable support to join by field
2023-10-06 00:03:50 +02:00
Nathan Marrs
bd5d67ed28
Canvas: Add ability to customize what standard element editors show up for all element types (#75935)
Co-authored-by: Adela Almasan <adela.almasan@grafana.com>
2023-10-05 12:58:35 -07:00
Todd Treece
664ebf771e
K8s: Playlist frontend reads (#76057) 2023-10-05 15:00:36 -04:00
Juan Cabanas
141485528d
Panel: Remove unnecessary test (#75994) 2023-10-05 14:47:45 -03:00
Nathan Marrs
b94d06bfa7
Bar Gauge: Add field name placement option (#75932)
Co-authored-by: Adela Almasan <adela.almasan@grafana.com>
2023-10-05 09:31:03 -07:00
Drew Slobodnjak
03baf210b3
Geomap: Add Symbol Alignment Options (#74293)
* Geomap: Add Symbol Anchor Options

* Update displacement for svg case

* For square and x, account for 45 degree offset

* Simplify displacement function

* Remove unused todo

* Update test defaults to include anchor

* Add missing anchor default to tests

* Move displacement function into utils and add test

* Simplify anchor position options UX

* Change verbage to alignment and swap direction

* Include missing alignment rename

* Update tests

---------

Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2023-10-05 09:01:56 -07:00
Ivana Huckova
0ea047cc09
Explore: Update info about query history and deleting (#76034)
* Explore: Update info about query history and deleting

* Fix unescaped '
2023-10-05 17:02:45 +02:00
Krishna Dhakal
76e102d1a3
Explore: A tooltip for reorder icon in query operation (#75978)
* tooltip in draggabledots icon

* making it a IconButton
2023-10-05 16:31:16 +02:00
Adela Almasan
6614eb0a6e
Auto-generate: Be able to improve the result sending feedback (#75204)
* After the first auto-generate, the button changes to improve

* When clicking "improve" a toggletip appears with different ways to interact with the model to refine the result

* Analytics: Add analytics to history

---------

Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
Co-authored-by: Ivan Ortega <ivanortegaalba@gmail.com>
2023-10-05 16:25:35 +03:00
Virginia Cepeda
68c25080e6
Alerting: Allow users to give feedback on each insights panel (#75990)
* Add menu to track user feedback on each pane;

* Add RatingModal component

* Open modal with panel header actions

* Fix lint
2023-10-05 09:02:18 -03:00
mikkancso
ef93be7dba
Navtree: Fix nav.infrastructure.title translation (#76027)
fix nav.infrastructure.title translation
2023-10-05 13:55:57 +02:00
Gareth Dawson
835d3c5201
SQL: Remove query execution tracking for dashboards (#76017)
dont track dashboard refresh
2023-10-05 11:46:53 +01:00
kay delaney
374e2a68f6
TemplateSrv: Fix ad hoc filters not applying correctly when using datasource variables (#75977) 2023-10-05 10:18:38 +00:00
Josh Hunt
f08ad95c59
BrowseDashboards: Improve screen reader announcements (#75970)
* use aria-labelledby to describe the whole row

* change

* fix typo

* i18n
2023-10-05 09:14:26 +00:00
Gábor Farkas
c869844a78
sql: added lint-rule againts wrong imports (#75881) 2023-10-05 08:04:10 +02:00
Gábor Farkas
eea95c2ddf
postgres/mysql: removed from-grafana-core import (#75826) 2023-10-05 07:46:24 +02:00
Gábor Farkas
cbfd1d53ee
mysql: config: fixed import and removed unused code (#75883)
* mysql: removed obsolete import

* removed unnecessary check
2023-10-05 07:46:05 +02:00
Virginia Cepeda
1d2bdb8f75
Alerting: improve insights UX (#75320)
* Fix legend for grafana missed iterations panel

* Change panel titles capitalization

* Change tooltip mode to "multi" for timeseries panels

* Add panel tooltips

* Change colors of series (red for firing, blue for neutral)

* Remove unneeded import

* Change panel title and firing alert colors

* Change constant timeseries panels to stat

* Avoid showing legend in panels with just one metric

* Add eval duration / interval ratio panel

* Fix legend

* Fix lint

* Rename panel titles

* Make firing instances table entries have link styling

* Fix betterer

* Add section subheaders

* Override colors and tooltip mode

* Address latest feedback

* Rename table to reflect we're showing rules data and not instances

* Rework most fired rules panel to show numbers instead of trend

* Improve legends and colors

* Fix most fired rules panel

* Missed Iterations: Override legend to display it in a more user friendly way

* Change tab names

* Position grafana-managed scenes under collapsible row

* Show breakdown of alert instances state panels

* Addressing UX feedback

- Making stat panels display area
- Change layout for grafana-managed panels
- Refactor Duration/Interval ratio scene (make calculation directly in PromQL)

* set no value as 0 in stats panels

* Refactor color overriding to use a common function

* fix missing legend for status panels (needed to override color)

* Fix legends for Grafana alertmanager Notifications scene
2023-10-04 17:29:05 -03:00
Kyle Cunningham
d673862853
Transformations: Rename "Transform" tab to "Transform data" (#75757)
* Rename transform tab to transform data
2023-10-04 14:24:21 -05:00
ismail simsek
a12788a4e7
InfluxDB: Interpolate variables based on their type (#75653)
* Rename the mock function

* Move tests

* Refactor existing tests

* add influxql_metadata_query tests

* move to root

* remove unnecessary file

* adhoc test

* Remove unused parameter

* tests for future

* fix mocks

* betterer

* interpolate variables based on their types

* prettier
2023-10-04 17:02:46 +02:00
ismail simsek
2d603bed22
InfluxDB SQL: Add time filter automatically (#75953)
* Use double quotes instead of backticks

* render time field as datetime

* add @react-awesome-query-builder/core

* Add time range filtering

* Update test

* Update macro test
2023-10-04 17:00:24 +02:00
Oscar Kilhed
40cdb30336
Transformations: Add support for dashboard variable in limit, sort by, filter by value, heatmap and histogram (#75372)
* variables for filterforvalue

* use datalinkinput for basic matcher

* fix user select issue

* heatmap transformation variable interpolation

* clean code

* interpolate sort by

* add options interpolation in histogram transformation

* interpolation for limit

* Add suggestions UI to Filter by data value Transformation

Co-authored-by: oscarkilhed <oscar.kilhed@grafana.com>

* add validation for number/variable fields

* Add variables to add field from calculation

* Add validator to limit transformation

* Refactor validator

* Refactor suggestionInput styles

* Add variable support in heatmap calculate options to be in sync with tranform

* Refactor SuggestionsInput

* Fix histogram, limit and filter by value matchers

* clean up weird state ref

* Only interpolate when the feature toggle is set

* Add feature toggle to ui

* Fix number of variable test

* Fix issue with characters typed after opening suggestions still remains after selecting a suggestion

* Clean up from review

* Add more tests for numberOrVariableValidator

---------

Co-authored-by: Victor Marin <victor.marin@grafana.com>
2023-10-04 17:28:46 +03:00
Esteban Beltran
027028d9a0
Sandbox: Make jquery available to plugins in the global scope (#75960) 2023-10-04 16:25:47 +02:00
Andrew Hackmann
3ea6d1f7cc
AzureMonitor: Remove dependencies on Grafana frontend (#75595)
* remove local graf templateSrv and use @grafana/runtime

* tests broken still 0.0

* wip

* moving around tests and fixing

* template var test using mocking and stuff

* AM ds tests fixed

* fix filter tests

* all tests work

* remove comment

* Update azure_log_analytics_datasource.ts

* remove deferred util - not used

* mock instead of spying

* not calling getTemplateSrv each time

* pass range down to filter instead of doing werid stuff

* use default time range if no time range

* prettierer

* remove note
2023-10-04 09:25:05 -05:00
ismail simsek
c64e73540d
InfluxDB SQL: Use double quotes instead of backticks (#75443)
Use double quotes instead of backticks
2023-10-04 15:47:54 +02:00
Andreas Christou
d00ea685e6
CloudMonitoring: Use Field instead of InlineField (#75829)
* Use Field instead of InlineField

* Prettify
2023-10-04 15:45:26 +02:00