Commit ead40de
fix(notifications): address PR #2528 review comments
- Fix manifest ID not updated after notification create/update:
Set notificationState.NotificationManifest.ID = created.ID in the
WithOnSuccess callback so the manifest correctly persists the
API-assigned subscription ID after push.
- Write auto-filters back to local files after push:
Update notification.Filters = created.Filters in callback so the
API-assigned filters (including auto-populated branch.id,
job.component.id, job.configuration.id) are written back to
config.json after push via a local save in remote.UnitOfWork.Invoke().
- Remove unnecessary custom JSON marshaling from ConfigManifestWithRows:
Add MarshalJSON to NotificationManifest that outputs only {id, path},
removing the need for NotificationManifestRef wrapper struct and the
custom ConfigManifestWithRows.MarshalJSON method.
- Remove docs/notifications.md as requested by reviewer.
- Remove notification-specific subsections from CLI_OBJECT_LIFECYCLE.md
(Auto-Filter Behavior and Delete-Then-Create for Updates sections).
- Fix E2E test manifests to use %A wildcard for API-assigned IDs.
- Update E2E test out config.json files to include auto-filters.
- Add new E2E test notifications-create-with-filters to verify that
user-specified filters are combined with auto-populated filters.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 0b30b3a commit ead40de
File tree
37 files changed
+318
-429
lines changed- docs
- internal/pkg
- model
- service/cli
- docs
- state/remote
- test/cli/push
- notifications-create-with-filters
- in
- .keboola
- main
- extractor/ex-generic-v2/my-config
- notifications/sub-alert
- out
- .keboola
- main
- extractor/ex-generic-v2/my-config
- notifications/sub-alert
- notifications-create/out
- .keboola
- main/extractor/ex-generic-v2/my-config/notifications/sub-alert
- notifications-update/out
- .keboola
- main/extractor/ex-generic-v2/my-config/notifications/sub-123
37 files changed
+318
-429
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
350 | 350 | | |
351 | 351 | | |
352 | 352 | | |
353 | | - | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | | - | |
360 | | - | |
361 | | - | |
362 | | - | |
363 | | - | |
364 | | - | |
365 | | - | |
366 | | - | |
367 | | - | |
368 | | - | |
369 | | - | |
370 | | - | |
371 | | - | |
372 | | - | |
373 | | - | |
374 | | - | |
375 | | - | |
376 | | - | |
377 | | - | |
378 | | - | |
379 | | - | |
380 | | - | |
381 | | - | |
382 | | - | |
383 | | - | |
384 | | - | |
385 | | - | |
386 | 353 | | |
387 | 354 | | |
388 | 355 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
8 | | - | |
9 | 7 | | |
10 | 8 | | |
11 | 9 | | |
| |||
91 | 89 | | |
92 | 90 | | |
93 | 91 | | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | 92 | | |
100 | 93 | | |
101 | 94 | | |
102 | 95 | | |
103 | 96 | | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | 97 | | |
133 | 98 | | |
134 | 99 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
| 6 | + | |
| 7 | + | |
5 | 8 | | |
6 | 9 | | |
7 | 10 | | |
| |||
12 | 15 | | |
13 | 16 | | |
14 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
15 | 30 | | |
16 | 31 | | |
17 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | 21 | | |
23 | 22 | | |
24 | 23 | | |
| |||
0 commit comments