about summary refs log tree commit diff
path: root/src/db.rs
AgeCommit message (Collapse)AuthorFilesLines
2018-04-17 chore(license): Relicense under AGPL-3.0-or-laterVincent Ambo1-8/+10
Relicense the project from the standard GPL3 to the Affero version of the license, requiring source code disclosure for modifications made on instances of Converse that are serving users over the network.
2018-04-16 style(db): Fix whitespace errorVincent Ambo1-1/+1
2018-04-16 fix(db): Explicitly order posts in a threadVincent Ambo1-2/+5
2018-04-15 feat(handlers): Implement post editing handlerVincent Ambo1-2/+2
Implements a handler that receives the edit form result and updates the database accordingly if the user identity matches.
2018-04-15 feat(db): Support UpdatePost messageVincent Ambo1-0/+23
Simple message intended to be used for post editing.
2018-04-15 feat(db): Support GetPost messageVincent Ambo1-0/+16
Very simple message that retrieves a post from the DB.
2018-04-15 refactor: Add a message!-macro to reduce message boilerplateVincent Ambo1-24/+6
2018-04-15 refactor(templates/render): Add generic post editing templateVincent Ambo1-2/+2
Adds a generic template that can be used for submitting, responding to and editing posts.
2018-04-14 chore(db): Arbitrarily limit search result sizeVincent Ambo1-0/+1
... until pagination is in place.
2018-04-14 feat(main/db): Schedule regular search view refreshVincent Ambo1-0/+21
Schedules refreshes of the database view used for search at one-minute intervals.
2018-04-14 feat(db): Implement handling of 'SearchPosts' messageVincent Ambo1-1/+40
Adds support for executing full-text search across a forum instance by sending the `SearchPosts` message with a search query to the DB actor. The struct used for results is mapped manually to the expected query result as the query is embedded via raw SQL.
2018-04-14 feat(db): Add view for ordering thread index by most recent postVincent Ambo1-5/+4
This implements the classic thread ordering expected by most forum users (i.e. the thread with the most recent post is at the top).
2018-04-14 feat: License project under GPLv3Vincent Ambo1-0/+16
2018-04-14 refactor(db): Store thread body in the posts tableVincent Ambo1-5/+26
This is a simplification over the previous approach. The OP of a thread is just a normal post like any other in this model, which allows some code simplifications (and future query convenience).
2018-04-09 fix(db): Order index threads in descending post timeVincent Ambo1-1/+3
Technically the last post date should matter more here, but we'll get there.
2018-04-08 feat(db/models): Add handling of CreatePost messageVincent Ambo1-2/+23
2018-04-08 feat(db): Support CreateThread messageVincent Ambo1-0/+22
2018-04-08 refactor(db): Use ConverseError instead of unwrapping/expectingVincent Ambo1-10/+8
2018-04-08 refactor(db): Establish Post->Thread associationVincent Ambo1-2/+6
This makes it possible to query posts by thread via Diesel.
2018-04-08 feat(db): Add initial GetThread messageVincent Ambo1-0/+22
Adds a GetThread message that returns a thread by ID. This does not yet load posts.
2018-04-08 feat(db): Implement ListThreads messageVincent Ambo1-1/+23
Implements support for a message for listing threads. This does not have any pagination support yet.
2018-04-08 feat(db): Bootstrap DbExecutor actorVincent Ambo1-0/+13
Bootstraps an Actix actor carrying DB connections. This actor will be used to interact with converse's database.