Commit 7fae2a3
docs(web/guides): fix basics + digging-deeper guide audit findings (group 5, un-gated) (#3130)
* docs(web/guides): fix basics + digging-deeper guide audit findings (un-gated group 5)
Behavioral-audit corrections, all source- or probe-verified:
basics/
- models-and-the-orm: correct the callbacks contract — afterFind on
query-returning finders receives row columns as arguments and
decorates by returning a struct; 'must be private' softened to the
actual convention (public works but leaks onto the model API)
- associations: caution that hasMany shortcut= is currently broken
(Wheels.AssociationNotFound on every advertised surface, #3109)
- validation-and-errors: drop the nonexistent validatesAssociated
helper; point at nested-properties validation instead
- forms-and-form-helpers: checkBox hidden companion renders AFTER the
box under name '<name>($checkbox)' and the dispatcher applies
uncheckedValue only when the real field is absent; labelPlacement
default is 'around', not 'before'
- index: replace the Phase 2 placeholder with a real section landing
page linking all 12 content pages
digging-deeper/
- background-jobs: rewrite worker/monitor/retry/purge sections around
the programmatic surface that exists (processQueue, queueStats,
retryFailed, purgeCompleted) — there is no 'wheels jobs' CLI (#3090)
- route-model-binding: silent skip on missing model applies only to
conventional binding; explicit binding="Name" rethrows (#3118)
- dependency-injection-usage: singleton cache is keyed by alias (not
component path) and names are case-insensitive (#3117)
- authentication-patterns: parenthesize the elvis in the format check
(unparenthesized form can never reach the JSON branch, #3116); fix
the hasStrategy rationale (registerStrategy replaces same-name
entries; duplicates cannot stack)
verify:docs exit 0 on every touched page; guides site builds clean.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Signed-off-by: Peter Amiri <peter@alurium.com>
* docs(web/guides): correct afterFind argument contract and job backoff retry count
Review findings on #3130:
- models-and-the-orm.mdx: object-mode afterFind callbacks DO receive the
record's properties as named arguments ($afterFindCallback invokes with
invokeArgs = properties()) and a returned struct is applied back via
setProperties(). Both finder modes now documented as receiving named
arguments and honoring a returned struct; the dual-branch
StructKeyExists example replaced with the portable return-a-struct
pattern.
- background-jobs.mdx: maxRetries counts total attempts
(currentAttempts < maxRetries in Job.cfc), so maxRetries=5 yields the
first run plus four retries at 4s/8s/16s/32s — the 64s retry never
fires. Reframed around attempts vs retries and expanded the
maxRetries=3 default parenthetical (retries at 4s and 8s).
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Signed-off-by: Peter Amiri <peter@alurium.com>
---------
Signed-off-by: Peter Amiri <peter@alurium.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>1 parent 5bddcd1 commit 7fae2a3
9 files changed
Lines changed: 198 additions & 66 deletions
File tree
- web/sites/guides/src/content/docs/v4-0-0
- basics
- digging-deeper
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
232 | 236 | | |
233 | 237 | | |
234 | 238 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
| 105 | + | |
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
165 | | - | |
| 165 | + | |
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 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 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
Lines changed: 20 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
165 | | - | |
| 165 | + | |
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
180 | | - | |
| 180 | + | |
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
| |||
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
203 | | - | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
204 | 221 | | |
205 | 222 | | |
206 | 223 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
174 | | - | |
| 174 | + | |
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| |||
340 | 340 | | |
341 | 341 | | |
342 | 342 | | |
343 | | - | |
| 343 | + | |
344 | 344 | | |
345 | 345 | | |
346 | 346 | | |
| |||
0 commit comments