Skip to content

Commit

Permalink
[8.12] [Enterprise Search] Fix polling causing a rewrite on form (#17…
Browse files Browse the repository at this point in the history
…3621) (#173634)

# Backport

This will backport the following commits from `main` to `8.12`:
- [[Enterprise Search] Fix polling causing a rewrite on form
(#173621)](#173621)

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

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

<!--BACKPORT [{"author":{"name":"Efe Gürkan
YALAMAN","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-12-19T14:13:30Z","message":"[Enterprise
Search] Fix polling causing a rewrite on form (#173621)\n\n##
Summary\r\n\r\nThis fixes polling rewriting user input when
configuration is
changed.","sha":"59cb36efe37e2c9e88eb922db7e9126d340da943","branchLabelMapping":{"^v8.13.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:skip","Team:EnterpriseSearch","v8.12.0","v8.13.0"],"number":173621,"url":"https://github.com/elastic/kibana/pull/173621","mergeCommit":{"message":"[Enterprise
Search] Fix polling causing a rewrite on form (#173621)\n\n##
Summary\r\n\r\nThis fixes polling rewriting user input when
configuration is
changed.","sha":"59cb36efe37e2c9e88eb922db7e9126d340da943"}},"sourceBranch":"main","suggestedTargetBranches":["8.12"],"targetPullRequestStates":[{"branch":"8.12","label":"v8.12.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.13.0","labelRegex":"^v8.13.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/173621","number":173621,"mergeCommit":{"message":"[Enterprise
Search] Fix polling causing a rewrite on form (#173621)\n\n##
Summary\r\n\r\nThis fixes polling rewriting user input when
configuration is
changed.","sha":"59cb36efe37e2c9e88eb922db7e9126d340da943"}}]}]
BACKPORT-->

Co-authored-by: Efe Gürkan YALAMAN <[email protected]>
  • Loading branch information
kibanamachine and efegurkan authored Dec 25, 2023
1 parent d7417f9 commit c2fda47
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,12 @@ export const ConnectorConfigurationForm: React.FC<ConnectorConfigurationForm> =
);

useEffect(() => {
setConfigView(sortAndFilterConnectorConfiguration(localConfig, isNative));
}, [localConfig, isNative]);
setLocalConfig((localConf) => ({ ...configuration, ...localConf }));
}, [configuration]);

useEffect(() => {
setLocalConfig(configuration);
}, [configuration]);
setConfigView(sortAndFilterConnectorConfiguration(localConfig, isNative));
}, [localConfig, isNative]);

return (
<EuiForm
Expand Down

0 comments on commit c2fda47

Please sign in to comment.