From cc2230b4b8aa06b9a114ff7fdbabb6cf8c923a51 Mon Sep 17 00:00:00 2001 From: Matthew Jaffee Date: Sun, 29 May 2022 07:39:33 -0500 Subject: [PATCH] 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. --- client/orm.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/client/orm.go b/client/orm.go index d589eba17..98a72d700 100644 --- a/client/orm.go +++ b/client/orm.go @@ -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 }