8
16
Fork 22

WIP: Extract DbConn, Searcher & Worker into Riker Actors #813

Entwurf
igalic möchte 18 Commits von igalic/Plume:refactor/extract-actors nach main mergen

18 Commits (main)

Autor SHA1 Nachricht Datum
Ana Gelez 8aa4ae4302
Make tests compile again vor 4 Jahren
Mina Galić 56091c0d49
add UpdateDocument to list of SearcherActor messages
how did this even work?!
I've only been using UpdateDocument so far, and it wasn't listed!
vor 4 Jahren
Mina Galić d7e380f83e
remove Searcher from Post::update()
thereby decoupling the two systems (for updates, anyway)
That means, consumers of Post need to update_document themselves!
Post (in update) now only talks to the database)

Tests for this will now be failing, as they haven't been touched yet
vor 4 Jahren
Mina Galić 06e20299e0
use searcher_actor for posts update route (instead of post.update()) vor 4 Jahren
Mina Galić 94cf4dab98
add ActorSystem member to PlumeRocket vor 4 Jahren
Mina Galić 1dfad6469b
initialize Actor system in main, as well as SearcherActor vor 4 Jahren
Ana Gelez ee6a562404
Wrap Searcher in an Arc only in main vor 4 Jahren
Mina Galić 54496c1527
Implement an actor around Searcher
this compiles, but isn't used yet.
vor 4 Jahren
Mina Galić 4b0b03b848
plume-models: fix test compilation vor 4 Jahren
Ana Gelez f6d169567c
Introduce Searcher::new
This function does what was previously done in main:
create a search index, and try to recover for errors
if possible.

This commit also fixes plume-cli to use the new Searcher
API (that depends on a DbPool, not on a single Connection).
vor 4 Jahren
Ana Gelez eaad38ad2c
Avoid unwrapping, return an Error instead vor 4 Jahren
Mina Galić 962fbcc503
plume-model: refactor Searcher to have its own DbPool
this way, we don't need to pass along a conn into the function.
This should make splitting PlumeRocket up into its components a little
easier. This PR is another attempt at fixing #799.
vor 4 Jahren
Mina Galić f945e18bf1
Revert "Add an SearcherActor, wrapping Searcher & DbPool"
This reverts commit 0757f84397fc4d4ecba8a904e9d25f1b243b4292.
We'll attempt to use a strategy in #807
vor 4 Jahren
Mina Galić b92a877420
finish off the strategy document vor 4 Jahren
Mina Galić 046b5d0214
Add past attempts at solutions. vor 4 Jahren
Mina Galić 6935565efd
add design document describing current issues vor 4 Jahren
Mina Galić 5e17636b9d
Add an SearcherActor, wrapping Searcher & DbPool
and implement AddDocument message!
This code compiles, but hasn't been put to use yet.
vor 4 Jahren
Mina Galić d344e06efd
add riker as dependency, we will use it to replace searcher vor 4 Jahren