Commit Graph

45 Commits

Author SHA1 Message Date
3759e10615 fix feed url in pdf file not saved 2023-12-08 11:29:02 +08:00
fd781644f1 feat: fetch content for rss feed items in following folder 2023-11-23 18:03:25 +08:00
adf13131db add folder to library_item table 2023-11-10 17:34:46 +08:00
9dfc5f856d rename variables 2023-11-09 19:00:57 +08:00
ffac5c195d update comment 2023-11-09 16:13:31 +08:00
b7496db56c add following handler to save following item 2023-11-09 15:53:44 +08:00
efdbc4f345 use interpolated string or dictionary parameter in logs 2023-10-05 14:32:03 +08:00
3b8b48bc21 fix recovered deleted items still shown in trash 2023-10-05 14:31:07 +08:00
4ff5484d8e change item_type to text 2023-10-05 14:31:06 +08:00
2b9a6b26f6 debug test error 2023-10-05 14:30:37 +08:00
5a9dc344d3 fix rebase conflicts 2023-10-05 14:30:35 +08:00
1bade22076 fix file uploading 2023-10-05 14:28:52 +08:00
3f572ea89a fix typo 2023-10-05 14:27:52 +08:00
b1899e340d replace library item 2023-10-05 14:25:10 +08:00
c655f78f8c replace highlight 2023-10-05 14:24:28 +08:00
381e9bc173 replace database subscriber with db trigger 2023-10-05 14:24:05 +08:00
fc52b522f2 fix test 2023-10-05 14:22:58 +08:00
9370951893 create a repository directory 2023-10-05 14:22:56 +08:00
425864ce01 remove knex 2023-10-05 14:21:56 +08:00
5f6be169bd add savedAt and publishedAt to saveUrl api 2023-08-14 17:10:34 +08:00
99a52f8d56 replace all the console logs with logger logs 2023-07-27 16:06:44 +08:00
1006cdad36 reduce error log size 2023-07-25 19:11:08 +08:00
1f283e6122 add optional locale and timezone to saveUrl request for puppeteer to use 2023-07-11 16:15:32 +08:00
7c0c4eaa40 fix: type error 2023-06-27 21:05:00 +08:00
ed8287df19 remove tracking params from tweet url 2023-06-27 17:49:31 +08:00
bb359d9747 save normalized url 2023-06-27 16:58:57 +08:00
ceaa7b0356 refresh index after altering the page state or adding/removing/updating labels/highlights 2023-06-15 11:37:09 +08:00
bce7afde50 Eagerly load profile of the user 2023-04-24 12:53:40 +08:00
014dc773e3 Fix labels not saved correctly by saveUrl 2023-04-12 17:04:59 +08:00
c07ada0218 resolve conflicts 2023-04-12 17:04:59 +08:00
abd42f7064 Add labels and state to saveUrl API 2023-04-12 16:50:11 +08:00
ce273b5172 Add test case for archives page and saves labels in savePage API 2023-04-12 16:50:11 +08:00
bc9ba1d976 Reset state to processing when creating articles 2023-03-21 13:05:00 +08:00
fc662dd2d5 Return existing slug if page exists 2023-03-17 11:37:59 +08:00
d816ee9563 Allow image and media to be loaded in puppeteer 2023-02-13 16:50:39 +08:00
0cabd26344 Dont send the normalized URL to the content-fetch service
URLs need to be sent to contentFetch exactly as they
were received, this is because many apps will use signed URLs
for PDFs being served from GCP or AWS. A signed URL needs to
keep all its query params in the same order to validate.
2022-05-26 21:40:40 -07:00
9e3db0e053 Fix a bug to have multiple pages with the same url in lib 2022-05-04 19:12:22 +08:00
afe8b6e948 make savedAt a required field in page 2022-05-04 17:54:59 +08:00
9048ccbab3 Show failed pages in library 2022-05-04 12:46:57 +08:00
80d0146f72 Show unable to parse if page is failed to save within 30 seconds 2022-05-04 11:55:16 +08:00
2b70d480d2 Remove article saving request (#493)
* Add state and taskName in elastic page mappings

* Add state and taskName in elastic page interface

* Create page with PROCESSING state before scrapping

* Update createArticleRequest API

* Fix tests

* Add default state for pages

* Update createArticle API

* Update save page

* Update save file

* Update saving item description

* Show unable to parse content for failed page

* Fix date parsing

* Search for not failed pages

* Fix tests

* Add test for saveUrl

* Update get article saving request api

* Update get article test

* Add test for articleSavingRequest API

* Add test for failure

* Return new page id if clientRequestId empty

* Update clientRequestId in savePage

* Update clientRequestId in saveFile

* Replace article with slug in articleSavingRequest

* Add slug in articleSavingRequest response

* Depreciate article

* Use slug in web

* Remove article and highlight fragments

* Query article.slug on Prod

* Show unable to parse description for failed page

* Fix a bug having duplicate pages when saving the same url multiple times

* Add state in response

* Rename variables in removeArticle API

* Rename state

* Add state in response in web

* Make state an enum

* Open temporary page by link id

* Use an empty reader view as the background for loading pages

* Progressively load the article page as content is loaded

* Add includePending flag in getArticles API

* Set includePending = true in web

* Add elastic update mappings in migration script

* Add elastic mappings in docker image

* Move index_settings.json to migrate package

* Remove elastic index creation in api

* Move elastic migrations to a separate directory

* Remove index_settings from api docker image

Co-authored-by: Jackson Harper <jacksonh@gmail.com>
2022-04-29 13:41:06 +08:00
ae0d1dd2ee Feature/search highlights backend (#395)
* add highlight mappings

* return highlight in resolvers

* temporarily skip highlight tests

* add test for getting highlights

* update merge highlight

* separate elastic methods

* roll back merge highlight test

* add highlight to elastic script

* update delete highlight in elastic

* migrate highlight data from postgres to elastic

* rescue not found exception when page is not found in the migration script

* exclude highlights in searching pages results

* search pages with highlights only with has:highlight query

* add search endpoint to search pages or highlights

* reduce code smell in search api

* fix rebase error

* fix tests

* add test for search highlight

* add test for new search endpoint

* add labels to search results

* update schema

* update search query

* fix update/share highlights

* fix rebase error

* fix tests

* add highlight model in elastic

* add savedAt and publishedAt date range in search query

* add sort by updated and recently read

* fix tests

* close db connection when tests are done

* test github action

* revert github action test

* fix rebase error

* add docker-compose for api-test

* remove unused env

* remove highlights with no page attached to

* allow get_articles resolver to search for query so we can merge it without web changes
2022-04-12 12:31:08 +08:00
acec3b1acb Use lower priority queue for large imports
* add a count query in elastic
  * if priority is not set, check the rate limit of user's libary
    - if 5 articles added in the last minute: use low queue
    - default: use normal queue
2022-03-22 18:08:08 +08:00
be7e36ffed Use the validateUrl method to validate URLs 2022-03-07 14:34:32 -08:00
84f32935f5 Open source omnivore 2022-02-11 09:24:33 -08:00