Skip to content

WIP: Keywords & Pagination

CSDUMMI requested to merge Simple_Series_of_Posts into master

This gives each author the ability to set keywords for their content and users can now search the feed for content by keywords, title and content. It also paginates the feed. This means that at all times only 20 Posts are loaded at once and you can go through them by clicking on a link at the bottom of the page. This is especially important as we are soon approaching the first 50 posts and it is soon going to be slower to load all those posts at once.

Technical Description

There is a new (optional) field of CSV in the Message table, that is a list of all the keywords and it is checked, if this string contained the search query. For pagination, I used the peewee utility function called: paginate and a query parameter.

Merge request reports