Commit Graph

48 Commits

Author SHA1 Message Date
636fa17712 Default to 5 items 2024-04-24 16:39:46 -07:00
56b87672fd feat: increase daily upload limit 2024-04-16 00:49:26 +07:00
94db3e0de7 Add authorization with notion 2024-03-04 17:30:05 +08:00
d26a2f403d replace segment with posthog 2024-02-26 16:47:04 +08:00
be0a2e8c52 use different redis server for mq and cache 2024-01-26 13:01:53 +08:00
33c994ad5c Remove RSS feed task handler url as this handled with jobs now 2024-01-22 11:00:55 +08:00
3e291d1019 fix tests 2024-01-18 21:13:32 +08:00
dc4126d52c REvert some unneeded env changes 2024-01-17 16:15:00 +08:00
4df9b70c95 Fix for detecting environment 2024-01-16 21:30:17 +08:00
a8e8fe23da Remove azure config from backend 2024-01-16 21:30:17 +08:00
69eb22ae3c Remove some env vars that are not used 2024-01-16 21:30:17 +08:00
d31d309bc0 MOre on env parsing for k8s 2024-01-16 21:30:17 +08:00
5986bd0a68 Change around redis initialization so we can pull in secrets from secret manager async on startup 2024-01-16 21:30:15 +08:00
150a456c35 replace redis client library with ioredis 2024-01-16 15:42:50 +08:00
08c4624fce save the url in redis for 8 hours so rss-feeder will not try to re-save it 2024-01-04 18:03:34 +08:00
36896a8770 max rss feed defaults to 256 2023-12-11 13:18:43 +08:00
b135dfbc46 get max feed limit from env 2023-12-11 13:01:56 +08:00
58d5eb6bc0 create an API to create a cloud task for each active integration when the cronjob triggers 2023-10-30 14:41:52 +08:00
6db23ba05c Add intercom identity verification 2023-10-27 16:13:03 +08:00
46313b14ba set trust proxy = true if set in env var 2023-10-18 13:06:33 +08:00
50901d25a3 remove elastic url from env var 2023-10-09 13:00:30 +08:00
c008c3154d make reminder task url optional env var 2023-10-05 11:36:34 +08:00
c40e64773a convert to email api 2023-10-02 17:01:13 +08:00
68667053c8 create an endpoint to fetch all rss feeds 2023-07-07 21:15:42 +08:00
0c3fa2cdd4 feat: start a cloud task to set thumbnail and pre-cache all the images in the content 2023-06-06 11:56:31 +08:00
94d8903ec1 Add pocket integration support 2023-04-12 16:50:10 +08:00
5fd137d23e Add recommendation cloud task 2022-12-02 18:49:13 +08:00
319c0c4bcd Allow changing byline in update api 2022-11-24 16:25:27 +08:00
06c30e4f40 Add notification cloud run 2022-11-18 16:13:49 +08:00
e53d5036dc Add notification endpoint 2022-11-18 14:33:27 +08:00
a19ec8efea Hardcode queue name 2022-08-29 13:20:39 +08:00
e976c9e169 Add text-to-speech queue name and location to env 2022-08-29 11:47:01 +08:00
965ffb3013 Merge pull request #1065 from omnivore-app/feature/android-login
Android Login
2022-08-22 12:41:04 +08:00
1b46739a0d add sign in option for android client on server 2022-08-18 18:42:18 -07:00
77570aa5ab Synthesize text to speech with azure API 2022-08-18 19:24:36 +08:00
94f9dd9e6e Enqueue text to speech tasks 2022-08-18 19:23:41 +08:00
8aa7ccdd1e Add INTEGRATION_TASK_HANDLER_URL in env 2022-08-05 16:09:26 +08:00
dd2db71876 Add createIntegration API implementation 2022-08-05 16:08:20 +08:00
fe180c5b50 add confirm-email and password-reset email template id in env 2022-07-25 15:14:01 -07:00
d108806234 make sender address nullable env var 2022-07-25 15:12:55 -07:00
1346140a20 add sender email address in env 2022-07-25 15:12:55 -07:00
4c89323f0b Make the content fetch GCF URL nullable 2022-06-24 11:30:52 -07:00
92c8047a66 Update environment variable names in docker 2022-06-24 10:52:13 -07:00
e47415cf69 Add new environment variable for content-fetch url in gcf 2022-06-24 10:13:14 -07:00
27157006c1 use private bucket to upload page events (#244)
* use private bucket to upload page events

* fix tests

* add GCS_UPLOAD_PRIVATE_BUCKET in test env

* allow GCS_UPLOAD_PRIVATE_BUCKET to be empty
2022-03-16 14:39:07 +08:00
e652a6ea8c Rebased version of the elastic PR (#225)
* Add elastic to our docker compose

* add AND/OR/NOT search operations

* add elastic and create article in elastic

* change error code when elastic throws error

* add search pages in elastic

* add search by labels

* Add elastic to GitHub Action

* Update elastic version

* Fix port for elastic

* add url in search query

* Set elastic features when running tests

* add debug logs

* Use localhost instead of service hostname

* refresh elastic after create/update

* update search labels query

* add typescript support

* search pages in elastic

* fix search queries

* use elastic for saving page

* fix test failure

* update getArticle api to use elastic

* use generic get page function

* add elastic migration python script

* fix bulk helper param

* save elastic page id in article_saving_request instead of postgres article_id

* fix page archiving and deleting

* add tests for deleteArticle

* remove custom date type in elastic mappings which not exist in older version of elastic

* fix timestamp format issue

* add tests for save reading progress

* add tests for save file

* optimize search results

* add alias to index

* update migration script to receive env var as params

* Add failing test to validate we don't decrease reading progress

This test is failing with Elastic because we aren't fetching
the reading progress from elastic here, and are fetching it
from postgres.

* Rename readingProgress to readingProgressPercent

This is the name stored in elastic, so fixes issues pulling the
value out.

* Linting

* Add failing test for creating highlights w/elastic

This test fails because the highlight can't be looked up. Is there
a different ID we should be passing in to query for highlights,
or do we need to update the query to look for elastic_id?

* add tests code coverage threshold

* update nyc config

* include more files in test coverage

* change alias name

* update updateContent to update pages in elastic

* remove debug log

* fix createhighlight test

* search pages by alias in elastic

* update set labels and delete labels in elastic

* migration script enumeration

* make BULK_SIZE an env var

* fix pdf search indexing

* debug github action exit issue

* call pubsub when create/update/delete page in elastic

* fix json parsing bug and reduce reading data from file

* replace a depreciated pubsub api call

* debug github action exit issue

* debug github action exit issue

* add handler to upload elastic page data to GCS

* fix tests

* Use http_auth instead of basic_auth

* add index creation and existing postgres tables update in migration script

* fix a typo to connect to elastic

* rename readingProgress to readingProgressPercent

* migrate elastic_page_id in highlights and article_saving_request tables

* update migration script to include number of updated rows

* update db migration query

* read index mappings from file

* fix upload pages to gcs

* fix tests failure due to pageContext

* fix upload file id not exist error

* Handle savedAt & isArchived attributes w/out quering elastic

* Fix prettier issues

* fix content-type mismatching

* revert pageId to linkId because frontend was not deployed yet

* fix newsletters and attachment not saved in elastic

* put linkId in article for setting labels

* exclude orginalHtml in the result of searching to improve performace

* exclude content in the result of searching to improve performace

* remove score sorting

* do not refresh immediately to reduce searching and indexing time

* do not replace the backup data in gcs

* fix no article id defined in articleSavingRequest

* add logging of elastic api running time

* reduce home feed pagination size to 15

* reduce home feed pagination size to 10

* stop revalidating first page

* do not use a separate api to fetch reading progress

* Remove unused comment

* get reading progress if not exists

* replace ngram tokenizer with standard tokenizer

* fix tests

* remove .env.local

* add sort keyword in searching to sort by score

Co-authored-by: Hongbo Wu <hongbo@omnivore.app>
2022-03-16 12:08:59 +08:00
ca7b79d1ba Simplify docker compose setup for new users
This takes out some environment variables that are not needed
for new users testing out locally.

We also adjusted the port usage so docker-compose will use the
same ports that local dev typically uses.
2022-02-11 11:45:37 -08:00
84f32935f5 Open source omnivore 2022-02-11 09:24:33 -08:00