Skip to content
Snippets Groups Projects
Commit 523a284a authored by Cam Saül's avatar Cam Saül
Browse files

add :timestamp_milliseconds to special-types

parent 661ddccd
Branches
Tags
No related merge requests found
......@@ -6,6 +6,7 @@ ExploreServices.service('CorvusFormGenerator', [function() {
// Valid Operators per field
var DateBaseTypes = ['DateTimeField', 'DateField'];
var DateSpecialTypes = ['timestamp_milliseconds', 'timestamp_seconds'];
var NumberBaseTypes = ['IntegerField', 'DecimalField', 'FloatField', 'BigIntegerField'];
var SummableBaseTypes = ['IntegerField', 'DecimalField', 'FloatField', 'BigIntegerField'];
var CategoryBaseTypes = ["BooleanField"];
......@@ -20,7 +21,7 @@ ExploreServices.service('CorvusFormGenerator', [function() {
}
function isDate(field) {
return isInTypes(field.base_type, DateBaseTypes);
return isInTypes(field.base_type, DateBaseTypes) || isInTypes(field.special_type, DateSpecialTypes);
}
function isNumber(field) {
......@@ -334,4 +335,4 @@ ExploreServices.service('CorvusFormGenerator', [function() {
return table;
};
}]);
\ No newline at end of file
}]);
......@@ -24,6 +24,7 @@
:name
:number
:state
:timestamp_milliseconds
:timestamp_seconds
:url
:zip_code})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment