Skip to content

Commit

Permalink
[savedObjects] change the number mappings to be 'long'
Browse files Browse the repository at this point in the history
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: 1b9a646
author: @spalger
  • Loading branch information
epixa committed Jan 19, 2016
1 parent f0f639e commit 9ba54d9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ define(function (require) {
uiStateJSON: 'string',
description: 'string',
savedSearchId: 'string',
version: 'integer'
version: 'long'
};

SavedVis.searchSource = true;
Expand Down

0 comments on commit 9ba54d9

Please sign in to comment.