Commit 877d2cf
feat(notifications): notify users of their own actions by default (#909)
* feat(notifications): notify users of their own actions by default
Users requested notifications for their own actions as a personal
record/reminder in their inbox. This changes the default behavior
of createNotification to include the actor in the recipient list.
Changes:
- notifications.ts: Set includeActor default to true
- issues.ts: Remove redundant includeActor: true flags (now default)
- issues.test.ts: Remove includeActor from test expectations
- Integration tests: Add explicit includeActor: false to tests that
specifically test actor exclusion or recipient preference behavior
- database-queries.test.ts: Fix invalid UUID that was using
"some-other-user-id" instead of a valid UUID format
Fixes #849
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* test: add test for new includeActor default behavior
Addresses Copilot review feedback: adds a test that verifies
actors ARE notified by default when includeActor is not specified.
This ensures the new default behavior is properly tested.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>1 parent 8203051 commit 877d2cf
File tree
5 files changed
+54
-8
lines changed- src
- lib
- services
- test/integration
5 files changed
+54
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
108 | 107 | | |
109 | 108 | | |
110 | 109 | | |
| |||
144 | 143 | | |
145 | 144 | | |
146 | 145 | | |
147 | | - | |
148 | 146 | | |
149 | 147 | | |
150 | 148 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
199 | | - | |
200 | 199 | | |
201 | 200 | | |
202 | 201 | | |
| |||
282 | 281 | | |
283 | 282 | | |
284 | 283 | | |
285 | | - | |
286 | 284 | | |
287 | 285 | | |
288 | 286 | | |
| |||
506 | 504 | | |
507 | 505 | | |
508 | 506 | | |
509 | | - | |
510 | 507 | | |
511 | 508 | | |
512 | 509 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
277 | 277 | | |
278 | 278 | | |
279 | 279 | | |
280 | | - | |
| 280 | + | |
| 281 | + | |
281 | 282 | | |
282 | 283 | | |
283 | 284 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
| |||
77 | 78 | | |
78 | 79 | | |
79 | 80 | | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
80 | 128 | | |
81 | 129 | | |
82 | 130 | | |
| |||
127 | 175 | | |
128 | 176 | | |
129 | 177 | | |
| 178 | + | |
130 | 179 | | |
131 | 180 | | |
132 | 181 | | |
| |||
186 | 235 | | |
187 | 236 | | |
188 | 237 | | |
| 238 | + | |
189 | 239 | | |
190 | 240 | | |
191 | 241 | | |
| |||
0 commit comments