Commit Graph

59 Commits

Author SHA1 Message Date
45986184c4 tidy 2024-06-27 17:12:45 +08:00
7abb396032 remove stub 2024-04-05 22:53:03 +08:00
46e3936a85 resolve conflicts after rebasing 2024-04-05 17:13:10 +08:00
8af2bb076c rename send mail functions 2024-04-05 16:59:20 +08:00
c37b31dcb6 fix tests 2024-04-05 16:57:02 +08:00
8d11096142 fix tests 2024-04-04 12:38:41 +08:00
1f4f68530f add tests for filters 2024-04-03 16:59:50 +08:00
8b848912c9 fix tests 2024-02-22 12:03:58 +08:00
5a9dc344d3 fix rebase conflicts 2023-10-05 14:30:35 +08:00
669cddeec8 fix some rls issue 2023-10-05 14:30:10 +08:00
cea5f790d8 fix some tests 2023-10-05 14:30:09 +08:00
50bfc1fa74 fix tests 2023-10-05 14:29:23 +08:00
06000264d2 replace saveEmail 2023-10-05 14:22:58 +08:00
fc52b522f2 fix test 2023-10-05 14:22:58 +08:00
9370951893 create a repository directory 2023-10-05 14:22:56 +08:00
425864ce01 remove knex 2023-10-05 14:21:56 +08:00
852d0e8977 Remove specific filters. 2023-09-02 00:26:30 +02:00
08d7f4842d Add Theming, add test. 2023-09-01 17:42:19 +02:00
61967fdde5 fix test 2023-07-26 18:07:25 +08:00
6fd550fa6c delete chai/required-should from import statements 2023-07-24 21:15:31 +08:00
e512ba0bad Fix tests 2023-04-24 18:04:18 +08:00
42dc3f7330 Fix some external requests not being mocked 2023-04-12 17:04:59 +08:00
9857af27e2 Add labels and state to createArticle API 2023-04-12 17:04:59 +08:00
f740d70608 Add test case 2023-04-12 10:46:45 +08:00
83c62c65a3 Add test for saving received email 2023-01-19 10:44:08 +08:00
7dbf8662fc Fix test 2023-01-19 09:38:21 +08:00
8f9c317dd1 Save received email before publishing data 2023-01-18 22:35:07 +08:00
d5e3a29fd6 Fix test 2023-01-18 15:08:28 +08:00
397233054b Dont clear content display reports before running test (this was just there for debug) 2023-01-11 11:15:37 +08:00
706c4dea18 Dont try to clean up content display reports when running tests 2023-01-11 10:51:46 +08:00
3bff5fe7f8 Add a test for the content display report service 2023-01-11 10:51:46 +08:00
1837f31906 Add tests 2023-01-09 16:52:54 +08:00
e6b56e6fba Rename groups service 2022-12-05 14:12:04 +08:00
3a39ec55cc Delete user with right permission 2022-11-24 08:59:10 +08:00
6ca8b3610b Fix nock imports 2022-11-21 22:39:10 +08:00
4966af354a Add some nocks for failing URL tests 2022-11-21 22:39:10 +08:00
19d0d314db Fix tests 2022-10-12 18:05:17 +08:00
73bf695cf3 Add function to get highlight start location 2022-08-05 16:08:20 +08:00
53fd7f52df delete user after testing 2022-07-25 15:14:01 -07:00
bab96aaa1e remove membership from user 2022-07-25 15:14:01 -07:00
9ea9bd9ea1 send confirmation email to pending user when login 2022-07-25 15:14:01 -07:00
068684d16b add test for failing to send confirmation email when signup 2022-07-25 15:12:56 -07:00
d284a3d302 fake sendMail in sign up test 2022-07-25 15:12:56 -07:00
638294e17b fake sendMail in testing 2022-07-25 15:12:56 -07:00
b52043bd95 add a test to check if use has a pending status after creation 2022-07-25 15:12:55 -07:00
dfd6d3b602 Fix save newsletter email test 2022-05-19 18:12:58 +08:00
1b8850ed33 Fix tests 2022-05-12 17:41:11 +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
ccedec7703 Make sure we refresh the elastic index when running tests 2022-04-04 21:21:57 -07:00