Commit graph

1446 commits

Author SHA1 Message Date
f9e7d2bb23 Remove all instances before testing 2021-01-25 00:06:40 +09:00
dbf36ddf05 Cache fetched instance 2021-01-25 00:06:40 +09:00
8b00853e88 Make instance for search actor remote 2021-01-25 00:06:35 +09:00
84a3d53075 Use uri! macro to generate URI strings 2021-01-24 23:30:24 +09:00
7967dd91c2 Remove needless option; duplicated to env var 2021-01-24 23:30:24 +09:00
b5eb2628f9 Don't remove records after testing 2021-01-24 23:30:20 +09:00
4ef6561cc6 Extract login() from test function 2021-01-24 21:38:51 +09:00
7f54f418a8 Suppress clippy 2021-01-24 19:49:49 +09:00
8f90ea18bf Add tests for edit link presence 2021-01-24 19:37:49 +09:00
e12528aae4 Extract launch_rocket() from main() as public within crate scope 2021-01-24 19:28:05 +09:00
042a1fd2b0 Use Post::get_blog_fqn() in post_card template 2021-01-20 10:39:11 +09:00
be99fe5f99 Implement Post::get_blog_fqn() 2021-01-20 10:38:32 +09:00
4a212e5f9e Use soft tabs instead of hard tabs in SCSS files 2021-01-17 23:14:46 +09:00
c253bdee54 Show edit link in post cards 2021-01-17 23:14:46 +09:00
46fc030df4 Merge pull request 'Search Actor' (#870) from search-actor into main
Reviewed-on: Plume/Plume#870
2021-01-17 14:13:54 +00:00
02277b1ace Specify features on running migration on CI 2021-01-16 17:38:35 +09:00
ac507d1d42 Fix CI command 2021-01-16 16:50:57 +09:00
5148349098 Add changlog about actor and searcher 2021-01-16 16:44:39 +09:00
e817941cc5 Update pot 2021-01-16 16:44:20 +09:00
06962514fe Run database migration on CI 2021-01-16 16:39:12 +09:00
c3c8f6804b Remove transaction from test search::tests::search for CI 2021-01-16 16:39:12 +09:00
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