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

refactor: rename modules project config entry to scan #4036

Merged
merged 6 commits into from
Apr 4, 2023

Conversation

vvagaytsev
Copy link
Collaborator

@vvagaytsev vvagaytsev commented Apr 3, 2023

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #3512

Special notes for your reviewer:

@vvagaytsev vvagaytsev force-pushed the 0.13-rename-modules-to-scan branch from b6941a7 to 1f94a78 Compare April 3, 2023 13:30
@vvagaytsev vvagaytsev force-pushed the 0.13-rename-modules-to-scan branch 2 times, most recently from 7e2c88a to 6c3835b Compare April 3, 2023 15:01
/**
* Deprecated. Use {@link #scan} instead.
* @deprecated remove in 0.14
*/
modules?: {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we should just remove this from the internal interface.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Removed it in 905f8ac

@vvagaytsev vvagaytsev force-pushed the 0.13-rename-modules-to-scan branch from 6c3835b to 905f8ac Compare April 4, 2023 08:47
@vvagaytsev vvagaytsev requested a review from edvald April 4, 2023 08:54
@vvagaytsev vvagaytsev marked this pull request as ready for review April 4, 2023 08:54
}

if (projectSpec["modules"].include) {
const oldSyntaxInclusions = projectSpec["modules"].include || []
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why not simply use the rename option in the joi schema? You can catch and emit the usage of the old field before validating.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

That was my initial plan. Should we deny using both fields simultaneously?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Simplified this in 2966c7f

Use field renaming on the joi schema level.
@vvagaytsev vvagaytsev requested a review from edvald April 4, 2023 09:30
@vvagaytsev vvagaytsev merged commit 56ba5ec into 0.13 Apr 4, 2023
@vvagaytsev vvagaytsev deleted the 0.13-rename-modules-to-scan branch April 4, 2023 10:40
This was referenced May 11, 2023
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