Optimization `PR#3` - Home page counters
@ mention of reviewers`
@Didayolo`
A brief description of the purpose of the changes contained in this PR.
- Home page counters are now dynamic and are read from home_page_counters.json file
- latest counts are updated every 24 hours
Issues this PR resolves
- #1327 -> Home page counters
A checklist for hand testing
-
after deployment check that the script runs every 24 hours and the counters and time are updated in the json file and on the wbesite
Manual intervention
Manually starting the counting task:
docker compose exec django ./manage.py shell_plus
from analytics.tasks import update_home_page_counters
eager_results = update_home_page_counters.apply_async()
Checklist
-
Code review by me -
Hand tested by me -
I'm proud of my work -
Code review by reviewer -
Hand tested by reviewer -
CircleCi tests are passing -
Ready to merge