From b2dc9534556412ae139684757aa7d3027377c03b Mon Sep 17 00:00:00 2001 From: Pavel Tiunov Date: Wed, 24 Apr 2019 18:47:38 +0300 Subject: [PATCH] Propagate server core version for correct error handling --- packages/cubejs-playground/src/App.js | 4 +++- packages/cubejs-server-core/core/DevServer.js | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/cubejs-playground/src/App.js b/packages/cubejs-playground/src/App.js index a6ea089c2fc6a..8dddd12ca1436 100755 --- a/packages/cubejs-playground/src/App.js +++ b/packages/cubejs-playground/src/App.js @@ -47,7 +47,9 @@ class App extends Component { const res = await fetch('/playground/context'); const result = await res.json(); if (window.analytics) { - window.analytics.identify(result.anonymousId); + window.analytics.identify(result.anonymousId, { + coreServerVersion: result.coreServerVersion + }); } } diff --git a/packages/cubejs-server-core/core/DevServer.js b/packages/cubejs-server-core/core/DevServer.js index ad859b0354621..9f2537be63852 100644 --- a/packages/cubejs-server-core/core/DevServer.js +++ b/packages/cubejs-server-core/core/DevServer.js @@ -50,7 +50,8 @@ class DevServer { res.json({ cubejsToken: jwt.sign({}, this.cubejsServer.apiSecret, { expiresIn: '1d' }), apiUrl: process.env.CUBEJS_API_URL, - anonymousId: this.cubejsServer.anonymousId + anonymousId: this.cubejsServer.anonymousId, + coreServerVersion: this.cubejsServer.coreServerVersion }); }));