Plume/plume-models/src
fdb-hiroshima 006b44f580 Add support for generic timeline (#525)
* Begin adding support for timeline

* fix some bugs with parser

* fmt

* add error reporting for parser

* add tests for timeline query parser

* add rejection tests for parse

* begin adding support for lists

also run migration before compiling, so schema.rs is up to date

* add sqlite migration

* end adding lists

still miss tests and query integration

* cargo fmt

* try to add some tests

* Add some constraint to db, and fix list test

and refactor other tests to use begin_transaction

* add more tests for lists

* add support for lists in query executor

* add keywords for including/excluding boosts and likes

* cargo fmt

* add function to list lists used by query

will make it easier to warn users when creating timeline with unknown lists

* add lang support

* add timeline creation error message when using unexisting lists

* Update .po files

* WIP: interface for timelines

* don't use diesel for migrations

not sure how it passed the ci on the other branch

* add some tests for timeline

add an int representing the order of timelines (first one will be on
top, second just under...)
use first() instead of limit(1).get().into_iter().nth(0)
remove migrations from build artifacts as they are now compiled in

* cargo fmt

* remove timeline order

* fix tests

* add tests for timeline creation failure

* cargo fmt

* add tests for timelines

* add test for matching direct lists and keywords

* add test for language filtering

* Add a more complex test for Timeline::matches, and fix TQ::matches for TQ::Or

* Make the main crate compile + FMT

* Use the new timeline system

- Replace the old "feed" system with timelines
- Display all timelines someone can access on their home page (either their personal ones, or instance timelines)
- Remove functions that were used to get user/local/federated feed
- Add new posts to timelines
- Create a default timeline called "My feed" for everyone, and "Local feed"/"Federated feed" with timelines

@fdb-hiroshima I don't know if that's how you pictured it? If you imagined it differently I can of course make changes.

I hope I didn't forgot anything…

* Cargo fmt

* Try to fix the migration

* Fix tests

* Fix the test (for real this time ?)

* Fix the tests ? + fmt

* Use Kind::Like and Kind::Reshare when needed

* Forgot to run cargo fmt once again

* revert translations

* fix reviewed stuff

* reduce code duplication by macros

* cargo fmt
2019-10-07 19:08:20 +02:00
..
search Add support for generic timeline (#525) 2019-10-07 19:08:20 +02:00
timeline Add support for generic timeline (#525) 2019-10-07 19:08:20 +02:00
admin.rs Make a distinction between moderators and admins (#619) 2019-09-13 12:28:36 +02:00
api_tokens.rs Run 'cargo fmt' to format code (#489) 2019-03-20 17:56:17 +01:00
apps.rs Remove Canapi (#540) 2019-04-28 22:17:21 +01:00
blog_authors.rs Avoid panics (#392) 2018-12-29 09:36:07 +01:00
blogs.rs Add support for generic timeline (#525) 2019-10-07 19:08:20 +02:00
comment_seers.rs Run 'cargo fmt' to format code (#489) 2019-03-20 17:56:17 +01:00
comments.rs Add support for generic timeline (#525) 2019-10-07 19:08:20 +02:00
config.rs Theming (#624) 2019-08-21 00:42:04 +02:00
db_conn.rs Add support for generic timeline (#525) 2019-10-07 19:08:20 +02:00
follows.rs Add support for generic timeline (#525) 2019-10-07 19:08:20 +02:00
headers.rs Add unit tests for main model parts (#310) 2018-11-24 12:44:17 +01:00
inbox.rs Add support for generic timeline (#525) 2019-10-07 19:08:20 +02:00
instance.rs Add support for generic timeline (#525) 2019-10-07 19:08:20 +02:00
lib.rs Add support for generic timeline (#525) 2019-10-07 19:08:20 +02:00
likes.rs Add support for generic timeline (#525) 2019-10-07 19:08:20 +02:00
lists.rs Add support for generic timeline (#525) 2019-10-07 19:08:20 +02:00
medias.rs Add support for generic timeline (#525) 2019-10-07 19:08:20 +02:00
mentions.rs Improve notification management (#561) 2019-05-04 17:15:41 +02:00
migrations.rs import migrations and don't require diesel_cli for admins (#555) 2019-04-29 16:30:20 +02:00
notifications.rs delete notification on user deletion (#658) 2019-09-13 11:29:52 +02:00
password_reset_requests.rs Store password reset requests in database (#610) 2019-06-04 19:55:17 +01:00
plume_rocket.rs Add some feedback when performing some actions (#552) 2019-04-30 11:04:25 +01:00
post_authors.rs Avoid panics (#392) 2018-12-29 09:36:07 +01:00
posts.rs Add support for generic timeline (#525) 2019-10-07 19:08:20 +02:00
reshares.rs Add support for generic timeline (#525) 2019-10-07 19:08:20 +02:00
safe_string.rs Hide cw pictures behind a summary/details (#483) 2019-04-06 19:20:33 +02:00
schema.rs Add support for generic timeline (#525) 2019-10-07 19:08:20 +02:00
tags.rs cache local instance (#572) 2019-05-10 21:59:34 +01:00
users.rs Add support for generic timeline (#525) 2019-10-07 19:08:20 +02:00