Ivan Ortega Alba
8415dd40d7
DSPicker: Use new DS picker everywhere in Grafana ( #70609 )
2023-07-26 18:40:51 +02:00
Matias Chomicki
9441692fe9
Loki Derived Fields: Refactor legacy form components and add validation ( #68015 )
...
* Derived fields: validate duplicated names
* Derived fields: rename prop
* Update tests
* Derived fields: do not validate empty names as repeated
* Derived Field: use non-legacy Field and Input
* Derived Field: integrate name validation
* Derived field: align delete button
* Derived Field: add tooltips
* Derived Field: migrate and style internal link field
* Update tests
* Derived Field: ask user to select data source
Otherwise it's bugged
* Remove unnecessary onchange handler
* Initialize all derived fields attributes
Otherwise we trigger controlled-to-uncontrolled React errors
* Update public/app/plugins/datasource/loki/configuration/DerivedField.tsx
Co-authored-by: Gábor Farkas <gabor.farkas@gmail.com>
---------
Co-authored-by: Gábor Farkas <gabor.farkas@gmail.com>
2023-05-15 13:48:50 +03:00
Ashley Harrison
db4a2d58a1
convert DerivedField test to RTL ( #54334 )
2022-08-30 10:28:06 +01:00
Matias Chomicki
1642716978
Chore(loki): remove any from DerivedFields test ( #53547 )
2022-08-24 10:06:28 +02:00
Josh Hunt
3c6e0e8ef8
Chore: ESlint import order ( #44959 )
...
* Add and configure eslint-plugin-import
* Fix the lint:ts npm command
* Autofix + prettier all the files
* Manually fix remaining files
* Move jquery code in jest-setup to external file to safely reorder imports
* Resolve issue caused by circular dependencies within Prometheus
* Update .betterer.results
* Fix missing // @ts-ignore
* ignore iconBundle.ts
* Fix missing // @ts-ignore
2022-04-22 14:33:13 +01:00
Marcus Andersson
69201bbf8c
Plugins: moving the DataSourcePicker to grafana/runtime so it can be reused in plugins ( #31628 )
...
* moved the datasource picker to grafana-runtime.
* fixed imports.
* added e2e selectors as an external package.
* adding react as external package.
* exposing dependent types for DataSourcePicker.
* added docs for ui components.
* moving component to components.
2021-03-18 10:44:26 +01:00
Torkel Ödegaard
3d6380a0aa
QueryGroup & DataSourceSrv & DataSourcePicker changes simplify usage, error handling and reduce duplication, support for uid ( #29542 )
...
* Starting moving more stuff into data source picker
* WIP progress
* Progress on datasource picker rethink
* Things are working now some details to figure out
* Removed commented part
* Complex work on getting data source lists
* Fixed variable support showing correct data sources
* Tried fixing dashboard import but failed
* Fixes
* Fixed import dashboard
* Fixed unit test
* Fixed explore test
* Fixed test
* Fix
* fixed more tests
* fixed more tests
* fixed showing which option is default in picker
* Changed query variable to use data source picker, updated tests and e2e
* Fixed more tests
* Updated snapshots, had wrong typescript version
2020-12-04 14:24:55 +01:00
Andrej Ocenas
66b3e08a7f
Links: Filter data sources in derived link to tracing only ( #23948 )
2020-05-05 17:08:31 +02:00
Andrej Ocenas
376765b3d7
Tracing: Remove feature flag ( #23834 )
2020-04-23 20:46:42 +02:00
Andrej Ocenas
e5dd7efdee
Provisioning: Allows specifying uid for datasource and use that in derived fields ( #23585 )
...
* Add uid to datasource
* Fix uid passing when provisioning
* Better error handling and Uid column type change
* Fix test and strict null error counts
* Add backend tests
* Add tests
* Fix strict null checks
* Update test
* Improve tests
* Update pkg/services/sqlstore/datasource.go
Co-Authored-By: Arve Knudsen <arve.knudsen@gmail.com>
* Variable rename
Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
2020-04-20 15:48:38 +02:00