aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/LinkFilterTest.php
Commit message (Collapse)AuthorAgeFilesLines
* namespacing: \Shaarli\Bookmark\LinkFilterVirtualTam2019-01-121-502/+0
| | | | Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* namespacing: \Shaarli\Bookmark\LinkDBVirtualTam2019-01-121-0/+2
| | | | Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* lint: fix line-length warningsVirtualTam2018-12-021-4/+12
| | | | Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* lint: apply phpcbf to tests/VirtualTam2018-12-021-1/+1
| | | | Signed-off-by: VirtualTam <virtualtam@flibidi.net>
* Performances: reorder links when they're written instead of readArthurHoaro2017-09-021-1/+12
| | | | relates to #891
* Using only one form in linklist.html + adding untaggedonly filter - fix #885Lucas Cimon2017-07-301-2/+1
|
* Empty tag search will look for not tagged linksArthurHoaro2017-05-251-3/+16
| | | | | | | | | | | Fixes #784 From now, searching for tags with an empty value will return only not tagged links, with the search bar showing `x results [not tagged]`. Note that using the api, the searchtags request parameter must be set to `false` to get the same result. - [ ] Update API doc
* Update LinkFilter to be able to filter only public linksArthurHoaro2017-01-161-10/+63
| | | | | | No update regarding the UI or the API for now Fixes #758
* Unit Test for the new ID systemArthurHoaro2016-12-121-3/+3
|
* Hashtag systemArthurHoaro2016-06-061-0/+26
| | | | | | * Hashtag are auto-linked with a filter search * Supports unicode * Compatible with markdown (excluded in code blocks)
* Refactor filter in LinkDBArthurHoaro2016-03-251-4/+3
| | | | | | | | * search type now carried by LinkDB in order to factorize code between different search sources. * LinkDB->filter split in 3 method: filterSearch, filterHash, filterDay (we know what type of filter is needed). * filterHash now throw a LinkNotFoundException if it doesn't exist: internal implementation choice, still displays a 404. * Smallhash regex has been rewritten. * Unit tests update
* FeedBuilder unit testsArthurHoaro2016-03-251-6/+4
|
* Allow crossed search between terms and tagsArthurHoaro2016-02-281-1/+50
| | | | | | | * Partial fix of #449 * Current use case: search term + click on tag. * LinkFilter now returns all links if no filter is given. * Unit tests.
* Support text search across link fields.ArthurHoaro2016-02-151-6/+45
|
* Improved search: combine AND, exact terms and exclude search.ArthurHoaro2016-02-151-4/+36
|
* Add exclusion in tag searchArthurHoaro2016-02-151-0/+16
| | | | | | | | | | | * Searching '-mytag' will now exlude all shaares with 'mytag' tag. * All tags starting with a '-' are renamed without it (through the Updater). * Unit tests. Minor code changes: * LinkDB->filter() can now take no parameters (get all link depending on logged status). * tagsStrToArray() is now static and filters blank tags.
* Implemented searching for a phrase in double-quotes or all words in no ↵Florian Voigt2016-02-011-1/+16
| | | | | | particular order. + unit tests
* Link filter refactoringArthurHoaro2016-01-061-0/+242
* introduce class LinkFilter to handle link filter operation (and lighten LinkDB). * handle 'private only' in filtering. * update template to prefill search fields with current search terms. * coding style. * unit test (mostly move from LinkDB to LinkFilter). PS: preparation for #358 #315 and 'AND' search.