aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Entity/Entry.php
Commit message (Collapse)AuthorAgeFilesLines
* Fix createdAt date range filterKevin Decherf2020-03-221-1/+1
| | | | | | | | | | | - hiddenName has been disabled in order to fix the missing date range values when using the material theme - data format has been changed to 'Y-m-d' in order to comply with the browser date input default format - tests: date() and strtotime have been replaced with DateTime-related objects Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* Use lang attributeSimounet2020-01-231-0/+13
|
* Update depsJeremy Benoist2019-11-121-12/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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)
* Add user_created indexOlivier Mehani2019-08-071-0/+1
| | | | Signed-off-by: Olivier Mehani <shtrom@ssji.net>
* Add user_archived indexOlivier Mehani2019-08-071-0/+1
| | | | Signed-off-by: Olivier Mehani <shtrom@ssji.net>
* Add index on starred entriesOlivier Mehani2019-08-061-1/+2
| | | | | | Fixes #4079 Signed-off-by: Olivier Mehani <shtrom@ssji.net>
* Update language in Entry model, and add indexOlivier Mehani2019-08-061-2/+3
| | | | | | Fixes #4080 Signed-off-by: Olivier Mehani <shtrom@ssji.net>
* Merge pull request #3271 from wallabag/store-resolved-urlJérémy Benoist2019-06-051-10/+58
|\ | | | | Add `given_url` in Entry table to check if a redirected url has already added
| * TyposJeremy Benoist2019-06-051-2/+2
| |
| * Use two indexes instead of one for hashed urlsJeremy Benoist2019-06-051-1/+2
| | | | | | | | | | 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.
| * Use hash given url to avoid duplicateJeremy Benoist2019-05-291-43/+56
| | | | | | | | Using hashed url we can ensure an index on them to ensure it's fast.
| * Added given_url in entry tableNicolas Lœuillet2019-05-291-1/+35
| | | | | | | | | | | | | | | | | | | | - 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`.
* | Fix some Scrutinizer issuesJeremy Benoist2019-05-291-1/+1
|/
* Add Wallabag\CoreBundle\Helper\UrlHasherOlivier Mehani2019-05-241-1/+2
| | | | Signed-off-by: Olivier Mehani <shtrom@ssji.net>
* Fix index on MySQLJeremy Benoist2019-04-011-1/+1
|
* Use a better index for hashed_urlJeremy Benoist2019-04-011-2/+3
| | | | | | It'll most often be used in addition to the `user_id`. Also, automatically generate the hash when saving the url. Switch from `md5` to `sha1`.
* Keep url in exists endpointJeremy Benoist2019-04-011-2/+2
| | | | | | - Add migration - Use md5 instead of sha512 (we don't need security here, just a hash) - Update tests
* Hash the urls to check if they existThomas Citharel2019-04-011-1/+29
| | | | Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* Entry: add archived_at property and updateArchived methodSébastien Viande2018-09-211-1/+48
|
* Fix phpcsKevin Decherf2017-11-191-2/+2
| | | | Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* Add originUrl property to Entry, handle that in EntryRestController, handle ↵Kevin Decherf2017-11-191-0/+33
| | | | | | migration Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
* Changed reading_time field to prevent null valuesNicolas Lœuillet2017-10-131-2/+2
|
* Set a starred_at field when an entry is starred.François D2017-08-251-0/+47
| | | | | | | | 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.
* Add EntityTimestampsTrait to handle datesJeremy Benoist2017-07-061-13/+3
| | | | Refactorize timestamps() method to avoid re-writing it on each entity
* Fix PATCH methodJeremy Benoist2017-07-031-0/+16
| | | | | The PATCH method for the entry should only update what user sent to us and not the whole entry as it was before. Also, sending tags when patching an entry will now remove all current tags & assocatied new ones.
* Add a real configuration for CS-FixerJeremy Benoist2017-07-011-5/+5
|
* Few fixesJeremy Benoist2017-06-101-0/+1
|
* Add public filter/field in the APIJeremy Benoist2017-06-101-0/+4
| | | | | | 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
* Add isPublic filter on entriesJeremy Benoist2017-06-101-0/+10
|
* CSJeremy Benoist2017-05-301-1/+1
|
* Fix some Scrutinizer issuesJeremy Benoist2017-05-301-3/+3
|
* Replaced json_array with arrayNicolas Lœuillet2017-05-111-4/+4
| | | | And fixed failing test due to @j0k3r :trollface:
* Added headers field in EntryNicolas Lœuillet2017-05-111-1/+30
|
* Merge pull request #3024 from wallabag/store-dateNicolas Lœuillet2017-04-181-0/+58
|\ | | | | Added publication date and author
| * Added author of articleNicolas Lœuillet2017-04-091-0/+29
| |
| * Added publication dateNicolas Lœuillet2017-04-051-0/+29
| |
* | Remove isPublic from Entry entity fix #2598Maxime2017-04-131-25/+0
|/
* Renamed uuid to uidNicolas Lœuillet2016-12-291-13/+13
|
* Changed uuid type in databaseNicolas Lœuillet2016-12-251-1/+1
|
* Fixed index on entry.uuid and changed uuid field typeNicolas Lœuillet2016-12-251-3/+5
|
* Added index on table creationNicolas Lœuillet2016-12-231-1/+2
|
* Be consistent between migration & schema definitionJeremy Benoist2016-12-191-1/+1
|
* Replace http status with a stringNicolas Lœuillet2016-11-181-2/+2
| | | | I don't want to have 0 if we don't fetch status code, I think it's better to have an empty string, mainly for filters
* Added http_status in Entry entityNicolas Lœuillet2016-11-181-0/+29
|
* Add index into Table definitionJeremy Benoist2016-11-041-1/+5
|
* Fix emoji insertion in MySQLJeremy Benoist2016-10-221-1/+1
| | | | | Switch to utf8mb4 instead of utf8 because f*** MySQL See https://github.com/doctrine/dbal/pull/851
* Add ability to reset some datasJeremy Benoist2016-10-221-2/+2
| | | | | | - annotations - tags - entries
* Fix relations export for EntryJeremy Benoist2016-10-071-2/+15
| | | | | Tags & Annotations weren’t really well exported. This is now fixed (+ tests)
* Fix DateTime & clear()Jeremy Benoist2016-09-111-5/+5
|
* Add ability to define created_at for all importJeremy Benoist2016-09-111-2/+17
| | | | | | At the moment only Readability & wallabag v2 import allow created_at import. Pocket removed `time_added` field from their API v2 to v3... And wallabag v1 doesn't export that value.