mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
The sample data does not currently specify a migration version, which means we have manually update the data sets when updating the saved objects API. This just sets the migration version for all the saved objects to `{}`, which signals to the saved objects API that the object has not been migrated and should have all migrations applied.
This commit is contained in:
parent
1c33d4d321
commit
173dadcd72
7 changed files with 52 additions and 0 deletions
|
@ -28,6 +28,7 @@ export const getSavedObjects = () => [
|
|||
"type": "visualization",
|
||||
"updated_at": "2018-10-01T15:13:03.270Z",
|
||||
"version": 1,
|
||||
"migrationVersion": {},
|
||||
"attributes": {
|
||||
"title": i18n.translate('server.sampleData.ecommerceSpec.salesByCategoryTitle', {
|
||||
defaultMessage: '[eCommerce] Sales by Category',
|
||||
|
@ -46,6 +47,7 @@ export const getSavedObjects = () => [
|
|||
"type": "visualization",
|
||||
"updated_at": "2018-10-01T15:13:03.270Z",
|
||||
"version": 1,
|
||||
"migrationVersion": {},
|
||||
"attributes": {
|
||||
"title": i18n.translate('server.sampleData.ecommerceSpec.salesByGenderTitle', {
|
||||
defaultMessage: '[eCommerce] Sales by Gender',
|
||||
|
@ -64,6 +66,7 @@ export const getSavedObjects = () => [
|
|||
"type": "visualization",
|
||||
"updated_at": "2018-10-01T15:13:03.270Z",
|
||||
"version": 1,
|
||||
"migrationVersion": {},
|
||||
"attributes": {
|
||||
"title": i18n.translate('server.sampleData.ecommerceSpec.markdownTitle', {
|
||||
defaultMessage: '[eCommerce] Markdown',
|
||||
|
@ -82,6 +85,7 @@ export const getSavedObjects = () => [
|
|||
"type": "visualization",
|
||||
"updated_at": "2018-10-01T15:13:03.270Z",
|
||||
"version": 1,
|
||||
"migrationVersion": {},
|
||||
"attributes": {
|
||||
"title": i18n.translate('server.sampleData.ecommerceSpec.controlsTitle', {
|
||||
defaultMessage: '[eCommerce] Controls',
|
||||
|
@ -100,6 +104,7 @@ export const getSavedObjects = () => [
|
|||
"type": "visualization",
|
||||
"updated_at": "2018-10-01T15:17:30.755Z",
|
||||
"version": 2,
|
||||
"migrationVersion": {},
|
||||
"attributes": {
|
||||
"title": i18n.translate('server.sampleData.ecommerceSpec.promotionTrackingTitle', {
|
||||
defaultMessage: '[eCommerce] Promotion Tracking',
|
||||
|
@ -118,6 +123,7 @@ export const getSavedObjects = () => [
|
|||
"type": "visualization",
|
||||
"updated_at": "2018-10-01T15:13:03.270Z",
|
||||
"version": 1,
|
||||
"migrationVersion": {},
|
||||
"attributes": {
|
||||
"title": i18n.translate('server.sampleData.ecommerceSpec.totalRevenueTitle', {
|
||||
defaultMessage: '[eCommerce] Total Revenue',
|
||||
|
@ -136,6 +142,7 @@ export const getSavedObjects = () => [
|
|||
"type": "visualization",
|
||||
"updated_at": "2018-10-01T15:13:03.270Z",
|
||||
"version": 1,
|
||||
"migrationVersion": {},
|
||||
"attributes": {
|
||||
"title": i18n.translate('server.sampleData.ecommerceSpec.soldProductsPerDayTitle', {
|
||||
defaultMessage: '[eCommerce] Sold Products per Day',
|
||||
|
@ -154,6 +161,7 @@ export const getSavedObjects = () => [
|
|||
"type": "visualization",
|
||||
"updated_at": "2018-10-01T15:13:03.270Z",
|
||||
"version": 1,
|
||||
"migrationVersion": {},
|
||||
"attributes": {
|
||||
"title": i18n.translate('server.sampleData.ecommerceSpec.averageSalesPriceTitle', {
|
||||
defaultMessage: '[eCommerce] Average Sales Price',
|
||||
|
@ -172,6 +180,7 @@ export const getSavedObjects = () => [
|
|||
"type": "visualization",
|
||||
"updated_at": "2018-10-01T15:13:03.270Z",
|
||||
"version": 1,
|
||||
"migrationVersion": {},
|
||||
"attributes": {
|
||||
"title": i18n.translate('server.sampleData.ecommerceSpec.averageSoldQuantityTitle', {
|
||||
defaultMessage: '[eCommerce] Average Sold Quantity',
|
||||
|
@ -190,6 +199,7 @@ export const getSavedObjects = () => [
|
|||
"type": "search",
|
||||
"updated_at": "2018-10-01T15:13:03.270Z",
|
||||
"version": 1,
|
||||
"migrationVersion": {},
|
||||
"attributes": {
|
||||
"title": i18n.translate('server.sampleData.ecommerceSpec.ordersTitle', {
|
||||
defaultMessage: '[eCommerce] Orders',
|
||||
|
@ -217,6 +227,7 @@ export const getSavedObjects = () => [
|
|||
"type": "visualization",
|
||||
"updated_at": "2018-10-01T15:13:03.270Z",
|
||||
"version": 1,
|
||||
"migrationVersion": {},
|
||||
"attributes": {
|
||||
"title": i18n.translate('server.sampleData.ecommerceSpec.averageSalesPerRegionTitle', {
|
||||
defaultMessage: '[eCommerce] Average Sales Per Region',
|
||||
|
@ -235,6 +246,7 @@ export const getSavedObjects = () => [
|
|||
"type": "visualization",
|
||||
"updated_at": "2018-10-01T15:13:03.270Z",
|
||||
"version": 1,
|
||||
"migrationVersion": {},
|
||||
"attributes": {
|
||||
"title": i18n.translate('server.sampleData.ecommerceSpec.topSellingProductsTitle', {
|
||||
defaultMessage: '[eCommerce] Top Selling Products',
|
||||
|
@ -253,6 +265,7 @@ export const getSavedObjects = () => [
|
|||
"type": "index-pattern",
|
||||
"updated_at": "2018-10-01T15:13:03.270Z",
|
||||
"version": 1,
|
||||
"migrationVersion": {},
|
||||
"attributes": {
|
||||
"title": "kibana_sample_data_ecommerce",
|
||||
"timeFieldName": "order_date",
|
||||
|
@ -265,6 +278,7 @@ export const getSavedObjects = () => [
|
|||
"type": "dashboard",
|
||||
"updated_at": "2018-10-01T15:13:03.270Z",
|
||||
"version": 1,
|
||||
"migrationVersion": {},
|
||||
"attributes": {
|
||||
"title": i18n.translate('server.sampleData.ecommerceSpec.revenueDashboardTitle', {
|
||||
defaultMessage: '[eCommerce] Revenue Dashboard',
|
||||
|
|
|
@ -28,6 +28,7 @@ export const getSavedObjects = () => [
|
|||
"type": "visualization",
|
||||
"updated_at": "2018-05-09T15:49:03.736Z",
|
||||
"version": 1,
|
||||
"migrationVersion": {},
|
||||
"attributes": {
|
||||
"title": i18n.translate('server.sampleData.flightsSpec.controlsTitle', {
|
||||
defaultMessage: '[Flights] Controls',
|
||||
|
@ -46,6 +47,7 @@ export const getSavedObjects = () => [
|
|||
"type": "visualization",
|
||||
"updated_at": "2018-05-09T15:49:03.736Z",
|
||||
"version": 1,
|
||||
"migrationVersion": {},
|
||||
"attributes": {
|
||||
"title": i18n.translate('server.sampleData.flightsSpec.flightCountAndAverageTicketPriceTitle', {
|
||||
defaultMessage: '[Flights] Flight Count and Average Ticket Price',
|
||||
|
@ -64,6 +66,7 @@ export const getSavedObjects = () => [
|
|||
"type": "search",
|
||||
"updated_at": "2018-05-09T15:49:03.736Z",
|
||||
"version": 1,
|
||||
"migrationVersion": {},
|
||||
"attributes": {
|
||||
"title": i18n.translate('server.sampleData.flightsSpec.flightLogTitle', {
|
||||
defaultMessage: '[Flights] Flight Log',
|
||||
|
@ -96,6 +99,7 @@ export const getSavedObjects = () => [
|
|||
"type": "visualization",
|
||||
"updated_at": "2018-05-09T15:49:03.736Z",
|
||||
"version": 1,
|
||||
"migrationVersion": {},
|
||||
"attributes": {
|
||||
"title": i18n.translate('server.sampleData.flightsSpec.airlineCarrierTitle', {
|
||||
defaultMessage: '[Flights] Airline Carrier',
|
||||
|
@ -114,6 +118,7 @@ export const getSavedObjects = () => [
|
|||
"type": "visualization",
|
||||
"updated_at": "2018-05-09T15:49:03.736Z",
|
||||
"version": 1,
|
||||
"migrationVersion": {},
|
||||
"attributes": {
|
||||
"title": i18n.translate('server.sampleData.flightsSpec.delayTypeTitle', {
|
||||
defaultMessage: '[Flights] Delay Type',
|
||||
|
@ -132,6 +137,7 @@ export const getSavedObjects = () => [
|
|||
"type": "visualization",
|
||||
"updated_at": "2018-05-09T15:49:03.736Z",
|
||||
"version": 1,
|
||||
"migrationVersion": {},
|
||||
"attributes": {
|
||||
"title": i18n.translate('server.sampleData.flightsSpec.delaysAndCancellationsTitle', {
|
||||
defaultMessage: '[Flights] Delays & Cancellations',
|
||||
|
@ -150,6 +156,7 @@ export const getSavedObjects = () => [
|
|||
"type": "visualization",
|
||||
"updated_at": "2018-05-09T15:49:03.736Z",
|
||||
"version": 1,
|
||||
"migrationVersion": {},
|
||||
"attributes": {
|
||||
"title": i18n.translate('server.sampleData.flightsSpec.delayBucketsTitle', {
|
||||
defaultMessage: '[Flights] Delay Buckets',
|
||||
|
@ -168,6 +175,7 @@ export const getSavedObjects = () => [
|
|||
"type": "visualization",
|
||||
"updated_at": "2018-05-09T15:49:03.736Z",
|
||||
"version": 1,
|
||||
"migrationVersion": {},
|
||||
"attributes": {
|
||||
"title": i18n.translate('server.sampleData.flightsSpec.flightDelaysTitle', {
|
||||
defaultMessage: '[Flights] Flight Delays',
|
||||
|
@ -186,6 +194,7 @@ export const getSavedObjects = () => [
|
|||
"type": "visualization",
|
||||
"updated_at": "2018-05-09T15:49:03.736Z",
|
||||
"version": 1,
|
||||
"migrationVersion": {},
|
||||
"attributes": {
|
||||
"title": i18n.translate('server.sampleData.flightsSpec.flightCancellationsTitle', {
|
||||
defaultMessage: '[Flights] Flight Cancellations',
|
||||
|
@ -204,6 +213,7 @@ export const getSavedObjects = () => [
|
|||
"type": "visualization",
|
||||
"updated_at": "2018-05-09T15:49:03.736Z",
|
||||
"version": 1,
|
||||
"migrationVersion": {},
|
||||
"attributes": {
|
||||
"title": i18n.translate('server.sampleData.flightsSpec.destinationAirportTitle', {
|
||||
defaultMessage: '[Flights] Destination Airport',
|
||||
|
@ -222,6 +232,7 @@ export const getSavedObjects = () => [
|
|||
"type": "visualization",
|
||||
"updated_at": "2018-05-09T15:49:03.736Z",
|
||||
"version": 1,
|
||||
"migrationVersion": {},
|
||||
"attributes": {
|
||||
"title": i18n.translate('server.sampleData.flightsSpec.destinationWeatherTitle', {
|
||||
defaultMessage: '[Flights] Destination Weather',
|
||||
|
@ -240,6 +251,7 @@ export const getSavedObjects = () => [
|
|||
"type": "visualization",
|
||||
"updated_at": "2018-05-09T15:49:03.736Z",
|
||||
"version": 1,
|
||||
"migrationVersion": {},
|
||||
"attributes": {
|
||||
"title": i18n.translate('server.sampleData.flightsSpec.markdownInstructionsTitle', {
|
||||
defaultMessage: '[Flights] Markdown Instructions',
|
||||
|
@ -258,6 +270,7 @@ export const getSavedObjects = () => [
|
|||
"type": "visualization",
|
||||
"updated_at": "2018-05-09T15:49:03.736Z",
|
||||
"version": 1,
|
||||
"migrationVersion": {},
|
||||
"attributes": {
|
||||
"title": i18n.translate('server.sampleData.flightsSpec.originCountryTicketPricesTitle', {
|
||||
defaultMessage: '[Flights] Origin Country Ticket Prices',
|
||||
|
@ -276,6 +289,7 @@ export const getSavedObjects = () => [
|
|||
"type": "visualization",
|
||||
"updated_at": "2018-05-09T15:49:03.736Z",
|
||||
"version": 1,
|
||||
"migrationVersion": {},
|
||||
"attributes": {
|
||||
"title": i18n.translate('server.sampleData.flightsSpec.totalFlightDelaysTitle', {
|
||||
defaultMessage: '[Flights] Total Flight Delays',
|
||||
|
@ -294,6 +308,7 @@ export const getSavedObjects = () => [
|
|||
"type": "visualization",
|
||||
"updated_at": "2018-05-09T15:49:03.736Z",
|
||||
"version": 1,
|
||||
"migrationVersion": {},
|
||||
"attributes": {
|
||||
"title": i18n.translate('server.sampleData.flightsSpec.totalFlightCancellationsTitle', {
|
||||
defaultMessage: '[Flights] Total Flight Cancellations',
|
||||
|
@ -312,6 +327,7 @@ export const getSavedObjects = () => [
|
|||
"type": "visualization",
|
||||
"updated_at": "2018-05-09T15:49:03.736Z",
|
||||
"version": 1,
|
||||
"migrationVersion": {},
|
||||
"attributes": {
|
||||
"title": i18n.translate('server.sampleData.flightsSpec.originCountryTitle', {
|
||||
defaultMessage: '[Flights] Origin Country vs. Destination Country',
|
||||
|
@ -330,6 +346,7 @@ export const getSavedObjects = () => [
|
|||
"type": "visualization",
|
||||
"updated_at": "2018-05-09T15:49:03.736Z",
|
||||
"version": 1,
|
||||
"migrationVersion": {},
|
||||
"attributes": {
|
||||
"title": i18n.translate('server.sampleData.flightsSpec.totalFlightsTitle', {
|
||||
defaultMessage: '[Flights] Total Flights',
|
||||
|
@ -348,6 +365,7 @@ export const getSavedObjects = () => [
|
|||
"type": "visualization",
|
||||
"updated_at": "2018-05-09T15:49:03.736Z",
|
||||
"version": 1,
|
||||
"migrationVersion": {},
|
||||
"attributes": {
|
||||
"title": i18n.translate('server.sampleData.flightsSpec.averageTicketPriceTitle', {
|
||||
defaultMessage: '[Flights] Average Ticket Price',
|
||||
|
@ -366,6 +384,7 @@ export const getSavedObjects = () => [
|
|||
"type": "visualization",
|
||||
"updated_at": "2018-05-09T15:55:51.195Z",
|
||||
"version": 3,
|
||||
"migrationVersion": {},
|
||||
"attributes": {
|
||||
"title": i18n.translate('server.sampleData.flightsSpec.airportConnectionsTitle', {
|
||||
defaultMessage: '[Flights] Airport Connections (Hover Over Airport)',
|
||||
|
@ -384,6 +403,7 @@ export const getSavedObjects = () => [
|
|||
"type": "index-pattern",
|
||||
"updated_at": "2018-05-09T15:49:03.736Z",
|
||||
"version": 1,
|
||||
"migrationVersion": {},
|
||||
"attributes": {
|
||||
"title": "kibana_sample_data_flights",
|
||||
"timeFieldName": "timestamp",
|
||||
|
@ -396,6 +416,7 @@ export const getSavedObjects = () => [
|
|||
"type": "dashboard",
|
||||
"updated_at": "2018-05-09T15:59:04.578Z",
|
||||
"version": 4,
|
||||
"migrationVersion": {},
|
||||
"attributes": {
|
||||
"title": i18n.translate('server.sampleData.flightsSpec.globalFlightDashboardTitle', {
|
||||
defaultMessage: '[Flights] Global Flight Dashboard',
|
||||
|
|
|
@ -28,6 +28,7 @@ export const getSavedObjects = () => [
|
|||
"type": "visualization",
|
||||
"updated_at": "2018-08-29T13:22:17.617Z",
|
||||
"version": 1,
|
||||
"migrationVersion": {},
|
||||
"attributes": {
|
||||
"title": i18n.translate('server.sampleData.logsSpec.uniqueVisitorsTitle', {
|
||||
defaultMessage: '[Logs] Unique Visitors vs. Average Bytes',
|
||||
|
@ -46,6 +47,7 @@ export const getSavedObjects = () => [
|
|||
"type": "visualization",
|
||||
"updated_at": "2018-08-29T13:22:17.617Z",
|
||||
"version": 1,
|
||||
"migrationVersion": {},
|
||||
"attributes": {
|
||||
"title": i18n.translate('server.sampleData.logsSpec.uniqueVisitorsByCountryTitle', {
|
||||
defaultMessage: '[Logs] Unique Visitors by Country',
|
||||
|
@ -64,6 +66,7 @@ export const getSavedObjects = () => [
|
|||
"type": "visualization",
|
||||
"updated_at": "2018-08-29T13:22:17.617Z",
|
||||
"version": 1,
|
||||
"migrationVersion": {},
|
||||
"attributes": {
|
||||
"title": i18n.translate('server.sampleData.logsSpec.heatmapTitle', {
|
||||
defaultMessage: '[Logs] Heatmap',
|
||||
|
@ -82,6 +85,7 @@ export const getSavedObjects = () => [
|
|||
"type": "visualization",
|
||||
"updated_at": "2018-08-29T13:23:20.897Z",
|
||||
"version": 2,
|
||||
"migrationVersion": {},
|
||||
"attributes": {
|
||||
"title": i18n.translate('server.sampleData.logsSpec.hostVisitsBytesTableTitle', {
|
||||
defaultMessage: '[Logs] Host, Visits and Bytes Table',
|
||||
|
@ -100,6 +104,7 @@ export const getSavedObjects = () => [
|
|||
"type": "visualization",
|
||||
"updated_at": "2018-08-29T13:24:46.136Z",
|
||||
"version": 2,
|
||||
"migrationVersion": {},
|
||||
"attributes": {
|
||||
"title": i18n.translate('server.sampleData.logsSpec.goalsTitle', {
|
||||
defaultMessage: '[Logs] Goals',
|
||||
|
@ -118,6 +123,7 @@ export const getSavedObjects = () => [
|
|||
"type": "visualization",
|
||||
"updated_at": "2018-08-29T13:22:17.617Z",
|
||||
"version": 1,
|
||||
"migrationVersion": {},
|
||||
"attributes": {
|
||||
"title": i18n.translate('server.sampleData.logsSpec.fileTypeScatterPlotTitle', {
|
||||
defaultMessage: '[Logs] File Type Scatter Plot',
|
||||
|
@ -136,6 +142,7 @@ export const getSavedObjects = () => [
|
|||
"type": "visualization",
|
||||
"updated_at": "2018-08-29T13:22:17.617Z",
|
||||
"version": 1,
|
||||
"migrationVersion": {},
|
||||
"attributes": {
|
||||
"title": i18n.translate('server.sampleData.logsSpec.sourceAndDestinationSankeyChartTitle', {
|
||||
defaultMessage: '[Logs] Source and Destination Sankey Chart',
|
||||
|
@ -154,6 +161,7 @@ export const getSavedObjects = () => [
|
|||
"type": "visualization",
|
||||
"updated_at": "2018-08-29T13:22:17.617Z",
|
||||
"version": 1,
|
||||
"migrationVersion": {},
|
||||
"attributes": {
|
||||
"title": i18n.translate('server.sampleData.logsSpec.responseCodesOverTimeTitle', {
|
||||
defaultMessage: '[Logs] Response Codes Over Time + Annotations',
|
||||
|
@ -172,6 +180,7 @@ export const getSavedObjects = () => [
|
|||
"type": "visualization",
|
||||
"updated_at": "2018-08-29T13:22:17.617Z",
|
||||
"version": 1,
|
||||
"migrationVersion": {},
|
||||
"attributes": {
|
||||
"title": i18n.translate('server.sampleData.logsSpec.inputControlsTitle', {
|
||||
defaultMessage: '[Logs] Input Controls',
|
||||
|
@ -190,6 +199,7 @@ export const getSavedObjects = () => [
|
|||
"type": "visualization",
|
||||
"updated_at": "2018-08-29T13:22:17.617Z",
|
||||
"version": 1,
|
||||
"migrationVersion": {},
|
||||
"attributes": {
|
||||
"title": i18n.translate('server.sampleData.logsSpec.articleTagsTitle', {
|
||||
defaultMessage: '[Logs] Article Tags',
|
||||
|
@ -208,6 +218,7 @@ export const getSavedObjects = () => [
|
|||
"type": "visualization",
|
||||
"updated_at": "2018-08-29T13:22:17.617Z",
|
||||
"version": 1,
|
||||
"migrationVersion": {},
|
||||
"attributes": {
|
||||
"title": i18n.translate('server.sampleData.logsSpec.markdownInstructionsTitle', {
|
||||
defaultMessage: '[Logs] Markdown Instructions',
|
||||
|
@ -226,6 +237,7 @@ export const getSavedObjects = () => [
|
|||
"type": "index-pattern",
|
||||
"updated_at": "2018-08-29T13:22:17.617Z",
|
||||
"version": 1,
|
||||
"migrationVersion": {},
|
||||
"attributes": {
|
||||
"title": "kibana_sample_data_logs",
|
||||
"timeFieldName": "timestamp",
|
||||
|
@ -238,6 +250,7 @@ export const getSavedObjects = () => [
|
|||
"type": "dashboard",
|
||||
"updated_at": "2018-08-29T13:26:13.463Z",
|
||||
"version": 3,
|
||||
"migrationVersion": {},
|
||||
"attributes": {
|
||||
"title": i18n.translate('server.sampleData.logsSpec.webTrafficTitle', {
|
||||
defaultMessage: '[Logs] Web Traffic',
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
"type": "canvas-workpad",
|
||||
"updated_at": "2018-10-22T15:19:02.081Z",
|
||||
"version": 1,
|
||||
"migrationVersion": {},
|
||||
"attributes": {
|
||||
"name": "[eCommerce] Revenue Tracking",
|
||||
"id": "workpad-e08b9bdb-ec14-4339-94c4-063bddfd610e",
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
"type": "canvas-workpad",
|
||||
"updated_at": "2018-10-22T14:17:04.040Z",
|
||||
"version": 1,
|
||||
"migrationVersion": {},
|
||||
"attributes": {
|
||||
"name": "[Flights] Overview",
|
||||
"id": "workpad-a474e74b-aedc-47c3-894a-db77e62c41e0",
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
"type": "canvas-workpad",
|
||||
"updated_at": "2018-10-22T12:41:57.071Z",
|
||||
"version": 1,
|
||||
"migrationVersion": {},
|
||||
"attributes": {
|
||||
"name": "[Logs] Web Traffic",
|
||||
"id": "workpad-5563cc40-5760-4afe-bf33-9da72fac53b7",
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
"type": "gis-map",
|
||||
"updated_at" : "2018-12-19T14:56:22.769Z",
|
||||
"version": 1,
|
||||
"migrationVersion": {},
|
||||
"attributes" : {
|
||||
"title" : "[Logs] Web Traffic",
|
||||
"description" : "",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue