Commit Graph

56 Commits

Author SHA1 Message Date
4e582fb55d Improving Self-Hosting and Removing 3rd Party dependencies. (#4513)
* fix: Library Header layout shift

* Bump Github Actions versions.

* Self-Hosting Changes

* Fix Minio Environment Variable

* Just make pdfs successful, due to lack of PDFHandler

* Fix issue where flag was set wrong

* Added an NGINX Example file

* Add some documentation for self-hosting via Docker Compose

* Make some adjustments to Puppeteer due to failing sites.

* adjust timings

* Add start of Mail Service

* Fix Docker Files

* More email service stuff

* Add Guide to use Zapier for Email-Importing.

* Ensure that if no env is provided it uses the old email settings

* Add some instructions for self-hosted email

* Add SNS Endpoints for Mail Watcher

* Add steps and functionality for using SES and SNS for email

* Uncomment a few jobs.

* Added option for Firefox for parser. Was having issues with Chromium on Docker.

* Add missing space.

Co-authored-by: Russ Taylor <729694+russtaylor@users.noreply.github.com>

* Fix some wording on the Guide

* update browser extension to handle self-hosted instances

* add slight documentation to options page

* Fix MV

* Do raw handlers for Medium

* Fix images in Medium

* Update self-hosting/GUIDE.md

Co-authored-by: Mike Baker <1426795+mbaker3@users.noreply.github.com>

* Update Guide with other variables

* Add The Verge to JS-less handlers

* Update regex and image-proxy

* Update self-hosting/nginx/nginx.conf

Co-authored-by: Mike Baker <1426795+mbaker3@users.noreply.github.com>

* Update regex and image-proxy

* Update self-hosting/docker-compose/docker-compose.yml

Co-authored-by: Mike Baker <1426795+mbaker3@users.noreply.github.com>

* Fix Minio for Export

* Merge to main

* Update GUIDE with newer NGINX

* Update nginx config to include api/save route

* Enable Native PDF View for PDFS

* Enable Native PDF View for PDFS

* feat:lover packages test

* feat:working build

* feat:alpine build

* docs:api dockerfile docs

* Write a PDF.js wrapper to replace pspdfkit

* Revert changes for replication, set settings to have default mode

* build folder got removed due to gitignore on pdf

* Add Box shadow to pdf pages

* Add Toggle for Progress in PDFS, enabled native viewer toggle

* Update node version to LTS

* Update node version to LTS

* Fix Linting issues

* Fix Linting issues

* Make env variable nullable

* Add touchend listener for mobile

* Make changes to PDF for mobile

* fix(android): change serverUrl to selfhosted first

* feat:2 stage alpine content fetch

* feat:separated start script

* fix:changed to node 22

* Add back youtube functionality and add guide

* trigger build

* Fix cache issue on YouTube

* Allow empty AWS_S3_ENDPOINT

* Allow empty AWS_S3_ENDPOINT

* Add GCHR for all images

* Add GCHR For self hosting.

* Add GCHR For self hosting.

* Test prebuilt.

* Test prebuilt

* Test prebuilt...

* Fix web image

* Remove Web Image (For now)

* Move docker-compose to images

* Move docker-compose files to correct locations

* Remove the need for ARGS

* Update packages, and Typescript versions

* Fix

* Fix issues with build on Web

* Correct push

* Fix Linting issues

* Fix Trace import

* Add missing types

* Fix Tasks

* Add information into guide about self-build

* Fix issues with PDF Viewer

---------

Co-authored-by: keumky2 <keumky2@woowahan.com>
Co-authored-by: William Theaker <wtheaker@nvidia.com>
Co-authored-by: Russ Taylor <729694+russtaylor@users.noreply.github.com>
Co-authored-by: David Adams <david@dadams2.com>
Co-authored-by: Mike Baker <1426795+mbaker3@users.noreply.github.com>
Co-authored-by: m1xxos <66390094+m1xxos@users.noreply.github.com>
Co-authored-by: Adil <mr.adil777@gmail.com>
2025-01-27 13:33:16 +01:00
9e54427d5d update github action 2024-08-21 12:24:35 +08:00
ae4e7b4b97 set lock_timeout while running migrations in github action too 2024-06-19 11:55:49 +08:00
5f11726bd5 set lock_timeout while running migrations 2024-06-19 11:52:22 +08:00
6c102b02ac skip building docker images in test ci 2024-06-19 11:08:30 +08:00
664cbe5c35 build tts docker image in github action 2024-05-01 15:13:25 +08:00
0af866ceb4 Fix action that validates image build 2024-03-04 09:56:19 +08:00
2ffb69d4f6 Remove extra chunk 2024-02-21 14:12:51 +08:00
1233e4083b Fix indentation 2024-02-21 14:11:14 +08:00
45a2824a89 Keep building the gcf docker image 2024-02-21 14:02:13 +08:00
cab239b748 Only build public images on merge 2024-02-21 14:00:46 +08:00
ad069089ed Clean up actions file 2024-02-21 13:32:46 +08:00
cb115ef591 Create public docker images 2024-02-21 13:25:13 +08:00
5e883cb2ba running worker in the test 2024-01-31 17:45:49 +08:00
f8440cc328 add timeout to the step 2023-11-08 15:55:24 +08:00
2d7c20eac7 Merge pull request #3014 from omnivore-app/feature/delete-user-cron
feat: create an api for the cronjob trigger which cleans up the soft deleted users
2023-10-25 21:10:03 +08:00
cd0b8a5fc2 fix ci 2023-10-25 15:04:29 +08:00
bbb8ffa918 Remove debugging info in workflow 2023-10-24 11:53:19 +01:00
c4773dc904 Landing page improvements and various supporting improvements 2023-10-24 09:43:39 +01:00
0b7da62aca debug 2023-10-09 21:34:52 +08:00
1c93a20581 remove elastic docker image from github action 2023-10-09 12:50:46 +08:00
0583eeb1f9 disable database query logs in github action 2023-10-09 12:49:07 +08:00
6cf56113ec Fix job name 2023-10-09 12:18:13 +08:00
30082f32b8 Use large runners for tests 2023-10-09 12:05:13 +08:00
2444a1b907 Run lint separately from tests in github action
Attempting to make the github action output a little more
manageable.
2023-10-09 10:38:00 +08:00
e95fa07457 fix github ci 2023-10-05 14:30:37 +08:00
1009f856a3 add pgvector in github action 2023-10-05 14:30:37 +08:00
0efb5e4d77 Update node version in github runner 2023-07-24 15:55:11 +08:00
992a78e173 add dockerfile 2023-06-01 16:29:30 +08:00
8a89a47c16 fix: testcases 2023-06-01 16:11:35 +08:00
ea737f1c4f Add HOST option in psql cmd 2022-11-24 08:59:12 +08:00
f43ad01b89 Set PGPASSWORD in env to call psql without password prompt 2022-11-24 08:59:12 +08:00
b59db0629d Add ELASTIC_URL in migration 2022-11-24 08:59:12 +08:00
a3d536fcf1 Separate migrations from test 2022-11-24 08:58:20 +08:00
cffa5bb9ea Build content-fetch-gcf docker image in github action 2022-11-16 10:15:49 +08:00
f607215826 Add build docker images in github action 2022-10-07 16:56:38 +08:00
94631f934e upgrade elastic to 7.17.1 in github action 2022-07-14 16:53:40 +08:00
f170a61a43 Build the content-fetch docker image in github action 2022-05-12 15:59:08 +08:00
a269ba2707 reduce logs 2022-04-05 23:20:32 +08:00
0b5acd941d continue on error in github action 2022-04-05 23:12:17 +08:00
8db808c110 test running services 2022-04-05 17:05:15 +08:00
a2dc73b3c0 make a separate step for testing 2022-04-05 16:49:14 +08:00
ed76093c40 continue on error in github action 2022-04-05 16:40:41 +08:00
1489ca5231 Specify file 2022-04-04 08:45:16 -07:00
b9300d3f30 Avoid shorthand flag syntax in build scripts 2022-04-04 08:44:00 -07:00
bc7767bec1 Build docker images in GitHub 2022-04-04 08:42:32 -07: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
9d85269bc8 Use the pull_request on event for GH Actions 2022-02-14 15:56:12 -08:00
551b48ffa7 Remove the graphql inspector tests
This requires a token permission that we do not have enabled anymore. We can try running something similar in a container.
2022-02-13 21:58:04 -08:00
dc9c375dab Use pull_request_target instead of pull_request for tests
This should allow downstream forks to execute the graphql tests.
2022-02-13 20:27:04 -08:00