-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[WIP] More flexible file actions API in web UI #30478
Conversation
Codecov Report
@@ Coverage Diff @@
## master #30478 +/- ##
=========================================
Coverage 61.5% 61.5%
Complexity 18487 18487
=========================================
Files 1090 1090
Lines 61050 61050
=========================================
Hits 37551 37551
Misses 23499 23499 Continue to review full report at Codecov.
|
Fixed the tests, but I'm a bit worried about a potential memory leak. After fixing some errors I noticed that I could run all tests with 2 GB memory but with recent changes I need to set it to 3 GB to avoid phantomjs crashes.
Maybe a simpler solution would just be to:
|
Basically we have two requirements:
tried to think of simpler ways to do it:
|
I went with approach 2 in #30106. Anything else is too complicated and prone to errors. We'll likely want to rewrite file actions from scratch and ditch the legacy stuff at some point instead of working around it... |
Removed backport label since this PR is closed/superceded |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Description
Make it possible to register functions instead of action specifications.
The function takes a
FileInfoModel
as input and decides whether to return an array of matching actions or not. This way it is possible to customize file actions based on any kind of attributes of the file model.Related Issue
Required for #30106 list pending shares.
Motivation and Context
Required for #30106 list pending shares where the file actions for pending shares would depend on the share state.
How Has This Been Tested?
Not yet.
Screenshots (if appropriate):
Types of changes
Checklist: