Commit d8d4ca3
authored
feat(schemas): namespace the case task (#1845)
`task` was claimed by three apps: planninq, pipelinq and this one. They share
`description`, `priority` and `status` — what any task-shaped record carries,
and nothing that identifies the record. planninq's project task is the largest
and keeps the bare slug; pipelinq's became `crmTask`.
WHAT THE SUITE FOUND THAT THE GREP DID NOT. The rename reached the descriptors,
the config-key map and every store call on the first pass, and the suite still
failed six times — twice for the same reason in two different places.
KpiAggregationService::ids() and DemoCaseloadGateway::schemaIds() each build a
LOCAL array keyed 'task' and hand it round as $ids['task']. Renaming the readers
without the builders left $ids['caseTask'] resolving to null, which surfaced as
a TypeError on a nullable argument three frames away, in a class that never
mentions the slug.
Then PHPStan caught the declared array shapes still saying `task: string` after
the builders moved.
Neither would ever appear in `grep -rn "'task'"`-shaped triage as a schema
reference: the array key is not the slug, it is just spelled like it. This is
the first rename tonight where the escaped sites were STRUCTURAL rather than
lexical.
tests/e2e/ci-seed.sh names the slug in its required-schema list and moved with
it — that list is checked after the import and exits BEFORE Playwright, so a
miss reports every spec as not run rather than as a failure.
Decoys left alone: `itemType` in WorkQueueService and the `type` key in
CaseReassignmentService, BulkReassignModal, taskApi and dashboardHelpers, all
row labels for mixed lists.
Full suite: 3,045 tests, 18,012 assertions, exit 0. phpcs, phpstan, psalm exit
0.1 parent 937f1e6 commit d8d4ca3
44 files changed
Lines changed: 172 additions & 84 deletions
File tree
- lib
- Repair
- Service
- Settings
- Support
- Settings
- openspec/changes/namespace-the-case-task
- specs/case-management
- src
- components
- flow
- tabs
- store
- modules
- views/widgets
- tests
- Unit
- Controller
- Flow
- Repair
- Service
- Settings
- Settings
- e2e
- helpers
- l10n
- vitest
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
72 | 76 | | |
73 | 77 | | |
74 | 78 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
| 95 | + | |
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
260 | | - | |
| 260 | + | |
261 | 261 | | |
262 | 262 | | |
263 | 263 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
195 | | - | |
| 195 | + | |
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
| |||
450 | 450 | | |
451 | 451 | | |
452 | 452 | | |
453 | | - | |
| 453 | + | |
454 | 454 | | |
455 | 455 | | |
456 | 456 | | |
457 | 457 | | |
458 | 458 | | |
459 | | - | |
| 459 | + | |
460 | 460 | | |
461 | 461 | | |
462 | 462 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
| 102 | + | |
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
| 89 | + | |
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13112 | 13112 | | |
13113 | 13113 | | |
13114 | 13114 | | |
13115 | | - | |
13116 | | - | |
| 13115 | + | |
| 13116 | + | |
13117 | 13117 | | |
13118 | 13118 | | |
13119 | 13119 | | |
| |||
22676 | 22676 | | |
22677 | 22677 | | |
22678 | 22678 | | |
22679 | | - | |
| 22679 | + | |
22680 | 22680 | | |
22681 | 22681 | | |
22682 | 22682 | | |
| |||
22695 | 22695 | | |
22696 | 22696 | | |
22697 | 22697 | | |
22698 | | - | |
| 22698 | + | |
22699 | 22699 | | |
22700 | 22700 | | |
22701 | 22701 | | |
| |||
22714 | 22714 | | |
22715 | 22715 | | |
22716 | 22716 | | |
22717 | | - | |
| 22717 | + | |
22718 | 22718 | | |
22719 | 22719 | | |
22720 | 22720 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1848 | 1848 | | |
1849 | 1849 | | |
1850 | 1850 | | |
1851 | | - | |
1852 | | - | |
| 1851 | + | |
| 1852 | + | |
1853 | 1853 | | |
1854 | 1854 | | |
1855 | 1855 | | |
| |||
9230 | 9230 | | |
9231 | 9231 | | |
9232 | 9232 | | |
9233 | | - | |
| 9233 | + | |
9234 | 9234 | | |
9235 | 9235 | | |
9236 | 9236 | | |
| |||
0 commit comments