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(prepare): allow shouldPrepare callback to run during --dry-run #947

Merged

Conversation

incredimike
Copy link
Contributor

shouldPrepare should probably run during dry-run.

However, I'm slightly worried about the existing implementations that might assume --dry-run continues to skip the function, especially if those functions make modifications to data/files beyond returning a boolean. Hopefully no one is doing this in practice?

@Haroenv Haroenv requested a review from eunjae-lee March 9, 2021 08:56
@eunjae-lee eunjae-lee changed the title Allow shouldPrepare callback to run during --dry-run fix(prepare): allow shouldPrepare callback to run during --dry-run Mar 9, 2021
Copy link
Contributor

@eunjae-lee eunjae-lee left a comment

Choose a reason for hiding this comment

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

This looks good to me and it should be fine about your concern :)

@eunjae-lee eunjae-lee merged commit 8602ba0 into algolia:main Mar 9, 2021
@incredimike incredimike deleted the execute-shouldPrepare-during-dry-run branch March 9, 2021 16:52
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

2 participants