Improve temporal value filtering
This commit is contained in:
@@ -94,6 +94,7 @@ func (svc record) Datasource(ctx context.Context, ld *report.LoadStepDefinition)
|
||||
c = report.MakeColumnOfKind(k)
|
||||
c.Name = f.Name
|
||||
c.Label = f.Label
|
||||
c.Options = f.Options
|
||||
if c.Label == "" {
|
||||
c.Label = c.Name
|
||||
}
|
||||
|
||||
@@ -392,7 +392,15 @@ func (f ModuleField) IsNumeric() bool {
|
||||
}
|
||||
|
||||
func (f ModuleField) IsDateTime() bool {
|
||||
return f.Kind == "DateTime"
|
||||
return f.Kind == "DateTime" && !f.IsDateOnly() && !f.IsTimeOnly()
|
||||
}
|
||||
|
||||
func (f ModuleField) IsDateOnly() bool {
|
||||
return f.Kind == "DateTime" && f.Options.Bool("onlyDate")
|
||||
}
|
||||
|
||||
func (f ModuleField) IsTimeOnly() bool {
|
||||
return f.Kind == "DateTime" && f.Options.Bool("onlyTime")
|
||||
}
|
||||
|
||||
// IsRef tells us if value of this field be a reference to something
|
||||
|
||||
Reference in New Issue
Block a user