Commit 709c68c
authored
fix(ZMSKVR-1129 ZMSKVR-1134): add improve logging in zmscitizenapi and fix displayNumber for logged in bayern id citizens (#1779)
* feat(ZMSKVR-1129): add appointment process context to citizen API request logging (#1761)
* feat(ZMSKVR-1129): add appointment process context to citizen API request logging
- Log appointment processId from request/response across the citizen booking lifecycle
- Bundle process-related data under context.process (processId, officeId, scopeId, serviceId, subRequestCounts, displayNumber)
- Enable correlation of reserve/update/preconfirm/confirm/cancel/my-appointments calls by process
* refactor(ZMSKVR-1129): simplify process context extraction in LoggerService
* chore(ZMSKVR-1129): clean up LoggerService helpers
* feat(ZMSKVR-1129): expose scope displayNumberPrefix in citizen API and logging
* chore(logger): simplify process context extraction
* refactor(logger): extract process context logic into reusable helper
* fix(ZMSKVR-1129): tests
* chore(ZMSKVR-1129): suppress NPath complexity warnings for logger and facade methods
* chore(ZMSKVR-1129): simplify response body handling in logger
* chore(ZMSKVR-1129): stop logging displayNumber in process context
* chore(ZMSKVR-1129): log raw process id without prefix
* feat(ZMSKVR-1129): add displayNumber to request logging in zmscitizenapi (#1771)
* feat(ZMSKVR-1129): add appointment process context to citizen API request logging
- Log appointment processId from request/response across the citizen booking lifecycle
- Bundle process-related data under context.process (processId, officeId, scopeId, serviceId, subRequestCounts, displayNumber)
- Enable correlation of reserve/update/preconfirm/confirm/cancel/my-appointments calls by process
* refactor(ZMSKVR-1129): simplify process context extraction in LoggerService
* chore(ZMSKVR-1129): clean up LoggerService helpers
* feat(ZMSKVR-1129): expose scope displayNumberPrefix in citizen API and logging
* chore(logger): simplify process context extraction
* refactor(logger): extract process context logic into reusable helper
* fix(ZMSKVR-1129): tests
* chore(ZMSKVR-1129): suppress NPath complexity warnings for logger and facade methods
* chore(ZMSKVR-1129): simplify response body handling in logger
* chore(ZMSKVR-1129): stop logging displayNumber in process context
* chore(ZMSKVR-1129): log raw process id without prefix
* feat(ZMSKVR-1129): ensure displayNumber is assigned at reserved status
- Add displayNumber to ThinnedProcess model and schema
- Update MapperService to include displayNumber in mapping
- Add displayNumber to ProcessContextExtractor for logging
- Fix ProcessReserve to ensure scope preferences are loaded before displayNumber assignment
- Update shouldUpdateDisplayNumber to include reserved status
- Ensure displayNumber is consistently generated for reserve-appointment and update-appointment operations
* clean(ZMSKVR-1129): remove displayNumberPrefix from ThinnedScope
- Remove displayNumberPrefix property from ThinnedScope model
- Remove displayNumberPrefix from thinnedScope.json schema
- Remove displayNumberPrefix from MapperService mappings
- Remove displayNumberPrefix from ZmsApiFacadeService mappings
- Remove displayNumberPrefix from all test files
- Add cache/ to .gitignore
* clean(ZMSKVR-1129): comments from code
* fix(ZMSKVR-1129): tests
* clean(ZMSKVR-1129): remove unnecessary entity creation
* fix(ZMSKVR-1129): handle processing transition to avoid invalid callback
Add setStatusProcessing and map it in writeUpdatedStatus so processing transitions don’t hit a missing callback (call_user_func_array TypeError in zmsadmin call flow).
* fix(ZMSKVR-1134): show displayNumber in my appointments
* perf(ZMSKVR-1129): remove status update from processUpdate
* perf(ZMSKVR-1129): remove unneeded status update in processReserved
* fix(ZMSKVR-1134): use displayNumber in appointment detail breadcrumb and title
* fix(ZMSKVR-1134): pass displayNumber in URL for logged-out users
- Add ap-display query parameter to pass displayNumber in URL
- Update AppointmentCard and AppointmentView to include displayNumber in navigation URLs
- Update AppointmentDetailView to read and display displayNumber from URL when logged out
- Use processId for fetching when logged in, displayNumber for display
* clean(ZMSKVR-1129): remove unsupported locale parameter from ErrorMessages::get() call
* clean(ZMSKVR-1134): remove unused appointmentNumber parameter from goToAppointmentLink
* clean(ZMSKVR-1129): Remove unused method1 parent c34371b commit 709c68c
File tree
22 files changed
+194
-33
lines changed- zmscitizenapi
- src/Zmscitizenapi
- Models
- Services/Core
- tests/Zmscitizenapi/Controllers/Appointment
- zmscitizenview/src
- api/models
- components
- AppointmentDetail
- AppointmentOverview
- Appointment
- types
- utils
- zmsdb/src/Zmsdb
- zmsentities/schema
- citizenapi
22 files changed
+194
-33
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
| 52 | + | |
51 | 53 | | |
52 | 54 | | |
53 | 55 | | |
54 | | - | |
| 56 | + | |
55 | 57 | | |
56 | 58 | | |
57 | 59 | | |
| |||
71 | 73 | | |
72 | 74 | | |
73 | 75 | | |
| 76 | + | |
74 | 77 | | |
75 | 78 | | |
76 | 79 | | |
| |||
101 | 104 | | |
102 | 105 | | |
103 | 106 | | |
| 107 | + | |
104 | 108 | | |
105 | 109 | | |
106 | 110 | | |
| |||
Lines changed: 23 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
142 | 143 | | |
143 | 144 | | |
144 | 145 | | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
145 | 149 | | |
146 | 150 | | |
147 | 151 | | |
| |||
176 | 180 | | |
177 | 181 | | |
178 | 182 | | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
179 | 192 | | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
194 | 202 | | |
195 | | - | |
196 | 203 | | |
| 204 | + | |
197 | 205 | | |
198 | | - | |
199 | | - | |
200 | 206 | | |
201 | 207 | | |
202 | 208 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
424 | 424 | | |
425 | 425 | | |
426 | 426 | | |
| 427 | + | |
427 | 428 | | |
428 | 429 | | |
429 | 430 | | |
| |||
Lines changed: 79 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
140 | 143 | | |
141 | 144 | | |
142 | 145 | | |
| |||
322 | 325 | | |
323 | 326 | | |
324 | 327 | | |
325 | | - | |
| 328 | + | |
326 | 329 | | |
327 | 330 | | |
328 | 331 | | |
| |||
809 | 812 | | |
810 | 813 | | |
811 | 814 | | |
| 815 | + | |
| 816 | + | |
| 817 | + | |
812 | 818 | | |
813 | 819 | | |
814 | 820 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| 121 | + | |
121 | 122 | | |
122 | 123 | | |
123 | 124 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| 126 | + | |
126 | 127 | | |
127 | 128 | | |
128 | 129 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| 123 | + | |
123 | 124 | | |
124 | 125 | | |
125 | 126 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| 121 | + | |
121 | 122 | | |
122 | 123 | | |
123 | 124 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| 124 | + | |
124 | 125 | | |
125 | 126 | | |
126 | 127 | | |
| |||
0 commit comments