aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/ImportBundle/Import/PocketImport.php
Commit message (Collapse)AuthorAgeFilesLines
* CSJeremy Benoist2017-10-091-6/+6
|
* Add a real configuration for CS-FixerJeremy Benoist2017-07-011-7/+6
|
* Avoid returning objects passed by reference.Jerome Charaoui2017-06-011-1/+1
| | | | | | Objects are always passed by reference, so it doesn't make sense to return an object which is passed by reference as it will always be the same object. This change makes the code a bit more readable.
* CSThomas Citharel2017-05-281-1/+0
| | | | Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* Move Tags assigner to a separate fileThomas Citharel2017-05-271-1/+1
| | | | Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* CSJeremy Benoist2016-11-021-2/+0
|
* Add entry.saved event to import & restJeremy Benoist2016-11-021-7/+0
|
* Use scheduled entity insertions to avoid tag duplicateJeremy Benoist2016-09-251-1/+2
| | | | Using `getScheduledEntityInsertions()` we can retrieve not yet flushed but already persisted entities and then avoid tags duplication on import.
* Avoid losing entry when fetching failJeremy Benoist2016-09-171-14/+5
| | | | Instead of just say “Failed to save entry” we’ll save the entry at all cost and try to fetch content. If fetching content failed, the entry will still be saved at least, but without content.
* Missing some migrationsJeremy Benoist2016-09-161-1/+0
| | | | and CS
* Moved Pocket token to user configJeremy Benoist2016-09-161-6/+4
|
* Change flash message for queued articlesJeremy Benoist2016-09-131-11/+0
|
* Retrieve created date from PocketJeremy Benoist2016-09-111-0/+4
|
* Add test for RabbitMQJeremy Benoist2016-09-111-1/+1
| | | | Also update Symfony deps
* Add ability to define created_at for all importJeremy Benoist2016-09-111-0/+5
| | | | | | 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.
* CSJeremy Benoist2016-09-111-2/+0
|
* Some cleanup & refactorJeremy Benoist2016-09-111-17/+5
|
* Retrieve all items from PocketJeremy Benoist2016-09-111-6/+31
| | | | | 5000 by 5000. Also, retrieve newest item first.
* Convert other imports to RabbitJeremy Benoist2016-09-111-91/+16
|
* Send every imported item to the queueJeremy Benoist2016-09-111-65/+112
| | | | | Instead of queing real Entry to process, we queue all the item to import from Pocket in a raw format. Then, the worker retrieve that information, find / create the entry and save it.
* Replace RabbitMQ injection with CraueConfigurationNicolas Lœuillet2016-09-111-2/+2
|
* 1st draft for rabbitMQNicolas Lœuillet2016-09-111-8/+27
|
* Clearing entities in the loop fail on PostgresJeremy Benoist2016-09-111-4/+1
| | | | It looks like when you clear entities on Postgres some references are lost and tags are not saved :-/
* Fix error on EntityManager clearJeremy Benoist2016-09-111-1/+4
| | | | | Introduced in the recent 2.5.5 release. Also updated deps.
* Merge pull request #2221 from wallabag/replace-favorite-starJeremy Benoist2016-08-211-1/+1
|\ | | | | Replaced favorite word/icon with star one
| * Replaced favorite word/icon with star oneNicolas Lœuillet2016-08-181-1/+1
| | | | | | | | Fix #2041
* | Avoid breaking import when fetching failJeremy Benoist2016-08-201-11/+8
|/ | | | | | | | | graby will throw an Exception in some case (like a bad url, a restricted url or a secured pdf). Import doesn't handle that case and break the whole import. With that commit the import isn't stopped but the entry is just skipped. Also, as a bonus, I've added extra test on WallabagImportV2 when the json is empty.
* Add testsNicolas Lœuillet2016-04-181-1/+1
|
* Add doctrine clear after flush, thanks to @BitOne talk at Symfony LiveNicolas Lœuillet2016-04-181-0/+1
|
* Fix some Scrutinizer issuesJeremy Benoist2016-03-271-1/+1
|
* Convert english translation fileJeremy Benoist2016-03-201-2/+2
| | | | | | | - convert english translation to translate key - remove baggy template for login (never used since user isn't logged in and it'll use the default theme: material) - fix tests about text in response (now checking translation key instead of translated text) - remove all ugly `<div class="hidden">{{ form_rest(form) }}</div>`
* Adding testJeremy Benoist2016-03-041-1/+1
| | | | Reformat json file (thanks pro.jsonlint.com)
* cs & tests for wllbg v1 importThomas Citharel2016-03-031-1/+0
|
* french translation & pocketThomas Citharel2016-03-031-1/+23
|
* Move assignTagsToEntry in ContentProxy helperJeremy Benoist2016-02-191-22/+4
|
* Merge pull request #1612 from wallabag/v2-settings-pageNicolas Lœuillet2016-02-041-2/+3
|\ | | | | Settings page
| * Add CraueConfig for internal settingsJeremy Benoist2016-01-311-2/+3
| |
* | [#1604] First draft to fix SensioLabsInsight reportNicolas Lœuillet2016-01-221-4/+0
|/
* Fix `findOneByUrl` side effect in testsJeremy Benoist2016-01-151-1/+1
| | | | Fix #1566
* updated testsNicolas Lœuillet2016-01-071-4/+2
|
* Added french translationsNicolas Lœuillet2016-01-051-2/+5
|
* Few phpDoc fixJeremy Benoist2016-01-031-1/+2
| | | | And some little mistakes
* Fix tag related test for PocketJeremy Benoist2016-01-031-2/+3
|
* Add tagged services for importJeremy Benoist2016-01-021-1/+17
| | | | | | | | | - list services in /import - add url to import service - ImportBundle routing are now prefixed by /import - optimize flush in each import (flushing each 20 contents) - improve design of each import - add more tests
* Rewrote Wallabag v1 importJeremy Benoist2016-01-021-4/+3
|
* Rewrote Pocket ImportJeremy Benoist2016-01-021-68/+86
| | | | | | | For the moment, we won't do a queue system, just a plain synchronous import. We also use ContentProxy to grab content for each article from Pocket. Error from Pocket are now logged using the logger. The ImportInterface need to be simple and not related to oAuth (not all import will use that method).
* First test on PocketImportJeremy Benoist2016-01-021-77/+74
| | | | Giving ability to define the Client add abitliy to easliy test the import.
* Update url & service nameJeremy Benoist2016-01-021-1/+8
| | | | | Prefix ur with service namel: [service]_[route name] Add comment in Interface
* Change the way to check for an existing entryJeremy Benoist2016-01-021-2/+2
| | | | The repository method return the entry found or false if nothing exists.
* - remove importers configurationNicolas Lœuillet2016-01-021-14/+10
| | | | - add check on userId for findOneByURL for entries