Feature/better stats
Closes https://gitlab.com/JOGL/JOGL/-/issues/950
Reset the database and set up some data.
> Challenge.first.active!
> Activity.create!(service_id: Service.first.id, id: FFaker::Guid.guid.to_s.upcase, category: :event, name: FFaker::Game.title)
GET /api/spaces/1
You will see the activities count, challenges count, and programs count are all 1. Activity
is a model so we don't want to call all of these things activities. To get the activities you were describing, just add all three.
GET /api/programs/1
You will see challenges count is 1.
Edited by LucaH