Commit Graph

4074 Commits

Author SHA1 Message Date
sam boyer
a3402641d6
api: Validate dashboards on save via coremodels, behind feature toggle (#48252)
* Add coremodelValidation feature flag

* coremodels: use stubs when feature flag is off

* api: validate dashboards on save

* Need pointer receiver for FeatureManager

* Update dashboard Go model

* Align doc comments

* Include CoremodelRegistry in test

* Wedge coremodel in on all test cases, ugh

* Ugh fix comment again

* Update pkg/framework/coremodel/staticregistry/provide.go

Co-authored-by: Artur Wierzbicki <wierzbicki.artur.94@gmail.com>

* Update Thema (and its deps) for better errs

* omg whitespace

Co-authored-by: Artur Wierzbicki <wierzbicki.artur.94@gmail.com>
2022-05-22 02:44:12 +02:00
svennergr
2949ebc264
Traces: Fixed missing CopyButton on KeyValueTables and overlapping of panels (#49271)
* rewrote `CopyIcon` to an functional component

- fixed missing `CopyIcon` on `KeyValuesTable`

* added fixed height of `30px` to `KeyValuesTable` to fix overlapping

* removed unused CopyIcon snapshot

* KeyValuesTable: moved `30px` height from `tr` to `td` to fix vertical alignment
2022-05-20 20:24:33 +02:00
Josh Hunt
426ca2999e
GrafanaUI: Fix color of links in error Tooltips in light theme (#49327)
* GrafanaUI: Fix color of links in input validation errors in light theme

* Change colors
2022-05-20 18:54:07 +01:00
Erik Sundell
bd320ee0b3
Auth: Remove grafana ui dependency to the aws sdk (#43559)
* remove grafana ui dependency to the aws sdk

* wip

* cleanup

* add tests

* point to real version of aws-sdk
2022-05-20 16:04:20 +02:00
renovate[bot]
be7de1041a
Update Monthly patch updates (#49257)
* Update Monthly patch updates

* remove @types/slate update and run prettier

* fix @types/slate resolution

* lockfile update

* more fixes

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2022-05-20 13:07:07 +01:00
Chrysa Dikonimaki
7623f6ac64
Convert packages/jaeger-ui-components/src/TraceTimelineViewer/SpanDetail/AccordianText.test.js and packages/jaeger-ui-components/src/TraceTimelineViewer/SpanDetail/TextList.test.js to RTL (#49148)
* convert AccordianText and TestList tests to RTL

* convert AccordianText and TestList tests to RTL

* Update packages/jaeger-ui-components/src/TraceTimelineViewer/SpanDetail/AccordianText.test.js

Co-authored-by: Ashley Harrison <ashharrison90@gmail.com>

* Update packages/jaeger-ui-components/src/TraceTimelineViewer/SpanDetail/TextList.test.js

Co-authored-by: Ashley Harrison <ashharrison90@gmail.com>

* Update packages/jaeger-ui-components/src/TraceTimelineViewer/SpanDetail/AccordianText.test.js

Co-authored-by: Ashley Harrison <ashharrison90@gmail.com>

* fix TextList and AccordianText tests

* remove getrow function

* readd TextList props

Co-authored-by: Ashley Harrison <ashharrison90@gmail.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2022-05-20 11:02:43 +01:00
Ashley Harrison
b864442717
Gauge: convert tests to RTL (#49251)
* Move logic into utils file, add EXTREMELY basic RTL test

* initialise array with value
2022-05-20 10:51:11 +01:00
Gabriel MABILLE
689f51599a
AccessControl: Use RBACBuiltInRoleAssignmentEnabled in the frontend instead of FeatureToggle (#49261)
* AccessControl: Frontend changes to basic role enablement
2022-05-20 06:53:28 +00:00
renovate[bot]
0bad187a60
Update dependency sass-loader to v13 (#49238)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-19 15:05:48 +01:00
renovate[bot]
f35be58252
Update dependency postcss-loader to v7 (#49237)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-19 15:00:25 +01:00
renovate[bot]
d2b9c42004
Update dependency yaml to v2 (#49239)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-19 14:52:25 +01:00
renovate[bot]
43d924324a
Update dependency sinon to v14 (#49236)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-19 14:48:30 +01:00
renovate[bot]
31ca628262
Update dependency mocha to v10 (#49233)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-19 13:39:39 +01:00
renovate[bot]
3da1bf160e
Update dependency expose-loader to v4 (#49229)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-19 13:25:29 +01:00
renovate[bot]
04dff7cc70
Update dependency css-minimizer-webpack-plugin to v4 (#49227)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-19 13:05:32 +01:00
renovate[bot]
258e48678a
Update dependency rollup to v2.74.0 (#49215)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-19 10:13:16 +01:00
Gabriel MABILLE
5b6d20fbce
Access Control: Remove built-in role assignment by default (#49058)
* Remove FF-bultins

* Add a param to test br-simplifying
2022-05-19 09:29:36 +02:00
Connor Lindsey
7688b12f9a
Tracing: Add config for multiple named trace to metrics queries (#49007)
* Tracing: Add config for multiple named trace to metrics queries
2022-05-18 10:55:55 -06:00
Chrysa Dikonimaki
a113fcaca3
Convert packages/jaeger-ui-components/src/TraceTimelineViewer/SpanBarRow.test.js to RTL (#49119)
* convert SpanBarRow tests to RTL

* remove comments

* Update packages/jaeger-ui-components/src/TraceTimelineViewer/SpanBarRow.test.js

Co-authored-by: Ashley Harrison <ashharrison90@gmail.com>

* Update packages/jaeger-ui-components/src/TraceTimelineViewer/SpanBarRow.test.js

Co-authored-by: Ashley Harrison <ashharrison90@gmail.com>

* fix and replace

* fix last test

Co-authored-by: Ashley Harrison <ashharrison90@gmail.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2022-05-18 17:18:24 +01:00
renovate[bot]
887adc3d9b
Update dependency @testing-library/react-hooks to v8 (#49180)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-18 17:02:17 +01:00
renovate[bot]
eecee16b66
Update dependency @rollup/plugin-commonjs to v22 (#49172)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-18 16:16:55 +01:00
renovate[bot]
2857258b53
Update emotion monorepo to v11.9.0 (#49167)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-18 16:13:02 +01:00
renovate[bot]
b54ac426c8
Update dependency storybook-dark-mode to v1.1.0 (#49155)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-18 13:41:23 +01:00
renovate[bot]
7ac9a0a087
Update dependency rollup to v2.73.0 (#49152)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-18 13:04:21 +01:00
Chrysa Dikonimaki
6b4353f890
Convert packages/jaeger-ui-components/src/TraceTimelineViewer/SpanBar.test.js to RTL (#49107)
* convert SpanBar tests to RTL and add testing-library/react dependency

* Update packages/jaeger-ui-components/src/TraceTimelineViewer/SpanBar.test.js

Co-authored-by: Ashley Harrison <ashharrison90@gmail.com>

* Update packages/jaeger-ui-components/src/TraceTimelineViewer/SpanBar.test.js

Co-authored-by: Ashley Harrison <ashharrison90@gmail.com>

* fix

* use e2e selector everywhere

Co-authored-by: Ashley Harrison <ashharrison90@gmail.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2022-05-18 13:00:44 +01:00
renovate[bot]
523b9ec44f
Update dependency react-select to v5.3.2 (#49142)
* Update dependency react-select to v5.3.2

* update snapshot

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
2022-05-18 12:00:39 +01:00
renovate[bot]
1c5996eddf
Update dependency react-table to v7.8.0 (#49149)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-18 11:51:04 +01:00
Dominik Prokop
cdc6344a96
Legend: Use correct unit for percent and count calculations (#49004) 2022-05-18 12:22:17 +02:00
renovate[bot]
b9e45fafe5
Update dependency react-popper to v2.3.0 (#49141)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-18 11:05:27 +01:00
renovate[bot]
2bbb685c54
Update dependency react-highlight-words to v0.18.0 (#49136)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-18 09:47:33 +01:00
renovate[bot]
0616388036
Update dependency rc-cascader to v3.5.0 (#49106)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-18 09:35:57 +01:00
renovate[bot]
f01a72e179
Update dependency prismjs to v1.28.0 (#49105)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-18 09:19:05 +01:00
Dominik Prokop
6a5a0e5770
Tooltip: Sort decimals using standard numeric compare (#49084)
* Failing test case

* Compare numeric values not using collator
2022-05-17 16:30:44 +02:00
renovate[bot]
54f167dc2d
Update dependency core-js to v3.22.5 (#49071)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-17 13:57:22 +01:00
renovate[bot]
b342c53acd
Update dependency csstype to v3.1.0 (#49072)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-17 13:32:38 +01:00
Ashley Harrison
bddbed4e21
Convert FormField tests to RTL (#49068) 2022-05-17 13:26:48 +01:00
sam boyer
44956aea66
Incremental improvements to dashboard schema (#48977)
* Change default of style to dark

* Separate cursor into standalone def

* Docs on timepicker and templating fields

Also add what appear to be timepicker-related fields

* Separate out AnnotationQuery definition

* Add memberNames for DashboardCursorSync

* Add sketch of VariableModel for templating field

Also changes label field from frontend from null to optional.

* Use constraints to enforce non-empty panel type

Negation (!="")  was breaking openapi exporter

* Add types and fields for links

* Remove panelVersion fields

These weren't right anyway, and they revealed a bug in the CUE openapi
generator

* Remove null label value from test

* Narrow type and set bounds on month field

* Adapt Go dashboard schema to lineage changes
2022-05-17 12:11:09 +01:00
kay delaney
de3e981985
Chore: Upgrade typescript to 4.6.4 (#49016) 2022-05-17 12:08:10 +01:00
Piotr Jamróz
f252e89339
Query History: Implement RemoteStorage methods: get all, add new (#48330)
* Load Rich History when the container is opened

* Store rich history for each pane separately

* Do not update currently opened query history when an item is added

It's impossible to figure out if the item should be added or not, because filters are applied in the backend. We don't want to replicate that filtering logic in frontend. One way to make it work could be by refreshing both panes.

* Test starring and deleting query history items when both panes are open

* Remove e2e dependency on ExploreId

* Fix unit test

* Assert exact queries

* Simplify test

* Fix e2e tests

* Fix toolbar a11y

* Reload the history after an item is added

* Fix unit test

* Remove references to Explore from generic PageToolbar component

* Update test name

* Fix test assertion

* Add issue item to TODO

* Improve test assertion

* Simplify test setup

* Move query history settings to persistence layer

* Fix test import

* Fix unit test

* Fix unit test

* Test local storage settings API

* Code formatting

* Fix linting errors

* Add an integration test

* Add missing aria role

* Fix a11y issues

* Fix a11y issues

* Use divs instead of ul/li

Otherwis,e pa11y-ci reports the error below claiming there are no children with role=tab:

Certain ARIA roles must contain particular children
   (https://dequeuniversity.com/rules/axe/4.3/aria-required-children?application=axeAPI)

   (#reactRoot > div > main > div:nth-child(3) > div > div:nth-child(1) > div >
   div:nth-child(1) > div > div > nav > div:nth-child(2) > ul)

   <ul class="css-af3vye" role="tablist"><li class="css-1ciwanz"><a href...</ul>

* Clean up settings tab

* Remove redundant aria label

* Remove redundant container

* Clean up test assertions

* Move filtering to persistence layer

* Move filtering to persistence layer

* Simplify applying filters

* Split applying filters and reloading the history

* Debounce updating filters

* Update tests

* Fix waiting for debounced results

* Clear results when switching tabs

* Improve test coverage

* Update docs

* Revert extra handling for uid (will be added when we introduce remote storage)

* Create basic plan

* Rename query history toggle

* Add list of supported features and add ds name to RichHistoryQuery object

* Clean up

Removed planned items will be addressed in upcoming prs (filtering and pagination)

* Handle data source filters

* Simplify DTO conversion

* Clean up

* Fix betterer conflicts

* Fix imports

* Fix imports

* Post-merge fixes

* Use config instead of a feature flag

* Use config instead of a feature flag

* Update converter tests

* Add tests for RichHistoryRemoteStorage

* Simplify test setup

* Simplify assertion

* Add e2e test for query history

* Remove duplicated entry

* Fix unit tests

* Improve readability

* Remove unnecessary casting

* Mock backend in integration tests

* Remove unnecessary casting

* Fix integration test

* Update betterer results

* Fix unit tests

* Simplify testing with DataSourceSrv

* Fix sorting and add to/from filtering

* Simplify testing DataSourceSettings

* Update betterer results

* Ensure previous request is canceled when getting search results

* Add loading message when results are being loaded

* Show info message only if local storage is enabled

* Fix unit test

* Reuse sort order options

* Reuse sort order options

* Fix footer spacing
2022-05-17 12:59:16 +02:00
Ashley Harrison
3b0cd8b6f1
Convert NamedColorsPalette tests to RTL (#49064) 2022-05-17 11:34:15 +01:00
renovate[bot]
d477394d6c
Update dependency @testing-library/user-event to v14.2.0 (#49060)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-17 11:25:40 +01:00
Ashley Harrison
a3e68eef17
IconButton: IconButtons are now correctly aligned in Safari (#48759)
* fix icon alignment in safari

* add comment
2022-05-17 11:03:35 +01:00
Chrysa Dikonimaki
b33c1bf4fd
Convert packages/grafana-ui/src/components/Logs/LogRows.test.tsx to RTL (#48982)
* convert LogLabels tests toRTL

* convert LogMessageAnsi tests to RTL

* convert LogMessageAnsi to RTL fix

* remove comment from LogMessageAnsi tests

* convert LogRows tests to RTL

* Delete LogRow import
2022-05-17 08:56:14 +01:00
Leon Sorokin
84d4ce51ad
TimeSeries: Fix detection & rendering of sparse datapoints (#48841) 2022-05-16 23:24:41 -05:00
Leon Sorokin
eecdbebf75
TimeSeries: insert null values at each missing interval (#49036) 2022-05-16 22:13:27 -05:00
Jeff Levin
2691872c7a
remove validatedQueries feature toggle (#48381)
* remove validatedQueries feature toggle
2022-05-16 13:17:05 -08:00
Torkel Ödegaard
a2ebdf2bc2
Revert "Transformation: Added variance and standard deviation (#48844)" (#48997)
This reverts commit 906484b809.
2022-05-16 17:21:23 +02:00
Ieva
f256f625d8
AccessControl: Enable RBAC by default (#48813)
* Add RBAC section to settings

* Default to RBAC enabled settings to true

* Update tests to respect RBAC

Co-authored-by: Karl Persson <kalle.persson@grafana.com>
2022-05-16 12:45:41 +02:00
Gilles De Mey
1a7ca3f0de
Expressions: adds inline documentation for the Math expression (#48784) 2022-05-16 11:30:27 +02:00
Björn Rabenstein
97759c75f4
Prometheus: add support for new _experimental_ sparse histograms/heatmaps (#47801)
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
2022-05-16 02:47:18 +02:00