Skip to content

CYP-442 sync cli part 1 #70

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Oct 15, 2020
Merged

CYP-442 sync cli part 1 #70

merged 8 commits into from
Oct 15, 2020

Conversation

nagpalkaran95
Copy link
Collaborator

No description provided.

@@ -58,7 +58,7 @@ module.exports = function run(args) {
// Create build
return build.createBuild(bsConfig, zip).then(function (data) {
let message = `${data.message}! ${Constants.userMessages.BUILD_CREATED} with build id: ${data.build_id}`;
let dashboardLink = `${Constants.userMessages.VISIT_DASHBOARD} ${config.dashboardUrl}${data.build_id}`;
let dashboardLink = `${Constants.userMessages.VISIT_DASHBOARD} ${data.dashboard_url}`;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice. Is the data.dashboard_url the complete URL? 🤩

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes

printSpecsStatus();
}).then((data) => {
exports.pollBuildStatus = (bsConfig, buildDetails) => {
logBuildDetails(bsConfig, buildDetails);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a reason we cannot use promise based calls here? printSpecsStatus in next call would require bsConfig and buildId for polling. I guess that can be taken from buildDetails then?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need promise call here as

  1. There are no async calls
  2. The end is always resolve and never a reject

@nagpalkaran95 nagpalkaran95 merged commit e616c67 into sync-cli Oct 15, 2020
@nagpalkaran95 nagpalkaran95 deleted the CYP_442_sync_cli_part_1 branch October 15, 2020 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants