Skip to content
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

fix heroku reprompting for app name when not found #13039

Merged
merged 1 commit into from
Nov 16, 2020

Conversation

ruddell
Copy link
Member

@ruddell ruddell commented Nov 13, 2020

When a Heroku app is not found, the user is prompted to re-run jhipster heroku to create a new deployment. To enable regenerating the Heroku deployment, the herokuAppName config is set to null.

The config is later saved with the value of this.herokuAppName in the saveConfig step, rather than null.

This commit fixes the behavior. Now, when an app is not found, re-running jhipster heroku prompts you to create a new deployment. It also skips other steps when finding the app fails (such as editing the pom.xml).

Related to this StackOverflow question

the config was set null, but then overwritten later on with this.herokuAppName
this commit fixes the behavior.  it also skips other steps when finding the app fails
Copy link
Member

@mshima mshima left a comment

Choose a reason for hiding this comment

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

An alternative for those abort conditions, is to use cancelCancellableTasks().
Like:

this.cancelCancellableTasks();

Current PR seems to fix the problem.

@ruddell ruddell merged commit 291b607 into jhipster:main Nov 16, 2020
@ruddell ruddell deleted the fix-heroku-reprompt branch November 16, 2020 17:53
@ruddell
Copy link
Member Author

ruddell commented Nov 16, 2020

Will create a new PR for cancelCancellableTasks everywhere

@pascalgrimaud pascalgrimaud added this to the 7.0.0-beta.0 milestone Dec 18, 2020
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.

None yet

4 participants