don't encode 'base' in the field options json

it's not something that we can send to the server (it calculates base
off of min and max), and we don't need it in the json string in order
to use it client side when building import requests.
This commit is contained in:
Matthew Jaffee 2022-05-29 07:39:33 -05:00 • committed by Matthew Jaffee
parent 96f589ce24
commit cc2230b4b8

View file

@ -826,12 +826,10 @@ func (fo FieldOptions) String() string {
case FieldTypeInt:
mopt["min"] = fo.min
mopt["max"] = fo.max
mopt["base"] = fo.base
case FieldTypeDecimal:
mopt["min"] = fo.min
mopt["max"] = fo.max
mopt["scale"] = fo.scale
mopt["base"] = fo.base
case FieldTypeTime:
mopt["timeQuantum"] = string(fo.timeQuantum)
mopt["noStandardView"] = fo.noStandardView
@ -840,7 +838,6 @@ func (fo FieldOptions) String() string {
mopt["min"] = fo.min
mopt["max"] = fo.max
mopt["timeUnit"] = fo.timeUnit
mopt["base"] = fo.base
mopt["epoch"] = fo.epoch
}