| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Also CS (because cs-fixer got an update)
Package operations: 0 installs, 26 updates, 0 removals
- Updating twig/twig (v2.12.1 => v2.12.2)
- Updating symfony/symfony (v3.4.33 => v3.4.34)
- Updating doctrine/event-manager (v1.0.0 => 1.1.0)
- Updating doctrine/collections (v1.6.2 => 1.6.3)
- Updating doctrine/cache (v1.8.1 => 1.9.0)
- Updating doctrine/persistence (1.1.1 => 1.2.0)
- Updating doctrine/inflector (v1.3.0 => 1.3.1)
- Updating symfony/mime (v4.3.5 => v4.3.7)
- Updating swiftmailer/swiftmailer (v6.2.1 => v6.2.3)
- Updating symfony/swiftmailer-bundle (v3.3.0 => v3.3.1)
- Updating doctrine/dbal (v2.9.2 => v2.9.3)
- Updating doctrine/instantiator (1.2.0 => 1.3.0)
- Updating j0k3r/graby-site-config (1.0.93 => 1.0.94)
- Updating phpoption/phpoption (1.5.0 => 1.5.2)
- Updating symfony/http-client-contracts (v1.1.7 => v1.1.8)
- Updating symfony/http-client (v4.3.5 => v4.3.7)
- Updating sensiolabs/security-checker (v6.0.2 => v6.0.3)
- Updating paragonie/constant_time_encoding (v2.2.3 => v2.3.0)
- Updating scheb/two-factor-bundle (v4.7.1 => v4.8.0)
- Updating symfony/phpunit-bridge (v4.3.6 => v4.3.7)
- Updating composer/xdebug-handler (1.3.3 => 1.4.0)
- Updating friendsofphp/php-cs-fixer (v2.15.3 => v2.16.0)
- Updating doctrine/data-fixtures (v1.3.2 => 1.3.3)
- Updating nette/schema (v1.0.0 => v1.0.1)
- Updating nikic/php-parser (v4.2.4 => v4.3.0)
- Updating sentry/sentry (2.2.2 => 2.2.4)
|
| |
|
|
|
|
|
|
| |
Closes #3235
Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
|
|\
| |
| | |
Add `given_url` in Entry table to check if a redirected url has already added
|
| |
| |
| |
| |
| | |
When using `OR` in a where clause, a composite index can't be used. We should use a `UNION` to take advantages of it.
Instead, create 2 indexes on each hashed urls and make 2 queries to find an url. It'll be faster than the previous solution.
|
| |
| |
| |
| | |
Using hashed url we can ensure an index on them to ensure it's fast.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
- Added index on entry table for given_url field
- Fix tests:
The previous `bit.ly` url redirected to doc.wallabag but that url doesn't exist in the fixtures.
I used our own internal "redirector" to create a redirect to an url which exist in the fixtures.
Also, updating current migration to use the new `WallabagMigration`.
|
|/ |
|
|
|
|
| |
Also fix a phpdoc block
|
| |
|
|
|
|
| |
Signed-off-by: Olivier Mehani <shtrom@ssji.net>
|
|
|
|
| |
Signed-off-by: Olivier Mehani <shtrom@ssji.net>
|
|\
| |
| | |
api/entries: add parameter detail to exclude or include content in response
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
detail=metadata will nullify the content field of entries in order to
make smaller responses.
detail=full keeps the former behavior, it sends the content of entries.
It's the default, for backward compatibility.
Fixes #2817
Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
|
|\ \
| |/
|/| |
|
| |
| |
| |
| |
| | |
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.
|
| | |
|
| |
| |
| |
| | |
Also, do not run the hashed_url migration into a Doctrine migration
|
| |
| |
| |
| |
| |
| | |
- Add migration
- Use md5 instead of sha512 (we don't need security here, just a hash)
- Update tests
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
Change the way to select a random entry:
- select all ids from the given user (with filters)
- choose randomly one in php
- find that entry
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
|\| |
|
| |
| |
| |
| | |
Only allowed parameter are asc & desc
|
| |
| |
| |
| |
| |
| |
| |
| | |
the user
Fixes #3815
Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
|
| |
| |
| |
| | |
Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
|
| | |
|
| | |
|
|/ |
|
|
|
|
| |
Parameters weren’t passed to the sub function.
|
|
|
|
| |
Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
|
|
|
|
| |
Check is $tags is a string before explode
|
|
|
|
| |
Introduce after the rebase I guess
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|