Commit 5aaca19
authored
feat : instrument data access audit logs (#2054)
* feat: instrument applet:subject:view audit events
* feat: instrument applet:answer:view audit events
* feat: instrument applet:answer:assessment:view + applet:answer:identifier:view audit events
* feat: instrument applet:answer:note:view audit events
* feat: instrument applet:answer:export audit events
* fix: log submit_ids in curious_submit_id instead of curious_answer_id
* feat: log curious_subject_id wherever available for applet:subject:view
* feat: log curious_answer_id wherever available for applet:answer:* events
The branch already logged curious_answer_id for the answer:* endpoints
that have an answer_id in the URL. This commit covers the remaining
endpoints where answer_ids are reachable from the response or query
filters
* fix: move post-fetch processing inside try in applet_answers_export
* feat: address PR review comments - additional curious_* fields
* fix: use subjects_by_applet.get(applet_id) in error path and log curious_answer_id in submission assessment retrieve1 parent f49b95c commit 5aaca19
9 files changed
Lines changed: 1820 additions & 209 deletions
File tree
- src/apps
- answers
- crud
- domain
- tests
- subjects
- tests
- workspaces
- tests
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| 82 | + | |
82 | 83 | | |
83 | 84 | | |
84 | 85 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
458 | 458 | | |
459 | 459 | | |
460 | 460 | | |
| 461 | + | |
461 | 462 | | |
462 | 463 | | |
463 | 464 | | |
| |||
519 | 520 | | |
520 | 521 | | |
521 | 522 | | |
| 523 | + | |
522 | 524 | | |
523 | 525 | | |
524 | 526 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2121 | 2121 | | |
2122 | 2122 | | |
2123 | 2123 | | |
| 2124 | + | |
2124 | 2125 | | |
2125 | 2126 | | |
2126 | 2127 | | |
| |||
0 commit comments