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

Render the correct form when edit extraction rules #151304

Merged
merged 7 commits into from
Feb 16, 2023

Conversation

vidok
Copy link
Contributor

@vidok vidok commented Feb 15, 2023

Closes https://github.com/elastic/enterprise-search-team/issues/3934

Summary

The wrong form (create instead of edit) is rendered when I try to modify an extraction rule.

@vidok vidok marked this pull request as ready for review February 15, 2023 14:06
@vidok vidok requested a review from a team as a code owner February 15, 2023 14:07
@vidok vidok added the release_note:skip Skip the PR/issue when compiling release notes label Feb 15, 2023
@efegurkan
Copy link
Member

It doesn't fix the issue completely I believe.
Without refreshing page on an empty crawler configuration.
1- Add a new rule and a field rule
2- Without refresh or navigating page, edit the same rule.
3- Without refresh or navigating page, add another rule.

I managed to get 4 extraction rules that have same name and different field configurations this way.

@vidok vidok marked this pull request as draft February 15, 2023 16:58
@vidok vidok force-pushed the dmitrii/3995-render-edit-form branch from 5841636 to a21f8cb Compare February 16, 2023 12:20
@vidok vidok marked this pull request as ready for review February 16, 2023 12:23
Copy link
Member

@efegurkan efegurkan left a comment

Choose a reason for hiding this comment

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

Looks fine to me. One nitpick

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Async chunks

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

id before after diff
enterpriseSearch 2.1MB 2.1MB +98.0B

History

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

@vidok vidok merged commit 1bba627 into main Feb 16, 2023
@vidok vidok deleted the dmitrii/3995-render-edit-form branch February 16, 2023 16:11
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Feb 16, 2023
Adjust Kea's reducers to render correct HTML forms

(cherry picked from commit 1bba627)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.7

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Feb 16, 2023
…151480)

# Backport

This will backport the following commits from `main` to `8.7`:
- [Render the correct form when edit extraction rules
(#151304)](#151304)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Dmitriy
Burlutskiy","email":"dmitrii.burlutckii@elastic.co"},"sourceCommit":{"committedDate":"2023-02-16T16:11:01Z","message":"Render
the correct form when edit extraction rules (#151304)\n\nAdjust Kea's
reducers to render correct HTML
forms","sha":"1bba627926d944456da2a5189242162eb2a7ec59","branchLabelMapping":{"^v8.8.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v8.7.0","v8.8.0"],"number":151304,"url":"#151304
the correct form when edit extraction rules (#151304)\n\nAdjust Kea's
reducers to render correct HTML
forms","sha":"1bba627926d944456da2a5189242162eb2a7ec59"}},"sourceBranch":"main","suggestedTargetBranches":["8.7"],"targetPullRequestStates":[{"branch":"8.7","label":"v8.7.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.8.0","labelRegex":"^v8.8.0$","isSourceBranch":true,"state":"MERGED","url":"#151304
the correct form when edit extraction rules (#151304)\n\nAdjust Kea's
reducers to render correct HTML
forms","sha":"1bba627926d944456da2a5189242162eb2a7ec59"}}]}] BACKPORT-->

Co-authored-by: Dmitriy Burlutskiy <dmitrii.burlutckii@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release_note:skip Skip the PR/issue when compiling release notes v8.7.0 v8.8.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants