aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Repository
Commit message (Collapse)AuthorAgeFilesLines
* Add ability to match many domains for credentialsJeremy Benoist2019-04-231-4/+4
| | | | | Instead of fetching one domain, we use the same method as in site config (to retrieve the matching file) and handle api.example.org, example.org, .org (yes the last one isn’t useful). If one of these match, we got it and use it.
* CSJeremy Benoist2019-02-111-1/+1
|
* Avoid error when a bad `order` parameter is givenJeremy Benoist2019-01-141-1/+5
| | | | Only allowed parameter are asc & desc
* TagRestController: rewrite delete actions to only retrieve tags related to ↵Kevin Decherf2018-12-301-0/+17
| | | | | | | | the user Fixes #3815 Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* TagRepository: refactor query builder for queries by userIdKevin Decherf2018-12-301-16/+20
| | | | Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* Add missing parametersJeremy Benoist2018-09-071-1/+1
| | | | Parameters weren’t passed to the sub function.
* php-cs-fixerKevin Decherf2018-09-051-7/+7
| | | | Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* EntryRepository: refactor getBuilderForUntaggedByUserKevin Decherf2018-09-051-3/+16
| | | | | | | | | Improve SQL performance by replacing size(e.tags) with a left join and a null condition Move the QueryBuilder logic into getRawBuilderForUntaggedByUser Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* EntryRepository: refactor getBuilderByUserKevin Decherf2018-09-051-12/+38
| | | | | | | | | | | | We refactor getBuilderByUser to separate QueryBuilder getter and the orderBy(). The previous code of getBuilderByUser() has been moved to getSortedQueryBuilderByUser(). getBuildByUser() now returns a QueryBuilder without the call to orderBy(). A new method named sortQueryBuilder() returns a given QueryBuilder with an orderBy() call using given sort parameters. Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* php-cs-fixerKevin Decherf2018-09-052-3/+3
| | | | Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* Fix #3361 check type for tags in entry repositorySébastien Viande2017-10-121-1/+1
| | | | Check is $tags is a string before explode
* Remove unused functionJeremy Benoist2017-09-061-20/+0
| | | | Introduce after the rebase I guess
* Fix testsJeremy Benoist2017-09-061-1/+1
|
* Multiple tag search was broken from APIJeremy Benoist2017-09-061-5/+40
| | | | | | | | | | First, the setParameter() were done on the same parameter which in fact just duplicated the condition in the SQL query (like `where t.label = 'test' and t.label = 'test'`. Changed the parameter doesn't help because the query was then wrong. Changing the way to match associated tags for an entry and it worked.
* Set a starred_at field when an entry is starred.François D2017-08-251-5/+6
| | | | | | | | This date is used to sort starred entries. Can not use Entry::timestamps method otherwise starred_at will be updated each time entry is updated. Add an updateStar method into Entry class A migration script has been added in order to set starred_at field.
* rename getAllEntriesIdAndUrl into findAllEntriesIdAndUrlByUserIdNicolas Hart2017-08-221-1/+1
|
* rename getAllEntriesId into findAllEntriesIdByUserIdNicolas Hart2017-08-221-1/+1
|
* Add reload entry commandNicolas Hart2017-08-211-0/+17
|
* Reduce number of queries on tag listNicolas Hart2017-08-062-20/+21
|
* Fix some namespaces and phpdocNicolas Hart2017-07-292-4/+6
|
* Fix testsJeremy Benoist2017-07-031-2/+2
|
* Add a real configuration for CS-FixerJeremy Benoist2017-07-011-17/+17
|
* Merge pull request #2683 from wallabag/credentials-in-dbJérémy Benoist2017-06-201-0/+47
|\ | | | | Store credentials in DB
| * Fix reviewsThomas Citharel2017-06-201-1/+2
| | | | | | | | | | | | | | | | Encrypt username too Redirect to list after saving credentials Fix typos Signed-off-by: Thomas Citharel <tcit@tcit.fr>
| * Crypt site credential passwordJeremy Benoist2017-06-201-1/+19
| |
| * Retrieve username/password from databaseJeremy Benoist2017-06-201-0/+18
| | | | | | | | Inject the current user & the repo to retrieve username/password from the database
| * Update route & user verificationJeremy Benoist2017-06-201-3/+0
| |
| * Add CRUD for site credentialsJeremy Benoist2017-06-201-0/+13
| |
* | Add public filter/field in the APIJeremy Benoist2017-06-101-3/+8
|/ | | | | | Listing entries can now be filtered by “public”. Creating or patching an entry can now set is to public or remove the public. Entry response now include “is_public” boolean field
* Fixed @j0k3r reviewNicolas Lœuillet2017-05-051-3/+1
|
* Added test for deduplicationNicolas Lœuillet2017-05-051-0/+19
|
* Add Clean Duplicates CommandThomas Citharel2017-05-011-0/+13
|
* Renamed methodsNicolas Lœuillet2017-03-311-1/+1
|
* Allow to remove all archived entriesThomas Citharel2017-03-312-0/+28
| | | | | | Since we still support fucking SQLite, we need to retrieve all tags & annotations for archived entries before deleting them. Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* Rename method from *username to *userThomas Citharel2017-03-301-1/+1
| | | | Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* Search by term: extend to entries urlKevin Decherf2017-02-161-1/+2
| | | | Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* Order tags by slugJan Losinski2017-01-171-0/+1
| | | | | | | | This adds an orderBy clause to findAllTags(). This makes the list of tags more useful, as the tags appear in alphanumerical order instead of somehow random. Signed-off-by: Jan Losinski <losinski@wh2.tu-dresden.de>
* Removed outputWalkers for RSS and APINicolas Lœuillet2016-12-151-1/+1
|
* Removed outputWalkers for paginationNicolas Lœuillet2016-12-151-3/+1
| | | | Due to overload, we disabled output walkers (see https://github.com/whiteoctober/Pagerfanta/issues/115
* Removed user join in query builderNicolas Lœuillet2016-12-121-2/+1
|
* Added testsNicolas Lœuillet2016-11-191-2/+1
|
* Added translations and currentRoute parameterNicolas Lœuillet2016-11-191-5/+17
|
* Added a simple search engineNicolas Lœuillet2016-11-191-0/+19
| | | | Fix #18
* Use created_at as default sortJeremy Benoist2016-11-041-1/+1
| | | | With index (following https://github.com/wallabag/wallabag/pull/2534)
* Use statements & update translationJeremy Benoist2016-10-222-22/+14
|
* CSJeremy Benoist2016-10-221-2/+2
|
* Add custom doctrine subscriber for SQLiteJeremy Benoist2016-10-221-0/+13
| | | | | | Since SQLite doesn’t handle cascade remove by default, we need to handle it manually. Also some refacto
* Add ability to reset some datasJeremy Benoist2016-10-221-0/+17
| | | | | | - annotations - tags - entries
* Optimize the way tag list is renderedJeremy Benoist2016-10-092-3/+27
| | | | | | Instead of retrieve all informations about entries of a tag to just count them, we’ll count them before with a fastest query. Also change the layout of the tag list in material design
* Fix parameters in API _linksJeremy Benoist2016-10-021-1/+1
| | | | We forgot to pass them to the factory