[Defend Workflows]Changes to policy settings are not persistent until a refresh#164403
Merged
szwarckonrad merged 3 commits intoelastic:mainfrom Aug 23, 2023
Merged
Conversation
💚 Build Succeeded
Metrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: |
Contributor
|
Pinging @elastic/security-defend-workflows (Team:Defend Workflows) |
joeypoon
approved these changes
Aug 22, 2023
dasansol92
approved these changes
Aug 23, 2023
Contributor
dasansol92
left a comment
There was a problem hiding this comment.
LGTM, thanks for fixing this!
Could you add a screenshot with the issue fixed?
Contributor
Author
|
Recording of the issue fixed is attached to this PR and "before" recording is to be found in the ticket that this PR closes ;) |
kibanamachine
pushed a commit
to kibanamachine/kibana
that referenced
this pull request
Aug 23, 2023
… a refresh (elastic#164403) Closes elastic/security-team#7386 Dispatch an action that will update the stored policy upon successful saving of Policy Settings. This should occur only when no 'routeState' is being set, as in such a scenario, a page change triggers a refetch on its own. Even though redux was removed from Policy Settings in elastic#161511 , the policy object that feeds the view is being fetched as a result of onUrlChange action and stored in the redux store. This should be addressed in the future. https://github.com/elastic/kibana/assets/29123534/cf008d0e-804a-49f9-a2f7-9bb7d1162b28 (cherry picked from commit 5eca861)
Contributor
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
jloleysens
added a commit
to jloleysens/kibana
that referenced
this pull request
Aug 23, 2023
* main: (150 commits) Fixes unnecessary autocompletes on HTTP methods (elastic#163233) [Defend Workflows] Convert filterQuery to kql (elastic#161806) [Fleet] copy `inactivity_timeout` when duplicating agent policy (elastic#164544) Fix 7.17 forward compatibility with 8.2+ (elastic#164274) [ML] Fixes dark mode in flyouts and modals (elastic#164399) [Defend Workflows]Changes to policy settings are not persistent until a refresh (elastic#164403) [Security Solution][Endpoint] Fixes kibana crash when going back to policy details page (elastic#164329) Prepare the Security domain HTTP APIs for Serverless (elastic#162087) skip failing test suite (elastic#160986) [Security Solution] Fix flaky Event Filters test (elastic#164473) [EDR workflows] Osquery serverless tests (elastic#163795) [Fleet] Only show agent dashboard links if there is more than one non-server agent and if the dashboards exist (elastic#164469) [Chrome UI] Fix background color in serverless (elastic#164419) [DOCS] Saved objects - resolve import errors API (elastic#162825) Remove 'Create Rule' button from Rule Group page (elastic#164167) [Security Solution] expandable flyout - fix infinite loop in correlations (elastic#163450) [Remote Clusters] Update copy about port help text (elastic#164442) [api-docs] 2023-08-23 Daily api_docs build (elastic#164524) [data views] Disable scripted fields in serverless environment (elastic#163228) [Reporting] Fix - show diagnostic only when image reporting is enabled (elastic#164336) ...
kibanamachine
added a commit
that referenced
this pull request
Aug 23, 2023
…t until a refresh (#164403) (#164557) # Backport This will backport the following commits from `main` to `8.10`: - [[Defend Workflows]Changes to policy settings are not persistent until a refresh (#164403)](#164403) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Konrad Szwarc","email":"konrad.szwarc@elastic.co"},"sourceCommit":{"committedDate":"2023-08-23T10:46:04Z","message":"[Defend Workflows]Changes to policy settings are not persistent until a refresh (#164403)\n\nCloses https://github.com/elastic/security-team/issues/7386\r\n\r\nDispatch an action that will update the stored policy upon successful\r\nsaving of Policy Settings. This should occur only when no 'routeState'\r\nis being set, as in such a scenario, a page change triggers a refetch on\r\nits own.\r\n\r\nEven though redux was removed from Policy Settings in\r\nhttps://github.com//pull/161511 , the policy object that\r\nfeeds the view is being fetched as a result of onUrlChange action and\r\nstored in the redux store. This should be addressed in the future.\r\n\r\n\r\nhttps://github.com/elastic/kibana/assets/29123534/cf008d0e-804a-49f9-a2f7-9bb7d1162b28","sha":"5eca8618eab9e6f35b1d13d9c6ae8b1df598ad5c","branchLabelMapping":{"^v8.11.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:skip","Team:Defend Workflows","v8.10.0","v8.11.0"],"number":164403,"url":"https://github.com/elastic/kibana/pull/164403","mergeCommit":{"message":"[Defend Workflows]Changes to policy settings are not persistent until a refresh (#164403)\n\nCloses https://github.com/elastic/security-team/issues/7386\r\n\r\nDispatch an action that will update the stored policy upon successful\r\nsaving of Policy Settings. This should occur only when no 'routeState'\r\nis being set, as in such a scenario, a page change triggers a refetch on\r\nits own.\r\n\r\nEven though redux was removed from Policy Settings in\r\nhttps://github.com//pull/161511 , the policy object that\r\nfeeds the view is being fetched as a result of onUrlChange action and\r\nstored in the redux store. This should be addressed in the future.\r\n\r\n\r\nhttps://github.com/elastic/kibana/assets/29123534/cf008d0e-804a-49f9-a2f7-9bb7d1162b28","sha":"5eca8618eab9e6f35b1d13d9c6ae8b1df598ad5c"}},"sourceBranch":"main","suggestedTargetBranches":["8.10"],"targetPullRequestStates":[{"branch":"8.10","label":"v8.10.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.11.0","labelRegex":"^v8.11.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/164403","number":164403,"mergeCommit":{"message":"[Defend Workflows]Changes to policy settings are not persistent until a refresh (#164403)\n\nCloses https://github.com/elastic/security-team/issues/7386\r\n\r\nDispatch an action that will update the stored policy upon successful\r\nsaving of Policy Settings. This should occur only when no 'routeState'\r\nis being set, as in such a scenario, a page change triggers a refetch on\r\nits own.\r\n\r\nEven though redux was removed from Policy Settings in\r\nhttps://github.com//pull/161511 , the policy object that\r\nfeeds the view is being fetched as a result of onUrlChange action and\r\nstored in the redux store. This should be addressed in the future.\r\n\r\n\r\nhttps://github.com/elastic/kibana/assets/29123534/cf008d0e-804a-49f9-a2f7-9bb7d1162b28","sha":"5eca8618eab9e6f35b1d13d9c6ae8b1df598ad5c"}}]}] BACKPORT--> Co-authored-by: Konrad Szwarc <konrad.szwarc@elastic.co>
This was referenced Oct 1, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes https://github.com/elastic/security-team/issues/7386
Dispatch an action that will update the stored policy upon successful saving of Policy Settings. This should occur only when no 'routeState' is being set, as in such a scenario, a page change triggers a refetch on its own.
Even though redux was removed from Policy Settings in #161511 , the policy object that feeds the view is being fetched as a result of onUrlChange action and stored in the redux store. This should be addressed in the future.
Screen.Recording.2023-08-22.at.11.10.28.mov