Commit Graph

96 Commits

Author SHA1 Message Date
eb34a40f1b Add test 2022-06-26 18:53:28 +08:00
aae9d7e382 Fix test 2022-06-24 10:13:14 -07: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
5d4c8f00e5 Fix test 2022-06-09 12:38:25 -07:00
70d655f591 Add an uploadFileTest to verify GCS URLs are used for file:// objects 2022-06-09 12:25:58 -07:00
98bc1470b5 Add a test for upload file requests 2022-06-09 12:22:41 -07:00
cc2b492c16 Fix tests 2022-06-09 12:38:09 +08:00
520ce0077b Add refresh index method 2022-06-09 12:34:22 +08:00
309c581cf5 Merge pull request #729 from omnivore-app/labels-in-highlights
Support labels in highlights
2022-06-09 09:28:43 +08:00
a981e13c86 Add test case for deleteLabel 2022-06-08 17:01:38 +08:00
145867fe05 Add test for setLabelsForHighlight resolver 2022-06-08 15:25:11 +08:00
9655a87bab Add test for set Labels For Highlight data access method 2022-06-06 19:15:10 +08:00
791e31d60f Merge pull request #750 from omnivore-app/OMN-633
Reopening OMN-633 to rebase
2022-06-03 13:36:36 -07:00
278d56baef Add createdAt and updatedAt attributes to article tests GQL 2022-06-03 12:03:24 -07:00
89164a353f Merge pull request #723 from omnivore-app/fix/tweet-not-saved
Fix tweet not saved
2022-06-02 11:20:40 +08:00
304fe70113 Fix tests 2022-06-01 10:30:23 +08:00
d42b0c244c fixed merge conflicts 2022-05-30 12:29:49 +00:00
fa9c5b3efe Add test for list api keys 2022-05-27 18:36:18 +08:00
b7206457b4 Add test for revoke api key 2022-05-27 18:36:17 +08:00
333b0259ba Fix tests 2022-05-27 18:33:49 +08:00
a09588d3a7 Update generateApiKey resolver 2022-05-27 18:33:49 +08:00
9981e506e4 mock webhook request 2022-05-26 15:12:11 +08:00
49de17bea5 Fix tests 2022-05-26 14:52:01 +08:00
26681e5ecd Add get/list/delete webhook resolver tests 2022-05-26 14:52:01 +08:00
a75ce3c44d Add get/list/delete webhook resolver 2022-05-26 14:52:00 +08:00
cc07c00a83 Add get/list/delete webhook gql schema 2022-05-26 14:51:11 +08:00
c9c6f83e65 Add tests for trigger endpoint 2022-05-26 14:51:11 +08:00
c84668e6b0 Remove debug log 2022-05-26 14:51:11 +08:00
7157f38738 Add test 2022-05-26 14:51:11 +08:00
d704fad2ff Merge pull request #701 from omnivore-app/feature/add-popular-reads
API to add recommended (popular) reads to a users library
2022-05-24 21:09:24 -07:00
f4c65d7fe1 Merge pull request #698 from omnivore-app/sort-by-publish-time
Support sort or filter by publish time
2022-05-25 10:41:49 +08:00
2b14d51ec6 API to add recommended (popular) reads to a users library
This API is used in onboarding
2022-05-24 12:05:39 -07:00
aad8539b43 Fix tests 2022-05-24 18:39:21 +08:00
75728cc144 fixing diff 2022-05-24 07:04:54 +00:00
dfd6d3b602 Fix save newsletter email test 2022-05-19 18:12:58 +08:00
444c21ad09 Fix labels test 2022-05-19 18:12:14 +08:00
34349e925c Add unit test 2022-05-19 16:36:35 +08:00
1b8850ed33 Fix tests 2022-05-12 17:41:11 +08:00
93ed1936f0 Remove jsdom in packages/api 2022-05-10 17:12:52 +08: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
d1c2721b95 Add expiration date to api key generation (#495)
* Add exp to jwt token

* Add expiredAt in generate api key input

* Check exp in claim

* Add tests
2022-04-28 09:09:40 +08:00
1117a0c575 Feature/subscription list resolver (#432)
* add subscriptions table

* add listSubscriptions schema

* add listSubscriptions resolver
2022-04-19 11:08:43 +08:00
3befff61af fix tests 2022-04-14 13:22:21 +08:00
0b0b521fab use generic method for uploading 2022-04-13 22:21:20 +08:00
782781639d Update API in test 2022-04-12 12:53:08 -07: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
2ebdaba780 add generate api key api and test (#392)
* add generate api key api and test

* test if user can make api call with the api key
2022-04-12 12:11:45 +08:00