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

feat(importer): prepare for selective strict mode enablement (staging) #2837

Merged

Conversation

andrewpollock
Copy link
Contributor

This commit explicitly sets strict mode on a per-repository basis. This change is a no-op until the importer's --strict_validation flag is also set to True, which will still then be a no-op for all sources other than cve-osv where we can trial having it enabled.

Part of #2188

This commit explicitly sets strict mode on a per-repository basis. This
change is a no-op until the importer's `--strict_validation` flag is
also set to True, and it will then be a no-op for all sources other than
the `cve-osv` one where we can trial having it enabled.

Part of google#2188
Copy link
Contributor

@hogo6002 hogo6002 left a comment

Choose a reason for hiding this comment

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

Why not set the default value of strict_validation to False when it's not defined in the source, and only enable it when explicitly set to True?

@andrewpollock
Copy link
Contributor Author

Why not set the default value of strict_validation to False when it's not defined in the source, and only enable it when explicitly set to True?

I'm opting to make things very explicit to avoid any nasty surprises, especially when the flag flip for the importer happens.

@andrewpollock andrewpollock merged commit d58c1f6 into google:master Nov 8, 2024
11 checks passed
andrewpollock added a commit to andrewpollock/osv.dev that referenced this pull request Nov 8, 2024
This only impacts sources that have `strict_validation` enabled for
them, such as in google#2837

Part of google#2188
andrewpollock added a commit that referenced this pull request Nov 13, 2024
This only impacts sources that have `strict_validation` enabled for
them, such as in #2837

Part of #2188
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.

3 participants