Skip to content

Commit

Permalink
[8.7] Render the correct form when edit extraction rules (elastic#151304
Browse files Browse the repository at this point in the history
) (elastic#151480)

# Backport

This will backport the following commits from `main` to `8.7`:
- [Render the correct form when edit extraction rules
(elastic#151304)](elastic#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 (elastic#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":"elastic#151304
the correct form when edit extraction rules (elastic#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":"elastic#151304
the correct form when edit extraction rules (elastic#151304)\n\nAdjust Kea's
reducers to render correct HTML
forms","sha":"1bba627926d944456da2a5189242162eb2a7ec59"}}]}] BACKPORT-->

Co-authored-by: Dmitriy Burlutskiy <dmitrii.burlutckii@elastic.co>
  • Loading branch information
kibanamachine and vidok committed Feb 16, 2023
1 parent bdfa747 commit b85b7ab
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -250,13 +250,16 @@ export const ExtractionRulesLogic = kea<
cancelEditExtractionRule: () => null,
editExtractionRule: (_, { extractionRule }) => extractionRule,
updateSuccess: () => null,
updateExtractionRuleSuccess: () => null,
},
],
extractionRuleToEditIsNew: [
false,
{
addSuccess: () => false,
editNewExtractionRule: () => true,
editExtractionRule: () => false,
updateExtractionRuleSuccess: () => false,
},
],
fieldRuleFlyoutVisible: [
Expand Down

0 comments on commit b85b7ab

Please sign in to comment.