crivor / curator

0 stars 0 forks source link

Edition Engine #9

Open crivor opened 1 year ago

crivor commented 1 year ago

Create a table for Editions Editions should have a date for publication Generate weekly JSON blob of post information from the previous weeks posts randomly select a Featured, Streaker, Throwback create controller for editions create a view for current edition create view for viewing past editions

crivor commented 1 year ago

An edition defines a date range of a week, then gathers those posts from the DB. From there featured posts are selected, the remainer are printed in a list

so this should be a single call to the Posts table scoped by a date range, that way we can cache this call.

The Edition table will have the post id's of the posts to be featured along with the date range of all curated posts.

crivor commented 1 year ago

Will need a rake task that can be cron'd

eg. rails edition:create

crivor commented 1 year ago

Featured should be randomly chosen from the past week

Streaker should be chosen from the subset of posted this past week and the week prior

Throwback should be chosen randomly from people who posted between 1 and 2 months ago, but not in the past month.