-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Btsymbala/trusted app deletion #77316
Btsymbala/trusted app deletion #77316
Conversation
…to use it on the client.
…dded timestamping data.
) | ||
isOutdatedResourceState(currentPage, (data) => { | ||
return ( | ||
pageInfosEqual(currentPageInfo, data.paginationInfo) && data.timestamp >= freshDataTimestamp |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For my understanding, the timestamp comparison is meant to decide when to refresh primarily in the case where we update data like in deletions or creations? I like the concept as it gives us another bit of control for when we update data.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, that's the idea.
The approach LGTM, I like the ideas surrounding better control on when we refresh data, i.e. a url is changed vs. stale data |
x-pack/plugins/security_solution/public/management/pages/trusted_apps/store/middleware.ts
Show resolved
Hide resolved
…hanged the modal message to indicate the trusted app name.
Pinging @elastic/endpoint-management (Team:Endpoint Management) |
Pinging @elastic/endpoint-app-team (Feature:Endpoint) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Provided some suggestions, but none of which (IMO) should hold off this PR.
x-pack/plugins/security_solution/public/management/pages/trusted_apps/store/middleware.test.ts
Outdated
Show resolved
Hide resolved
x-pack/plugins/security_solution/public/management/pages/trusted_apps/store/middleware.test.ts
Show resolved
Hide resolved
x-pack/plugins/security_solution/public/management/pages/trusted_apps/store/reducer.test.ts
Show resolved
Hide resolved
...ugins/security_solution/public/management/pages/trusted_apps/view/trusted_apps_page.test.tsx
Outdated
Show resolved
Hide resolved
...ck/plugins/security_solution/public/management/pages/trusted_apps/view/trusted_apps_page.tsx
Show resolved
Hide resolved
💚 Build SucceededBuild metrics@kbn/optimizer bundle module count
async chunks size
distributable file count
History
To update your PR or re-run it, just comment with: |
* Moved the DeleteTrustedAppsRequestParams to common folder to be able to use it on the client. * Added trusted app deletion API to the client service layer. * Made default data type for async resource state. * Added guard for stale state. * Added timestamp to the list data to be used to refresh list when it's modified. * Separated out base type for resource state change actions. * Added action for outdating list data. * Moved the refresh condition inside the middleware case function and added timestamping data. * Added state, actions, reducers and middleware for deletion dialog. * Added actions column and deletion action. * Added trusted app deletion dialog. * Changed to not have deletonDialog as optional in store. * Changed the store to contain the full entry in the dialog state and changed the modal message to indicate the trusted app name. * Extracted notifications component and enhanced error display. * Added success message and unified messages a bit. * Complete coverage with tests. * Removed unused variable in translations. * Fixed tests because of outdated snapshots and inproper mocking of htmlIdGenerator. * Fixed code review comments. * Fixed type error.
* Moved the DeleteTrustedAppsRequestParams to common folder to be able to use it on the client. * Added trusted app deletion API to the client service layer. * Made default data type for async resource state. * Added guard for stale state. * Added timestamp to the list data to be used to refresh list when it's modified. * Separated out base type for resource state change actions. * Added action for outdating list data. * Moved the refresh condition inside the middleware case function and added timestamping data. * Added state, actions, reducers and middleware for deletion dialog. * Added actions column and deletion action. * Added trusted app deletion dialog. * Changed to not have deletonDialog as optional in store. * Changed the store to contain the full entry in the dialog state and changed the modal message to indicate the trusted app name. * Extracted notifications component and enhanced error display. * Added success message and unified messages a bit. * Complete coverage with tests. * Removed unused variable in translations. * Fixed tests because of outdated snapshots and inproper mocking of htmlIdGenerator. * Fixed code review comments. * Fixed type error.
Summary
Added functionality to delete trusted application list entry.
Checklist