Commit Graph

17 Commits

Author SHA1 Message Date
54e4c04c31 Update issue templates 2022-03-23 14:16:36 -07:00
025276e7fd Update issue templates 2022-03-23 13:48:26 -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
ba8860bb70 Add link to license file, make more terse 2022-02-24 21:37:17 -08:00
960a6438ca Add a contributing file 2022-02-24 21:32:10 -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
55895ca334 Fixes for dependabot config
This requires a schedule interval and should use `npm` instead
of yarn.
2022-02-12 10:00:20 -08:00
175cfe2678 Add a dependabot configuration 2022-02-12 09:40:50 -08:00
76a8188b41 Create a CODEOWNERS file 2022-02-11 20:16:46 -08:00
e476769d11 Update graphql schema branch 2022-02-11 14:03:39 -08:00
91787fc5dd Use setup-node action to setup nodejs runtime 2022-02-11 12:59:39 -08:00
975b93a31b Run tests on ubuntu-latest 2022-02-11 12:56:00 -08:00
45e8671e3c Run tests on non-self-hosted runners 2022-02-11 12:52:52 -08:00
6045f98e55 Run tests on main branch
Update run-tests to work with the newly re-named main branch,
2022-02-11 12:30:22 -08:00
b19115d138 Add the root directory dot files 2022-02-11 09:56:51 -08:00