Commit Graph

15 Commits

Author SHA1 Message Date
Robin Olsen
e23d0155df inject mongodb uri inside the binary and os 2026-03-13 12:33:09 +01:00
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
4842d30aab change repl and status command to use callback 2026-03-04 22:44:01 +01:00
Robin Olsen
5a8b9fc9fb print the checks 2026-03-04 17:50:00 +01:00
Robin Olsen
4bb4dac4fd add mongodb for submitting metrics and stats 2026-03-04 13:24:48 +01:00
Robin Olsen
aabce0b0b2 refactor to use app package instead of service
refactor app to be composable
2026-02-28 23:30:31 +01:00
Robin Olsen
ba0115d1bc lots of changes and reducing dependency imports 2026-02-28 16:39:50 +01:00
Robin Olsen
697b17e890 fix bug where using a issue command in the repl would crash a task 2026-02-28 11:39:05 +01:00
Robin Olsen
8cdaf93f26 add completions to survey 2026-02-28 10:44:41 +01:00
Robin Olsen
e00b201a77 add bash completion to os for survey and pm commands 2026-02-26 20:26:15 +01:00
Robin Olsen
c769c901cf serve static assets from embeded filesystem. add build files for lazyos 2026-02-26 10:33:46 +01:00
Robin Olsen
d83422104b add the pm command to survey cli
use command context to store app service
2026-02-25 21:57:30 +01:00
Robin Olsen
8decd74952 make tasks use map instead of slice 2026-02-23 13:13:34 +01:00
Robin Olsen
235b07f7ce use registry for interfaces also
add list interfaces command
2026-02-22 22:58:04 +01:00
Robin Olsen
33c8c05ae3 refactor to decouple commands form entrypoint for reusability and centralizing commands.
Increase reusability and composition
2026-02-22 19:46:55 +01:00