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

[ML] Transforms: Fixes max page search size limit #159052

Merged
merged 6 commits into from
Jun 7, 2023

Conversation

qn895
Copy link
Member

@qn895 qn895 commented Jun 5, 2023

Summary

This PR fixes #157975, and updates the max value for max_page_search_size to be 65536.

It also tweaks a previous behavior with the text input which turns values into NaN when typing restricted values.

Before:
https://github.com/elastic/kibana/assets/43350163/4141b73d-0a59-413b-972e-78d80c8194dc

After:

Screen.Recording.2023-06-05.at.13.27.09.mov

Checklist

Delete any items that are not applicable to this PR.

Risk Matrix

Delete this section if it is not applicable to this PR.

Before closing this PR, invite QA, stakeholders, and other developers to identify risks that should be tested prior to the change/feature release.

When forming the risk matrix, consider some of the following examples and how they may potentially impact the change:

Risk Probability Severity Mitigation/Notes
Multiple Spaces—unexpected behavior in non-default Kibana Space. Low High Integration tests will verify that all features are still supported in non-default Kibana Space and when user switches between spaces.
Multiple nodes—Elasticsearch polling might have race conditions when multiple Kibana nodes are polling for the same tasks. High Low Tasks are idempotent, so executing them multiple times will not result in logical error, but will degrade performance. To test for this case we add plenty of unit tests around this logic and document manual testing procedure.
Code should gracefully handle cases when feature X or plugin Y are disabled. Medium High Unit tests will verify that any feature flag or plugin combination still results in our service operational.
See more potential risk examples

For maintainers

@qn895 qn895 self-assigned this Jun 5, 2023
@qn895 qn895 marked this pull request as ready for review June 5, 2023 19:53
@qn895 qn895 requested a review from a team as a code owner June 5, 2023 19:53
@elasticmachine
Copy link
Contributor

Pinging @elastic/ml-ui (:ml)

@peteharverson peteharverson changed the title [Transform] Fix max page search size limit [ML] Transforms: Fix max page search size limit Jun 6, 2023
@peteharverson peteharverson changed the title [ML] Transforms: Fix max page search size limit [ML] Transforms: Fixes max page search size limit Jun 6, 2023
Copy link
Contributor

@peteharverson peteharverson left a comment

Choose a reason for hiding this comment

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

Tested and LGTM

Comment on lines 81 to 97
// The reducers and utility functions in this file provide the following features:
// - getDefaultState()
// Sets up the initial form state. It supports overrides to apply a pre-existing configuration.
// The implementation of this function is the only one that's specifically required to define
// the features of the transform edit form. All other functions are generic and could be reused
// in the future for other forms.
//
// - formReducerFactory() / formFieldReducer()
// These nested reducers take care of updating and validating the form state.
//
// - applyFormStateToTransformConfig() (iterates over getUpdateValue())
// Once a user hits the update button, these functions take care of extracting the information
// necessary to create the update request. They take into account whether a field needs to
// be included at all in the request (for example, if it hadn't been changed).
// The code is also able to identify relationships/dependencies between form fields.
// For example, if the `pipeline` field was changed, it's necessary to make the `index`
// field part of the request, otherwise the update would fail.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggest to leave this comment section as is in this file because it's about the whole file and not just the moved validator.

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated here 7136145 (#159052)

Copy link
Contributor

@walterra walterra left a comment

Choose a reason for hiding this comment

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

Latest changes LGTM!

@qn895
Copy link
Member Author

qn895 commented Jun 7, 2023

@elasticmachine merge upstream

@qn895 qn895 enabled auto-merge (squash) June 7, 2023 14:23
@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
transform 356 357 +1

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
transform 403.1KB 403.5KB +416.0B
Unknown metric groups

ESLint disabled line counts

id before after diff
enterpriseSearch 19 21 +2
securitySolution 413 417 +4
total +6

Total ESLint disabled count

id before after diff
enterpriseSearch 20 22 +2
securitySolution 497 501 +4
total +6

History

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

cc @qn895

@qn895 qn895 merged commit 87dc7ae into elastic:main Jun 7, 2023
17 checks passed
@kibanamachine kibanamachine added the backport:skip This commit does not require backporting label Jun 7, 2023
@qn895 qn895 added the v8.8.1 label Jun 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting Feature:Transforms ML transforms :ml release_note:fix v8.9.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ML] Transforms: Update still suggest 10 000 as max_page_size_search
6 participants