moves logic that checks for metadata fields into it's own recomputeMetadata. Uses plan.Chart.Equal(state.Chart) instead of relying on GetAttribute since metadata fields are in the root.
Refactor of GetAttribute witihin chartVersion condition
refactor valuesKnown in ModifyPlan to also do comparisons of values with plan.Values instead of GetAttribute
Description
Refactors
ModifyPlan()
method:recomputeMetadata
. Usesplan.Chart.Equal(state.Chart)
instead of relying onGetAttribute
since metadata fields are in the root.GetAttribute
witihinchartVersion
conditionvaluesKnown
inModifyPlan
to also do comparisons of values withplan.Values
instead ofGetAttribute