-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Media select all #8852
Media select all #8852
Conversation
I have tested this item ✅ successfully on 27f3371 This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8852. |
I have tested this item 🔴 unsuccessfully on 27f3371
It would be better if it was to say something like "Multiple selected files deleted" This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8852. |
Ah, good catch. I'll fix this. |
@brianteeman Actually... that has nothing to do with this PR. Multiple selection/deletion is already a thing and this poor message is the status quo. I can fix it in this PR though. |
This PR has received new commits. CC: @brianteeman, @NLRoosj This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8852. |
I'm updating both the 'file' controller and the 'folder' controller to report all deleted files and folders but, in fact, the 'file' controller is never actually used. Actually, a lot of things in this component are outdated or could use some work. For example, |
😃 |
The component is scheduled for replacement but I guess not till 3.6 now On 22 January 2016 at 09:48, infograf768 [email protected] wrote:
Brian Teeman |
lol! Epic fail. |
ab719f4
to
6c71696
Compare
This PR has received new commits. CC: @brianteeman, @NLRoosj This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8852. |
I have tested this item ✅ successfully on 6c71696 This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8852. |
I have tested this item ✅ successfully on 6c71696 This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8852. |
RTC thanks This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8852. |
I'm sorry @okonomiyaki3000 but there are conflicts - so I can't merge it - can you rebase please? |
6c71696
to
2c272f1
Compare
This PR has received new commits. CC: @brianteeman, @genesisfan, @NLRoosj This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8852. |
This is a new feature so it has to go into 3.6.x ? |
Personally its more of a bug fix than a feature as this should have always been there and it cant be said to have any effect in anything else. |
"It should have been there" fits for or lot of issues :-) Anyway I checked the last commits, there are files renamed, so when someone has overwritten a layout it fails (chances are low I know). I also think it should be testet again. If we are strict with semver then this is a interface change and allows a different way of doing something so it isn't bugfix it is a new way and so it is a new feature. This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8852. |
Wow - didnt actually spot that this (small change) had so many edits. Seeing all the file changes I agree with you 3.6 and will retest This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8852. |
I have tested this item 🔴 unsuccessfully on 2c272f1 Create a file caled test (1).jpg and add to the images folder manually If you try to delete it you will correctly get a message Now try to use the delete all checkbox on the folder and you get a message When you try to delete multiple files you get a success message for each file with the filename as expected This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8852. |
I am in the loop for the new Media Manager as well, work is being done for it but it isn't implemented until finished. Until then I would like to see this go in as it enhances the user experience. @okonomiyaki3000 Could you please brush op this PR so we can get it tested and merged? Thank you. P.s. if you are interested in contributing to the new media manager, let me know. This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8852. |
I'll get this PR ready then. I might be interested in the new one but not sure if I have much time to work on it. |
@okonomiyaki3000 Thank you, I will let Jisse contact you and you guys can figure it out the options. |
@brianteeman In the case that you try to delete a badly named file along with some properly named files, do you think it's best to abort all delete operations or just skip the badly named file(s)? |
2c272f1
to
3ec14a0
Compare
This PR has received new commits. CC: @brianteeman, @genesisfan, @NLRoosj This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8852. |
For now, I've gone with deleting what can be deleted and displaying errors for what can't but I wrote it in such a way that it's very simple to abort before deleting anything in case of errors. There's something else to consider though. We decide which files are good and which files are bad before firing any events. We then warn about the bad files and do nothing else with them. The good files get events fired for them at which time path to the file to delete can be changed (by a a plugin). So, a good path may become bad (because of a plugin) but a bad path has no chance to be made good. Also, |
I have tested this item ✅ successfully on 3ec14a0 This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8852. |
I have tested this item ✅ successfully on 3ec14a0 This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8852. |
RTC This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8852. |
Merged with c0aadb2. Thanks! |
Changed milestone as it was merged early |
3.7.x branch :) |
Oops my mistake. Github doesn't show the bramch |
Adding a "select all" box in the media list view. At the moment, the only batch operation that can be performed in this view is "delete" so the main point of this is to make it easier when you have a folder full of things that you need to delete.
Testing
It works like any other "select all" box so, to test it, just go to a media folder that has multiple items in it and check the box. You should see that they all become selected. Uncheck the box, they will all be deselected. It works both ways so you can also check all item checkboxes and you should see that the "select all" becomes selected automatically, deselect one of the item checkboxes and the "select all" becomes deselected.
More?
It seems to me that it would be nice to be able to select not only "all" but also on the basis of type. This is almost trivial because this view already treats folders, images, videos, and other documents as separate groups. In fact, it can be done relatively easily but it doesn't work as perfectly as I'd like due to limitations of the Joomla core js. Honestly, some of those functions are just not super great. Perhaps someone will completely rewrite them in the future and then these additional features can be easily added.