Graph: Move all field validation logic into deserialize
#55968
Labels
Feature:Graph
Graph application feature
impact:low
Addressing this issue will have a low level of impact on the quality/strength of our product.
Team:Visualizations
Visualization editors, elastic-charts and infrastructure
Currently the logic in
x-pack/legacy/plugins/graph/public/services/persistence/deserialize.ts
filters out some fields from the index pattern object. #54101 introduced additional field validation logic inx-pack/legacy/plugins/graph/public/components/field_manager/field_picker.tsx
. This was done to not break workspaces that selected fields disallowed by the new logic in the past.This behavior should be refactored to do all field filtering logic in one place. To avoid breaking old workspaces, disallowed fields should be mapped to a special field type that allows changing appearance of the nodes, but won't attempt additional explore queries and won't allow to add them again after removal.
The text was updated successfully, but these errors were encountered: