Skip to content

Commit

Permalink
feat: Introduce Schema generation UI in Playground
Browse files Browse the repository at this point in the history
  • Loading branch information
paveltiunov committed Mar 17, 2019
1 parent e95e6fe commit 349c7d0
Show file tree
Hide file tree
Showing 21 changed files with 4,146 additions and 1,323 deletions.
7 changes: 1 addition & 6 deletions packages/cubejs-cli/cubejsCli.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,14 +179,9 @@ const createApp = async (projectName, options) => {
logStage(`${chalk.green(projectName)} app has been created 🎉`);

console.log();
console.log(`📊 Next steps:`);
console.log(`1. Generate schema:`);
console.log(`📊 Next step: run dev server`);
console.log();
console.log(` $ cd ${projectName}`);
console.log(` $ cubejs generate -t orders,customers`);
console.log();
console.log(`2. Run dev server:`);
console.log();
console.log(` $ npm run dev`);
console.log();
};
Expand Down
12 changes: 9 additions & 3 deletions packages/cubejs-client-core/dist/cubejs-client-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -426,13 +426,19 @@ function () {
cube = _memberName$split2[0];

if (!this.cubesMap[cube]) {
throw new Error("Cube not found ".concat(cube, " for path '").concat(memberName, "'"));
return {
title: memberName,
error: "Cube not found ".concat(cube, " for path '").concat(memberName, "'")
};
}

var member = this.cubesMap[cube][memberType][memberName];

if (!member) {
throw new Error("Path not found '".concat(memberName, "'"));
return {
title: memberName,
error: "Path not found '".concat(memberName, "'")
};
}

return member;
Expand Down Expand Up @@ -587,7 +593,7 @@ function () {
return _context.stop();
}
}
}, _callee, this);
}, _callee);
}));

return function loadImpl() {
Expand Down

0 comments on commit 349c7d0

Please sign in to comment.