Skip to content

[8.8] [SOR] validation schema: use previous version (#156665)#156958

Merged
kibanamachine merged 1 commit intoelastic:8.8from
kibanamachine:backport/8.8/pr-156665
May 8, 2023
Merged

[8.8] [SOR] validation schema: use previous version (#156665)#156958
kibanamachine merged 1 commit intoelastic:8.8from
kibanamachine:backport/8.8/pr-156665

Conversation

@kibanamachine
Copy link
Copy Markdown
Contributor

Backport

This will backport the following commits from main to 8.8:

Questions ?

Please refer to the Backport tool documentation

## Summary

Fix elastic#156423

We were only using the schema for validation if its version was an
*exact* match with the current stack version, meaning that any previous
schema was ignored (and even introducing a minor was causing the schema
to be ignored).

This PR addresses it, by always using the closest previous schema
available.

---------

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 0a0d822)
@kibanamachine kibanamachine added the backport This PR is a backport of another PR label May 8, 2023
@kibanamachine kibanamachine enabled auto-merge (squash) May 8, 2023 07:54
@kibana-ci
Copy link
Copy Markdown

💚 Build Succeeded

Metrics [docs]

Unknown metric groups

ESLint disabled line counts

id before after diff
enterpriseSearch 17 19 +2
securitySolution 399 402 +3
total +5

Total ESLint disabled count

id before after diff
enterpriseSearch 18 20 +2
securitySolution 479 482 +3
total +5

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @pgayvallet

@kibanamachine kibanamachine merged commit 8da9d0f into elastic:8.8 May 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants