Closed (fixed)
Project:
Linkit
Version:
8.x-5.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
5 Apr 2016 at 11:34 UTC
Updated:
4 Jul 2016 at 20:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
stborchertThe patch simply updates the configuration form of FileMatcher so one can limit the results to some extensions.
Comment #3
anonI totally agree with you.
Can you re-roll this against the 8.x-5.x version? A test with this would also be very welcomed.
Comment #4
stborchertRerolled agains 8.x-5.x. Test will follow ...
Comment #5
anonThe patch works fine, thanks.
Now we only need a test that tests this.
Comment #6
stborchertI finally had the time to look into this again.
Unfortunately I had some problems using the matcher on files uploaded during the test (which are obviously all temporary) so I had to add a hidden configuration to the FileMatcher. Using this, the test is able to find the temporary files.
Btw.: automated testing is disabled for 8.x-5.x ;)
Comment #7
anonThanks! Awesome patch.
Just a few questions.
Is this line brake changes? Can't find any other explanation.
Why change this?
Comment #8
stborchert0("temporary").FileMatcherqueries for permanent files only, so I added the (hidden) option to filter the query for temporary files.Comment #10
anonThanks.
I made a small change to the comments to follow code standards.
Comment #12
anonDang! I totally forgot about the schema config changes.
We need to update the schema,
and maybe create an update hook(5.x is only alpha so no update hook needed).I have reverted the commit.
Comment #13
anonPatch that updates the schema version.
I have renamed extensions to file_extensions where suitable, and added a new test that tests the file matcher with multiple file extensions.
And I guess we can do:
to
$query->condition('status', $this->configuration['status']);as it will always be set by defaultConfiguration().Comment #14
anonComment #15
stborchertwohoo :)
Comment #17
anonThanks for alla help stBorchert,