Skip to content

feat: cache shouldMigrate result #5074

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 2 commits into from
Oct 15, 2019
Merged

Conversation

KristianDD
Copy link
Contributor

@KristianDD KristianDD commented Oct 14, 2019

PR Checklist

What is the current behavior?

What is the new behavior?

Fixes/Implements/Closes #[Issue Number].

Rel to #5096

@cla-bot cla-bot bot added the cla: yes label Oct 14, 2019
private async getCachedShouldMigrate(projectDir: string, platform: string): Promise<boolean> {
let cachedShouldMigrateValue = null;

const cashedHash = await this.$jsonFileSettingsService.getSettingValue(getHash(`${projectDir}${platform.toLowerCase()}`));
Copy link
Contributor

Choose a reason for hiding this comment

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

cashedHash -> cachedHash

let cachedShouldMigrateValue = null;

const cashedHash = await this.$jsonFileSettingsService.getSettingValue(getHash(`${projectDir}${platform.toLowerCase()}`));
const packageJsonShasum = await this.getPachageJsonHash(projectDir);
Copy link
Contributor

Choose a reason for hiding this comment

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

packageJsonShasum -> packageJsonHash

@KristianDD
Copy link
Contributor Author

test cli-smoke

@KristianDD KristianDD merged commit 3627814 into master Oct 15, 2019
@KristianDD KristianDD deleted the kddimitrov/cache-should-migrate branch October 15, 2019 06:59
@Fatme Fatme added this to the 6.2.0 milestone Nov 1, 2019
@Fatme Fatme added the feature label Nov 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants