Skip to content

Enable validation based on mappings by default #2410

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 5 commits into from
Feb 17, 2025

Conversation

mrodm
Copy link
Contributor

@mrodm mrodm commented Feb 14, 2025

This PR enables the validation based on mappings by default.

This validation will be run along with the validation based on fields. The latter is the validation performed until now.

Additionally, CI steps related to test packages adding the validation based on mappings have been deleted, since now all the packages should be tested with both (validated based on fields and mappings).

@mrodm mrodm self-assigned this Feb 14, 2025
@mrodm mrodm force-pushed the enable_validation_mappings_default branch from 9ace2a4 to cd24f7f Compare February 14, 2025 13:13
@@ -1646,7 +1646,7 @@ func (r *tester) validateTestScenario(ctx context.Context, result *testrunner.Re
}

if r.fieldValidationMethod == mappingsMethod {
logger.Warn("Validation based on mappings enabled (technical preview)")
logger.Debug("Performing validation based on mappings")
Copy link
Contributor Author

@mrodm mrodm Feb 14, 2025

Choose a reason for hiding this comment

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

Took the advantage of removing the technical preview status, since it is going to be enabled by default.

I thought that maybe this message could help to identify if the validation based on mappings has been executed or not. WDYT ?

@mrodm mrodm marked this pull request as ready for review February 14, 2025 17:17
@mrodm mrodm requested a review from a team as a code owner February 14, 2025 17:17
@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

History

cc @mrodm

@mrodm mrodm merged commit 9c411b3 into elastic:main Feb 17, 2025
3 checks passed
@mrodm mrodm deleted the enable_validation_mappings_default branch February 17, 2025 10:59
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