Commit graph

1325 commits

Author SHA1 Message Date
6dd730030d Wrap Post in PostEvent with Arc
See https://github.com/riker-rs/riker/issues/153
2021-01-16 16:39:12 +09:00
6c1dd6608d Add test for search actor 2021-01-16 16:39:12 +09:00
42fb0cf825 Use pattern match instead of unwrap() 2021-01-16 16:39:12 +09:00
2483303138 SearchActor waits for transaction commit 2021-01-16 16:39:12 +09:00
47e67d9b64 Add methods to clear data of instances and users table for testing 2021-01-16 16:39:12 +09:00
1d042e1bb2 Add methods to clear data of instances and users table for testing 2021-01-16 16:39:12 +09:00
31418b1079 Fix search::tests::search to use searcher directly instead of actor 2021-01-16 16:39:12 +09:00
68d79bfa9c Publish PostUpdated only when the post is published 2021-01-16 16:39:12 +09:00
a46b718937 Ignore search::tests::search 2021-01-16 16:39:12 +09:00
5570494a37 Update pot 2021-01-16 16:39:12 +09:00
a0cd9dd6bd Fix tests to follow API changes 2021-01-16 16:39:12 +09:00
cd5895d560 Update pot 2021-01-16 16:39:11 +09:00
fc8ee1c3bc Remove searcher from arguments of Post::delete() and dependented methods 2021-01-16 16:38:18 +09:00
2a8cc5f3ba Send event to channel when post deleted 2021-01-16 16:36:14 +09:00
82524c9dca Update pot 2021-01-16 16:35:27 +09:00
864379fb81 Remove searcher from arguments of Post::update() 2021-01-16 16:34:36 +09:00
aae2073146 Send event to channel when post updated 2021-01-16 16:33:29 +09:00
69963689f9 Update pot 2021-01-16 16:33:29 +09:00
6ad3359609 Remove searcher from arguments of Post::insert() 2021-01-16 16:25:36 +09:00
6a2ba2260d Send event to channel when post published 2021-01-16 16:25:36 +09:00
ccbf2124cb Run cargo fmt 2021-01-16 16:22:39 +09:00
a733ece26e Suppress clippy 2021-01-16 16:22:39 +09:00
16624fd742 Run cargo fmt 2021-01-16 16:22:39 +09:00
e18be6ec95 Initialize SearchActor at start 2021-01-16 16:22:39 +09:00
1bfed0294f Define SearchActor::init() 2021-01-16 16:22:39 +09:00
d4d32bcc11 Define ACTOR_SYS and POST_CHAN 2021-01-16 16:22:39 +09:00
0a148721de Define SearchActor 2021-01-16 16:22:39 +09:00
cfe097edf4 Define PostEvent 2021-01-16 16:22:39 +09:00
578768d7df Remove unnecessary attribute to suppress clippy 2021-01-16 16:22:39 +09:00
996dc309f7 Make Searcher::open_or_create() accept path and tokenizers 2021-01-16 16:22:38 +09:00
09d9164a1c Extract Searcher::open_or_recreate() from main() 2021-01-16 16:22:38 +09:00
43f32d30cb Add once_cell to dependdencies 2021-01-16 16:22:38 +09:00
b1d7b3969d Add Riker to dependencies 2021-01-16 16:20:49 +09:00
89fa208bec Update CHANGELOG (#881)
Update CHANGELOG

Co-authored-by: Kitaiti Makoto <KitaitiMakoto@gmail.com>
Reviewed-on: Plume/Plume#881
2021-01-16 05:49:12 +00:00
a11205324b Merge pull request 'Upgrade Tantivy to 0.13.3' (#878) from upgrade-tantivy into main
Reviewed-on: Plume/Plume#878
2021-01-16 05:40:14 +00:00
7d17b12000 Upgrade lindera-tantivy to 0.7.1 2021-01-16 13:34:15 +09:00
885dcf91fe Remove redundant imports 2021-01-16 12:53:05 +09:00
192c0f8efd Remove unused lifetime 2021-01-16 12:21:49 +09:00
35e71b0f8a Replace string range access with strip_prefix() 2021-01-16 12:20:21 +09:00
1a24ba44b2 Remove redundant imports 2021-01-16 12:12:13 +09:00
7c00d4a88a Remove no-landing-pads option from CI environment 2021-01-16 12:03:56 +09:00
476310a217 Update plume.pot 2021-01-16 01:15:48 +09:00
26ffde726f Run cargo fmt 2021-01-16 01:13:45 +09:00
3fd89e6b48 Remove unnecessary wraps 2021-01-16 01:05:42 +09:00
be939cf169 Suppress clippy 2021-01-16 00:59:07 +09:00
4a15bef34f Impl From<ListType> for i32 instead of Into<i32> for ListType 2021-01-16 00:49:34 +09:00
6eee4b0b65 Define custom errors 2021-01-16 00:43:41 +09:00
f720dcbe9a Remove underscore prefix from route methods to suppress clippy 2021-01-15 23:58:48 +09:00
33fceddc08 Use is_empty() instead of comparing with "" 2021-01-15 23:25:07 +09:00
dfe83aafc5 Replace as_ref().map() with as_deref() 2021-01-15 23:21:33 +09:00