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
Ine Maria Nilssen Aanonsen
e64950879d
FIXED COMMENTS. TASK BACKLOG REFINEMENT ISSUE
2026-03-06 21:04:58 +01:00
Ine Maria Nilssen Aanonsen
68054f7409
TASK BACKLOG REFINEMENT ISSUE
2026-03-06 12:52:13 +01:00
Robin Olsen
2fc612c7c7
update coding task to align with spec and improve expetion handling
2026-03-05 12:03:13 +01:00
Robin Olsen
28add3f4dd
(hotfix) simplify expetion logic
2026-03-05 11:36:09 +01:00
Robin Olsen
4a023caebb
(hotfix) Align create issue task with new spec
2026-03-05 11:22:01 +01:00
Robin Olsen
7d2c00c582
update coding task for better readability
2026-03-04 17:50:24 +01:00
Robin Olsen
a907de5b94
Update cmd/pm/tasks/codingTask.go
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2026-03-04 17:33:48 +01:00
Robin Olsen
4f70142316
Update cmd/pm/tasks/codingTask.go
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2026-03-04 17:33:30 +01:00
Robin Olsen
1f51336288
Update cmd/pm/tasks/codingTask.go
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2026-03-04 17:33:18 +01:00
Robin Olsen
003fae4193
Update cmd/pm/tasks/codingTask.go
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2026-03-04 17:33:08 +01:00
Robin Olsen
f0025f8929
Update cmd/pm/tasks/codingTask.go
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2026-03-04 17:32:55 +01:00
Robin Olsen
077cbc96e8
Update cmd/pm/tasks/codingTask.go
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2026-03-04 17:32:37 +01:00
Robin Olsen
817dbc57b7
Update cmd/pm/tasks/codingTask.go
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2026-03-04 17:32:13 +01:00
Robin Olsen
c3bbcfd832
update coding task to alignt with latest iteration
2026-03-04 15:14:45 +01:00
Robin Olsen
6b1bdde561
Merge branch 'main' into Metrics-and-Logs
2026-03-04 14:32:54 +01:00
Robin Olsen
a47ff2a39b
Update cmd/pm/tasks/createIssue.go
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2026-03-04 14:21:13 +01:00
Robin Olsen
81a046e935
Update cmd/pm/tasks/createIssue.go
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2026-03-04 14:20:47 +01:00
Robin Olsen
77b38692c6
align task with description
...
add a complete with message in case we need that
2026-03-04 14:00:35 +01:00
Robin Olsen
763f079063
refactor for separation of concern for better readabiliy and maintainability
2026-03-03 11:41:07 +01:00
Robin Olsen
e8d9f9d1b6
need this for issue id completion
2026-03-03 10:50:15 +01:00
Robin Olsen
c36599c96a
reduce deps
2026-03-03 10:46:37 +01:00
Robin Olsen
5ebe95b62f
add metrics to tasks
2026-03-02 23:09:49 +01:00
Robin Olsen
04191b5a97
we need app
2026-03-02 23:09:03 +01:00
Robin Olsen
cb10aeff6b
(hotfix) make sure app is initialized only when we need it
2026-03-02 11:41:57 +01:00
Robin Olsen
447f97ec3e
Update cmd/pm/init.go
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2026-03-01 20:54:17 +01:00
Robin Olsen
9612cb9338
refactor to make cli better and simplify the code
2026-03-01 20:42:56 +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
ba4d3df669
refactor names and minimize dependencies
2026-02-28 22:17:55 +01:00
Robin Olsen
ba0115d1bc
lots of changes and reducing dependency imports
2026-02-28 16:39:50 +01:00
Moira Daniella A Sebastian
d721bba29f
Fix comment commands, comments reads multiple words, fix user as author, and implemented a function to list comments
2026-02-25 13:10:42 +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
Robin Olsen
118e67dbf4
refactor services to use Interface and change name to app
2026-02-22 16:16:09 +01:00
Robin Olsen
ba4394ecdc
construct structs
2026-02-12 19:59:05 +01:00
Robin Olsen
12748ede00
use new rootCmd name var
2026-02-05 13:25:34 +01:00