mirror of
https://github.com/grafana/grafana.git
synced 2025-02-15 01:53:33 -06:00
* Add 'JSON' field type to ConvertFieldTypeTransformer
I've been playing around with #41994 and found that it requires fields
to contain array values, which can't be sent from a backend plugin. This
PR adds the ability for the ConvertFieldTypeTransformer to parse
JSON values and store the result in the transformed field.
The main use case for this right now is so that a field
containing a JSONified array can be transformed into a field
containing an actual array, which can in
turn be used for the table charts in #41994.
Supersedes #42521.
* Add second option to complex field conversion to increase flexibility
This avoids falsely equating 'JSON' with FieldType.other, and instead
allows multiple parsers to be used if the 'Complex' type is selected.
Currently only JSON parsing is implemented, but others could be
supported easily in future.
* Revert "Add second option to complex field conversion to increase flexibility"
This reverts commit
|
||
---|---|---|
.. | ||
actions | ||
components | ||
copy | ||
hooks | ||
navigation | ||
reducers | ||
selectors | ||
services | ||
specs | ||
utils | ||
app_events.ts | ||
config.ts | ||
constants.ts | ||
core.ts | ||
jquery_extended.ts | ||
localisation.tsx | ||
lodash_extended.ts | ||
logs_model.test.ts | ||
logs_model.ts | ||
mod_defs.d.ts | ||
profiler.ts | ||
store.ts | ||
table_model.ts | ||
time_series2.ts |