Commit Graph

57 Commits

Author SHA1 Message Date
8904247620 add test 2023-06-09 18:58:41 +08:00
51032d2bf1 fix: test 2023-06-08 18:52:47 +08:00
ffaf33b73f fix test 2023-06-08 13:13:37 +08:00
130677b50c Add contentReader to the typeAheadSearchResult 2023-04-20 10:00:56 +08:00
9857af27e2 Add labels and state to createArticle API 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
e5ffd3f5bd Stop inserting search history to the DB in the search API 2023-04-05 11:45:39 +08:00
c52d2f0f56 Fix pageType to be null in updatesSince api response 2023-04-04 11:00:13 +08:00
9df1546323 Fix tests 2023-03-22 10:37:07 +08:00
e5f1f25a4d Allow scoping searches to site: 2023-03-14 18:26:45 +08:00
8a9a464e84 Add a test case for top position greater than bottom position 2023-03-10 12:56:00 +08:00
451ed1c70e Add test case for 0 2023-03-10 12:42:57 +08:00
bba0f69f62 Add top percentage to the reading position in API 2023-03-10 12:38:25 +08:00
eb1d8caa1c Add tests 2023-02-17 18:03:53 +08:00
bb5c104a42 Change archiveAll to bulkAction which allows deletion too 2023-02-02 21:26:37 +08:00
3b888bbb08 Make Async call to archive all 2023-02-01 18:50:10 +08:00
ea54b92a92 Update test 2023-02-01 18:10:47 +08:00
03ab96b7f8 Add archiveAll API 2023-02-01 18:05:16 +08:00
64fd0cfdc6 Add sort in updatesince api and default sorting by updatedAt in descending order 2022-11-25 11:44:55 +08:00
3a39ec55cc Delete user with right permission 2022-11-24 08:59:10 +08:00
e1de55bea0 Delete highlights, labels and other metadata when soft delete pages 2022-10-20 11:16:49 +08:00
14c87a1240 Merge pull request #1298 from omnivore-app/feature/add-popular-read-when-signup
feature/add popular read when signup
2022-10-13 13:13:13 +08:00
19d0d314db Fix tests 2022-10-12 18:05:17 +08:00
d4f32f7bdd Save search term in search history and update timestamp 2022-10-12 13:27:19 +08:00
25740465f2 Add timeout 2022-09-30 13:10:58 +08:00
0369eb7bea Set the "since" to be the exact time when the last page was added to ensure all the deletion happen after that 2022-09-29 15:36:18 +08:00
8070273dad Fix tests 2022-08-05 16:10:33 +08:00
977bd1deda Fix tests 2022-08-05 11:44:02 +08:00
446a9903e8 Fix tests 2022-07-29 21:22:55 +08:00
a9a88a21d2 Add integration tests for updatesSince API resolver 2022-07-29 18:11:52 +08:00
83f988bb35 Soft delete articles 2022-07-29 15:53:13 +08:00
c0f6ed11d5 disable pdf and upload testing temporarily because we do not have a bucket for testing 2022-07-14 19:13:51 +08:00
3efa10a362 fix typeahead search test 2022-07-14 18:25:20 +08:00
c87ddb68d3 disable saveFile temporarily because we do not have a bucket for testing 2022-07-14 18:11:31 +08:00
edd44fcafc fix get article test 2022-07-14 17:56:55 +08:00
2b94f3ef82 add test 2022-07-12 09:36:00 -07:00
59efc5fea7 Add test 2022-06-28 10:14:15 +08:00
eb34a40f1b Add test 2022-06-26 18:53:28 +08:00
e96d5552fa Fix search by is:read or is:unread getting empty result by using the correct property name 2022-06-23 12:35:48 +08:00
de09a36c1c Add readAt to api response 2022-06-15 09:42:38 +08:00
278d56baef Add createdAt and updatedAt attributes to article tests GQL 2022-06-03 12:03:24 -07:00
21ff9a5ae7 Add test for state=failed or processing 2022-05-04 21:42:59 +08:00
afe8b6e948 make savedAt a required field in page 2022-05-04 17:54:59 +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
7569e988bf upgrade typeorm to 3.0 (#359)
* upgrade typeorm to 3.0

* use new datasource object in typeorm 3

* fix tests

* fix tests

* migrate before creating connection

* fail the test if migration failed
2022-04-06 10:32:41 +08:00
e7203bebb5 add a function_resolver to return originalArticleUrl from article.url (#317)
* add a function_resolver to return originalArticleUrl from article.url

* add a test
2022-03-25 11:25:30 +08:00
af037a2837 make readingProgress required in the elastic page data (#253)
* make readingProgress required in the elastic page data

* delete readingProgress from function_resolvers because we have stored them in elastic
2022-03-17 10:06:21 +08:00
1c4dcd7b00 automatically update updatedAt when page is updated in elastic 2022-03-16 22:28:39 +08:00