Commit 487a197
test(lint,service-automation): replace out-of-grammar
12 test fixtures spelled a flow start node's `triggerType` as
`record-created`, which is outside the closed grammar the record-change
trigger maps:
/^record-(before|after)-(create|insert|update|delete|write)$/
(triggerTypeToHookEvents, packages/triggers/trigger-record-change)
The token is missing its phase segment, so it maps to ZERO hook events —
the exact shape `flow-trigger-unknown-event` reports, and an `error`
since #5762.
Nothing is red today: all three test files call their own rule directly
(`validateFlowTemplatePaths` / `validateReferenceIntegrity` / the runtime
expand integration) and none routes through `validateFlowTriggerReadiness`,
which is not a `REFERENCE_INTEGRITY_RULES` member. This is a corpus fix,
not a defect fix: fixtures are read as examples, and a token the platform's
own lint calls "never fires" appearing 12 times in-repo teaches the wrong
spelling to anyone (and any AI) reading the tests.
`triggerType` is inert at all 12 sites — every fixture flow declares
`type: 'record_change'`, so `isRecordTriggered` returns from its first
branch without reading the token, and no assertion in any of the three
files names `triggerType`. No assertion changes.
Refs #5762, #3427.
Fixes #5957
Claude-Session: https://claude.ai/code/session_01F8q5J1MQyocgtNspb15fSn
Co-authored-by: Claude <noreply@anthropic.com>record-created fixture token with record-after-create (#6636)1 parent 9f22801 commit 487a197
3 files changed
Lines changed: 12 additions & 12 deletions
File tree
- packages
- lint/src
- services/service-automation/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
194 | | - | |
| 194 | + | |
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
| 120 | + | |
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
161 | | - | |
| 161 | + | |
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
179 | | - | |
| 179 | + | |
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
| |||
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
200 | | - | |
| 200 | + | |
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
| |||
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
221 | | - | |
| 221 | + | |
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
| |||
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
250 | | - | |
| 250 | + | |
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
| |||
330 | 330 | | |
331 | 331 | | |
332 | 332 | | |
333 | | - | |
| 333 | + | |
334 | 334 | | |
335 | 335 | | |
336 | 336 | | |
| |||
360 | 360 | | |
361 | 361 | | |
362 | 362 | | |
363 | | - | |
| 363 | + | |
364 | 364 | | |
365 | 365 | | |
366 | 366 | | |
| |||
399 | 399 | | |
400 | 400 | | |
401 | 401 | | |
402 | | - | |
| 402 | + | |
403 | 403 | | |
404 | 404 | | |
405 | 405 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
0 commit comments