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

Btsymbala/trusted app deletion #77316

Merged
merged 22 commits into from
Sep 23, 2020

Conversation

efreeti
Copy link
Contributor

@efreeti efreeti commented Sep 14, 2020

Summary

Added functionality to delete trusted application list entry.

trusted_apps_delete

Checklist

)
isOutdatedResourceState(currentPage, (data) => {
return (
pageInfosEqual(currentPageInfo, data.paginationInfo) && data.timestamp >= freshDataTimestamp
Copy link
Contributor

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.

Copy link
Contributor Author

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.

@kevinlog
Copy link
Contributor

The approach LGTM, I like the ideas surrounding better control on when we refresh data, i.e. a url is changed vs. stale data

@efreeti efreeti marked this pull request as ready for review September 17, 2020 12:33
@efreeti efreeti requested review from a team as code owners September 17, 2020 12:33
@efreeti efreeti self-assigned this Sep 17, 2020
@efreeti efreeti added Feature:Endpoint Elastic Endpoint feature release_note:skip Skip the PR/issue when compiling release notes Team:Endpoint Management v7.10.0 v8.0.0 labels Sep 17, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/endpoint-management (Team:Endpoint Management)

@elasticmachine
Copy link
Contributor

Pinging @elastic/endpoint-app-team (Feature:Endpoint)

@kevinlog
Copy link
Contributor

Pulled it down and the experience feels great! Creating and deleting trusted apps is easy 👍

image

image

image

looking more closely at the code next

Copy link
Contributor

@paul-tavares paul-tavares left a 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.

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Build metrics

@kbn/optimizer bundle module count

id value diff baseline
securitySolution 1962 +3 1959

async chunks size

id value diff baseline
securitySolution 10.2MB +23.4KB 10.2MB

distributable file count

id value diff baseline
default 45850 -1 45851

History

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

@efreeti efreeti merged commit 21490d9 into elastic:master Sep 23, 2020
@efreeti efreeti deleted the btsymbala/trusted-app-deletion branch September 23, 2020 13:07
efreeti added a commit to efreeti/kibana that referenced this pull request Sep 23, 2020
* 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.
efreeti added a commit that referenced this pull request Sep 24, 2020
* 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Endpoint Elastic Endpoint feature release_note:skip Skip the PR/issue when compiling release notes v7.10.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants