[savedObjects] change the number mappings to be 'long'

Since JavaScript numbers can't actually be integers we don't really
care about the difference between int and long, but since the long
is the default type it makes things more frictionless

Original
commit: 1b9a6465d8
author: @spalger
This commit is contained in:
Court Ewing 2016-01-19 10:23:10 -05:00
parent 5dbbabce59
commit 267ba2bf72
3 changed files with 5 additions and 5 deletions

View file

@ -47,12 +47,12 @@ define(function (require) {
// if type:dashboard has no mapping, we push this mapping into ES
SavedDashboard.mapping = {
title: 'string',
hits: 'integer',
hits: 'long',
description: 'string',
panelsJSON: 'string',
optionsJSON: 'string',
uiStateJSON: 'string',
version: 'integer',
version: 'long',
timeRestore: 'boolean',
timeTo: 'string',
timeFrom: 'string',

View file

@ -33,10 +33,10 @@ define(function (require) {
SavedSearch.mapping = {
title: 'string',
description: 'string',
hits: 'integer',
hits: 'long',
columns: 'string',
sort: 'string',
version: 'integer'
version: 'long'
};
SavedSearch.searchSource = true;

View file

@ -48,7 +48,7 @@ define(function (require) {
uiStateJSON: 'string',
description: 'string',
savedSearchId: 'string',
version: 'integer'
version: 'long'
};
SavedVis.searchSource = true;