? ? Success

User tests: Successful: Unsuccessful:

avatar okonomiyaki3000
okonomiyaki3000
7 Jan 2016

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.

avatar okonomiyaki3000 okonomiyaki3000 - open - 7 Jan 2016
avatar okonomiyaki3000 okonomiyaki3000 - change - 7 Jan 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 7 Jan 2016
Labels Added: ?
avatar NLRoosj NLRoosj - test_item - 10 Jan 2016 - Tested successfully
avatar NLRoosj
NLRoosj - comment - 10 Jan 2016

I have tested this item :white_check_mark: successfully on 27f3371


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8852.

avatar brianteeman brianteeman - test_item - 21 Jan 2016 - Tested unsuccessfully
avatar brianteeman
brianteeman - comment - 21 Jan 2016

I have tested this item :red_circle: unsuccessfully on 27f3371

The select and delete work but the message is wrong
It only shows

Message
Delete Complete: /sampledata/fruitshop/tamarind.jpg

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.

avatar okonomiyaki3000
okonomiyaki3000 - comment - 22 Jan 2016

Ah, good catch. I'll fix this.

avatar okonomiyaki3000
okonomiyaki3000 - comment - 22 Jan 2016

@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.

avatar joomla-cms-bot
joomla-cms-bot - comment - 22 Jan 2016

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.

avatar okonomiyaki3000
okonomiyaki3000 - comment - 22 Jan 2016

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, JError is still used quite a lot.

avatar infograf768
infograf768 - comment - 22 Jan 2016
print_r($app); die();

:smiley:

avatar brianteeman
brianteeman - comment - 22 Jan 2016

The component is scheduled for replacement but I guess not till 3.6 now

On 22 January 2016 at 09:48, infograf768 notifications@github.com wrote:

print_r($app); die();

[image: :smiley:]


Reply to this email directly or view it on GitHub
#8852 (comment).

Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
http://brian.teeman.net/

avatar okonomiyaki3000
okonomiyaki3000 - comment - 22 Jan 2016

lol! Epic fail.

avatar joomla-cms-bot
joomla-cms-bot - comment - 25 Jan 2016

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.

avatar brianteeman brianteeman - test_item - 26 Jan 2016 - Tested successfully
avatar brianteeman
brianteeman - comment - 26 Jan 2016

I have tested this item :white_check_mark: successfully on 6c71696


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8852.

avatar genesisfan genesisfan - test_item - 19 Feb 2016 - Tested successfully
avatar genesisfan
genesisfan - comment - 19 Feb 2016

I have tested this item :white_check_mark: successfully on 6c71696

It works like a charm!


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8852.

avatar brianteeman brianteeman - change - 19 Feb 2016
Status Pending Ready to Commit
avatar brianteeman
brianteeman - comment - 19 Feb 2016

RTC thanks


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8852.

avatar joomla-cms-bot joomla-cms-bot - change - 19 Feb 2016
Labels Added: ?
avatar wilsonge
wilsonge - comment - 23 Feb 2016

I'm sorry @okonomiyaki3000 but there are conflicts - so I can't merge it - can you rebase please?

avatar joomla-cms-bot
joomla-cms-bot - comment - 24 Feb 2016

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.

avatar brianteeman brianteeman - change - 1 Mar 2016
Labels
avatar brianteeman brianteeman - change - 1 Mar 2016
Category Media Manager
avatar brianteeman brianteeman - change - 12 Apr 2016
Milestone Added:
avatar brianteeman brianteeman - change - 12 Apr 2016
Milestone Added:
avatar rdeutz
rdeutz - comment - 13 Apr 2016

This is a new feature so it has to go into 3.6.x ?

avatar brianteeman
brianteeman - comment - 13 Apr 2016

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.

avatar rdeutz rdeutz - change - 13 Apr 2016
Milestone Added:
Removed:
Status Ready to Commit Pending
Labels Added: ?
Removed: ?
avatar rdeutz rdeutz - change - 13 Apr 2016
Milestone Added:
avatar rdeutz rdeutz - change - 13 Apr 2016
Milestone Removed:
avatar rdeutz
rdeutz - comment - 13 Apr 2016

"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.

avatar brianteeman
brianteeman - comment - 13 Apr 2016

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.

avatar brianteeman brianteeman - test_item - 13 Apr 2016 - Tested unsuccessfully
avatar brianteeman
brianteeman - comment - 13 Apr 2016

I have tested this item :red_circle: unsuccessfully on 2c272f1

Came across a problem when deleting invalid files

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
Unable to delete: . File name must only contain alphanumeric characters and no spaces.

Now try to use the delete all checkbox on the folder and you get a message
Unable to delete: .

When you try to delete multiple files you get a success message for each file with the filename as expected
But if you have multiple files that cannot be deleted like above then you only get the one message
Unable to delete: .


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8852.

avatar okonomiyaki3000
okonomiyaki3000 - comment - 13 Apr 2016

I'll have a look at that but maybe we should address the issue of being unable to delete files because of their names. Is there any reason for that?

avatar brianteeman
brianteeman - comment - 13 Apr 2016

The reason is that there has always been the view that media manager should
only delete files that it can create.

BUT as this has now been pushed to 3.6 and @dgt41 is working on a new Media
Manager for 3.6 maybe any further new work on the existing Media Manager is
pointless

@dgt41 Thoughts?

On 13 April 2016 at 07:55, Elijah Madden notifications@github.com wrote:

I'll have a look at that but maybe we should address the issue of being
unable to delete files because of their names. Is there any reason for
that?


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#8852 (comment)

Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
http://brian.teeman.net/

avatar okonomiyaki3000
okonomiyaki3000 - comment - 13 Apr 2016

It's perfectly fine with me to drop this PR if the functionality is being included in the new version.

avatar okonomiyaki3000
okonomiyaki3000 - comment - 13 Apr 2016

On the other hand, if there's a chance that the rewrite would be delayed and get pushed back to whatever version comes after 3.6, I can easily brush this up to make sure at least this feature gets in.

avatar brianteeman
brianteeman - comment - 13 Apr 2016

I would wait for a comment from @dgt41

On 13 April 2016 at 09:03, Elijah Madden notifications@github.com wrote:

On the other hand, if there's a chance that the rewrite would be delayed
and get pushed back to whatever version comes after 3.6, I can easily brush
this up to make sure at least this feature gets in.


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#8852 (comment)

Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
http://brian.teeman.net/

avatar brianteeman
brianteeman - comment - 15 Apr 2016

Setting to Needs Review by @dgt41 ;)


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8852.

avatar brianteeman brianteeman - change - 15 Apr 2016
Status Pending Needs Review
avatar roland-d roland-d - change - 7 May 2016
Status Needs Review Pending
avatar roland-d
roland-d - comment - 7 May 2016

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.

avatar okonomiyaki3000
okonomiyaki3000 - comment - 9 May 2016

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.

avatar roland-d
roland-d - comment - 9 May 2016

@okonomiyaki3000 Thank you, I will let Jisse contact you and you guys can figure it out the options.

avatar okonomiyaki3000
okonomiyaki3000 - comment - 9 May 2016

@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)?

avatar joomla-cms-bot
joomla-cms-bot - comment - 9 May 2016

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.

avatar okonomiyaki3000
okonomiyaki3000 - comment - 9 May 2016

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, MediaControllerFile and MediaControllerFolder both have identical delete functions. One is used when deleting a single file, the other for multiple. It's kind of nonsense. I'm not going to fix it now because it's not a big deal and anyway a new media manager is being developed. Let's hope we can avoid this kind of thing in the new one.

avatar brianteeman brianteeman - test_item - 13 May 2016 - Tested successfully
avatar brianteeman
brianteeman - comment - 13 May 2016

I have tested this item :white_check_mark: successfully on 3ec14a0


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8852.

avatar wilsonge wilsonge - change - 8 Jun 2016
Milestone Removed:
avatar bertmert bertmert - test_item - 10 Jun 2016 - Tested successfully
avatar bertmert
bertmert - comment - 10 Jun 2016

I have tested this item successfully on 3ec14a0


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8852.

avatar brianteeman brianteeman - change - 10 Jun 2016
Status Pending Ready to Commit
avatar brianteeman
brianteeman - comment - 10 Jun 2016

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8852.

avatar joomla-cms-bot joomla-cms-bot - change - 10 Jun 2016
Labels Added: ?
avatar roland-d roland-d - change - 10 Jun 2016
Milestone Added:
avatar wilsonge
wilsonge - comment - 30 Jul 2016

Merged with c0aadb2. Thanks!

avatar wilsonge wilsonge - change - 30 Jul 2016
Status Ready to Commit Closed
Closed_Date 0000-00-00 00:00:00 2016-07-30 13:54:46
Closed_By wilsonge
avatar joomla-cms-bot joomla-cms-bot - change - 30 Jul 2016
Category Media Manager Media Manager Administration Components
avatar wilsonge wilsonge - close - 30 Jul 2016
avatar joomla-cms-bot joomla-cms-bot - close - 30 Jul 2016
avatar joomla-cms-bot joomla-cms-bot - change - 30 Jul 2016
Labels Removed: ?
avatar brianteeman
brianteeman - comment - 30 Jul 2016

Changed milestone as it was merged early

avatar wilsonge
wilsonge - comment - 30 Jul 2016

3.7.x branch :)

avatar brianteeman
brianteeman - comment - 30 Jul 2016

Oops my mistake. Github doesn't show the bramch

Add a Comment

Login with GitHub to post a comment