Commit Graph

6 Commits

Author SHA1 Message Date
Robin Olsen
72a2e8acf5 Metrics and logs - MongoDB Submission (#43)
Adds MongoDB-backed submission for survey statistics/metrics and introduces MongoDB ObjectID-based participant/task identifiers to support upserts and linking metrics to a participant.

It introduces breaking changes to the exsisting json stat and metric files. Delete the old ones

Changes:

Add internal/storage/MongoStorage and wire pm survey submit / pm start to submit local .pm/*.json files to MongoDB.
Extend stats/metrics models to include MongoDB _id / participant_id fields and add participant ID propagation into task metrics.
Update app initialization to generate ObjectIDs for new participants and expose GetParticipantID() via StatsService.
2026-03-10 14:09:31 +01:00
Robin Olsen
0cb45d811d remove button clicks as we have user actions 2026-03-03 11:52:34 +01:00
Robin Olsen
6726445159 define stat and metrics model 2026-03-02 23:07:25 +01:00
Robin Olsen
ba0115d1bc lots of changes and reducing dependency imports 2026-02-28 16:39:50 +01:00
Robin Olsen
4225d202bb add statistics storage 2026-01-31 21:07:09 +01:00
Robin Olsen
a3a1d71325 first commit 2026-01-31 16:00:23 +01:00