Ana Gelez
8aa4ae4302
Make tests compile again
il y a 4 ans
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!
il y a 4 ans
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
il y a 4 ans
Mina Galić
06e20299e0
use searcher_actor for posts update route (instead of post.update())
il y a 4 ans
Mina Galić
94cf4dab98
add ActorSystem member to PlumeRocket
il y a 4 ans
Mina Galić
1dfad6469b
initialize Actor system in main, as well as SearcherActor
il y a 4 ans
Ana Gelez
ee6a562404
Wrap Searcher in an Arc only in main
il y a 4 ans
Mina Galić
54496c1527
Implement an actor around Searcher
...
this compiles, but isn't used yet.
il y a 4 ans
Mina Galić
4b0b03b848
plume-models: fix test compilation
il y a 4 ans
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).
il y a 4 ans
Ana Gelez
eaad38ad2c
Avoid unwrapping, return an Error instead
il y a 4 ans
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 .
il y a 4 ans
Mina Galić
f945e18bf1
Revert "Add an SearcherActor, wrapping Searcher & DbPool"
...
This reverts commit 0757f84397fc4d4ecba8a904e9d25f1b243b4292.
We'll attempt to use a strategy in #807
il y a 4 ans
Mina Galić
b92a877420
finish off the strategy document
il y a 4 ans
Mina Galić
046b5d0214
Add past attempts at solutions.
il y a 4 ans
Mina Galić
6935565efd
add design document describing current issues
il y a 4 ans
Mina Galić
5e17636b9d
Add an SearcherActor, wrapping Searcher & DbPool
...
and implement AddDocument message!
This code compiles, but hasn't been put to use yet.
il y a 4 ans
Mina Galić
d344e06efd
add riker as dependency, we will use it to replace searcher
il y a 4 ans
trinity-1686a
9ec2d93f50
implement login via LDAP
...
Reviewed-on: #826
Reviewed-by: Mina Galić <me+git@igalic.co>
il y a 4 ans
Trinity Pointard
4da9b24cb1
cargo fmt
il y a 4 ans
Trinity Pointard
f40634aa97
address comments
il y a 4 ans
Trinity Pointard
ccba8163c9
fix compilation issue with cli
il y a 4 ans
Trinity Pointard
8975b0f9e9
cargo fmt
il y a 4 ans
Trinity Pointard
d626f3366d
add support for ldap
il y a 4 ans
Trinity Pointard
b24f195e10
refactor login
...
first step toward ldap
should have no functionnal change
il y a 4 ans
Mina Galić
003dcf861a
Merge pull request 'CSS Fix: My title is displayed at the wrong position on Webkit browsers' ( #825 ) from quentin/Plume:pr/flex into main
...
Reviewed-on: #825
Reviewed-by: Mina Galić <me+git@igalic.co>
il y a 4 ans
Quentin Dufour
5d8efa77a3
Fix title
il y a 4 ans
kiwii
fb6d49cc6e
Merge pull request 'GPU acceleration for the mobile menu' ( #818 ) from gpu-acceleration into main
...
Reviewed-on: #818
Reviewed-by: kiwii <kiwii@noreply@joinplu.me>
il y a 4 ans
Mina Galić
48776939f4
Merge branch 'main' into gpu-acceleration
il y a 4 ans
Marek Ľach
104b6c1d0c
GPU acceleration for the mobile menu
...
Reimplements #810 , but for all browsers.
il y a 4 ans
Mina Galić
3881927550
Merge pull request 'mobile-margins' ( #817 ) from mobile-margins into main
...
Reviewed-on: #817
Reviewed-by: Mina Galić <me+git@igalic.co>
il y a 4 ans
Ana Gelez
0bec13edc0
Improve responsiveness
il y a 4 ans
Ana Gelez
191d6da486
Move header-related style to _header.scss
...
It seems to fix the overflowing menu items on small screens too
il y a 4 ans
kiwii
9aaff1a484
Merge pull request 'Use result of local storage insert operation to suppress Clippy' ( #810 ) from KitaitiMakoto/Plume:suppress-clippy into main
...
Reviewed-on: #810
Reviewed-by: kiwii <kiwii@noreply@joinplu.me>
il y a 4 ans
Kitaiti Makoto
36fd55a7e4
Use result of local storage insert operation to suppress Clippy
il y a 4 ans
kiwii
fc474bf8d1
Merge pull request '[BUG FIX]Make it possible to switch to rich text editor' ( #808 ) from KitaitiMakoto/Plume:richtexteditor into main
...
Reviewed-on: #808
Reviewed-by: kiwii <kiwii@noreply@joinplu.me>
il y a 4 ans
Kitaiti Makoto
a050deb557
[BUG FIX]Make it possible to switch to rich text editor
il y a 4 ans
kiwii
6de9a1f1c8
Merge pull request 'Recreate search index if its format is outdated' ( #802 ) from KitaitiMakoto/Plume:invalid-index into main
...
Reviewed-on: #802
Reviewed-by: Mina Galić <me+git@igalic.co>
il y a 4 ans
Kitaiti Makoto
5e30bede40
Don't care about needless return value of closures
il y a 4 ans
Kitaiti Makoto
5cca66b346
Add action user can take to error message
il y a 4 ans
Kitaiti Makoto
484659fde2
Run cargo fmt
il y a 4 ans
Kitaiti Makoto
5fc827c1c9
Re-initialize search index when recreating is failed
il y a 4 ans
Kitaiti Makoto
50753b3a65
Recreate search index if its format is outdated
il y a 4 ans
Kitaiti Makoto
c5d03d300b
Cause IndexInvalidDataError when search index is invalid
il y a 4 ans
kiwii
010eac6c4a
Merge pull request 'upgrade rocket* to the latest stable' ( #800 ) from igalic/Plume:update/rocket into main
...
Reviewed-on: #800
Reviewed-by: kiwii <kiwii@noreply@joinplu.me>
il y a 4 ans
Mina Galić
a107d35492
upgrade rocket* to the latest stable
...
before we embark on upgrading to async, and all the refactoring that
this will bring on us (see #797 & #799 ), we should keep our `main`
branch as stable and current as possible.
Let's start by upgrading rocket and its dependencies.
il y a 4 ans
Kitaiti Makoto
f9beb2383b
Update lindera-tantivy to v0.1.3
il y a 4 ans
Chosto
7e78cffcaa
Bump Docker base images to buster flavor ( #797 )
il y a 4 ans
TheMasix
28576c1fa3
Add Vazir Font ( #787 )
...
* Add Vazir Font
* Add Vazir Font License
* fix prettier problem
* Shabnam added
il y a 4 ans
Gelez
d99b42582d
Add Persian to the list of languages ( #782 )
il y a 4 ans