Added the cron job to generate the trending rank every 5 minutes and remove timestamps older than 1 hour.
Added Trend generator script, for which I had to add a view list, a view list count and a ranking to the Stream model
Hooked the calls to the trending views which displays the ordered list with view counts.
Added logic to add view timestamp when view single is triggered
Added a cron job and accompanying script for user reports.
Modified "Trending" to update current user report preferences.
Created a "User" model to store the report preference variable. A user is created in the system after logging in if the user is non-existent.
Cleaned out some useless logging.
Notes:
Since I created a user model now, perhaps we can store the subscriptions there instead of the Stream. Up to you.
I haven't tested the mailing app by deploying but all the logging works out fine so I am trusting it for now. The emails are also kinda bare but figured it wasn't a huge deal breaker and we can make them fancier if we have extra time.
Added the cron job to generate the trending rank every 5 minutes and remove timestamps older than 1 hour.
Added Trend generator script, for which I had to add a view list, a view list count and a ranking to the Stream model
Hooked the calls to the trending views which displays the ordered list with view counts.
Added logic to add view timestamp when view single is triggered
Added a cron job and accompanying script for user reports.
Modified "Trending" to update current user report preferences.
Created a "User" model to store the report preference variable. A user is created in the system after logging in if the user is non-existent.
Cleaned out some useless logging.
Notes: