-
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
[Files] Allow option to disable delete action in mgt UI #155179
Conversation
c5c618d
to
52b5b5f
Compare
Pinging @elastic/appex-sharedux (Team:SharedUX) |
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.
Thanks for the changes! The functionality provided in these changes looks good to me! I pulled your branch and made the modifications to cases and the cases files no longer show in the file management UI 👍
I also tested that users can't delete through the file management UI when the files are listed
Thanks for the review @jonathan-buttner ! 👍 |
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.
I am not sure what's wrong exactly, but files management doesn't seem to be working properly for me:
So I have a file that can't be deleted and two files that can. When I try to select files that can be deleted the selection state isn't correct and the delete button count / modal also doesn't reflect my selection:
delete.bug.mov
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Public APIs missing comments
Async chunks
Page load bundle
Unknown metric groupsAPI count
ESLint disabled line counts
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: cc @sebelga |
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.
Thanks for the changes! re-tested. looks good
## Summary Since #155179 was merged we can now disable the deletion of Cases files in the Files page in Stack management. https://user-images.githubusercontent.com/1533137/234191683-8f768520-f842-413e-b922-200d01e2df28.mov --------- Co-authored-by: Jonathan Buttner <[email protected]>
This PR adds the possibility to disable behaviour of files in the Files management UI. It is now possible to disable
list
- Files won't show in the management UIdelete
- It won't be possible to delete the file from the management UIOption added to the public registry:
managementUiActions
How to test
yarn start --run-examples
Screenshots
Fixes #153756