Commit d3dc877
fix(view): surface paginationLinks() deprecation at runtime and in upgrade check (#2727)
* fix(view): surface paginationLinks() deprecation at runtime and in upgrade check
paginationLinks() has been documented as deprecated in favor of
paginationNav() since #1930 but the deprecation was a roadmap statement
only — no runtime signal, no upgrade-check coverage. 3.x → 4.0 upgraders
could finish the migration without ever learning the helper is on its
way out.
Two surfaces:
1. vendor/wheels/view/links.cfc — paginationLinks() now writes a
one-time per-request WriteLog(type="warning", ...) pointing at
paginationNav() and the individual composables. Guarded by
request.wheels.$paginationLinksDeprecationLogged so a paginated
view rendering the helper many times still only logs once. Pattern
mirrors $checkPluginsDeprecation() in Plugins.cfc.
2. cli/lucli/Module.cfc — adds a 3.x → 4.x grep check for
paginationLinks( in app/views, with a remediation pointer to
paginationNav() and the composable helpers. Now visible via
`wheels upgrade check --to=4.0.0`.
Spec at vendor/wheels/tests/specs/view/paginationLinksDeprecationSpec.cfc
asserts both surfaces — the runtime guard flag is set on first call
and preserved on subsequent calls, and the upgrade-scanner block in
Module.cfc contains the paginationLinks grep target.
Fixes #2714
Signed-off-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
* docs(web/guides): note paginationLinks() runtime warning and upgrade-check coverage
Signed-off-by: wheels-bot[bot] <wheels-bot[bot]@users.noreply.github.com>
Signed-off-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
* chore(web): refresh visual baseline(s) (blog)
Manually triggered baseline refresh via the
refresh-visual-baselines.yml workflow on the PR's branch.
Run when an intentional content/layout change makes the visual-regression
check fail. The new PNG(s) under web/tests/visual-baselines/ are now the
expected rendering; re-run the failing visual-regression job to flip the
check green.
* fix(cli): address PR #2727 review — remove dead CLAUDE.md ref, dedup test
Reviewer A's required-before-merge items on #2727:
1. `cli/lucli/Module.cfc` — the `fix` string in the new `paginationLinks`
upgrade check referenced `CLAUDE.md ## Pagination View Helpers`. End
users running `wheels upgrade check --to=4.0.0` against their own app
have no `CLAUDE.md` from this repo. Replace with the public GitHub
issue URL. Remove the adjacent NOTE about doubling `##` — it was only
relevant while the `fix` string contained `##1930`, and the URL form
no longer needs the doubling.
2. `vendor/wheels/tests/specs/view/paginationLinksDeprecationSpec.cfc` —
the upgrade-check coverage `it()` duplicated the block-extraction
boilerplate (`expandPath`, `find("currentMajor <= 3...")`, etc.) that
already lives in `UpgradeCheckCoverageSpec.cfc`. Move the assertion
into that spec as one more `it()` alongside the other 3.x → 4.x
coverage checks, and trim the deprecation spec down to the runtime
warning tests only.
Reviewer B's adjacent point (multi-line comment blocks per CLAUDE.md's
"one short line max" rule): collapse the 5-line block in
`vendor/wheels/view/links.cfc`, the 7-line preamble in `Module.cfc`,
and the 18-line header in `paginationLinksDeprecationSpec.cfc`.
Refs #2714, #2727.
Signed-off-by: Peter Amiri <peter@alurium.com>
---------
Signed-off-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
Signed-off-by: wheels-bot[bot] <wheels-bot[bot]@users.noreply.github.com>
Signed-off-by: Peter Amiri <peter@alurium.com>
Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Peter Amiri <peter@alurium.com>1 parent ce47c80 commit d3dc877
7 files changed
Lines changed: 68 additions & 2 deletions
File tree
- cli/lucli
- vendor/wheels
- tests/specs
- cli
- view
- view
- web/sites/guides/src/content/docs
- v4-0-0/upgrading
- v4-0-1-snapshot/upgrading
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3733 | 3733 | | |
3734 | 3734 | | |
3735 | 3735 | | |
| 3736 | + | |
| 3737 | + | |
| 3738 | + | |
| 3739 | + | |
| 3740 | + | |
| 3741 | + | |
| 3742 | + | |
| 3743 | + | |
| 3744 | + | |
3736 | 3745 | | |
3737 | 3746 | | |
3738 | 3747 | | |
| |||
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
91 | 97 | | |
92 | 98 | | |
93 | 99 | | |
| |||
Lines changed: 41 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 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
236 | 245 | | |
237 | 246 | | |
238 | 247 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
366 | 366 | | |
367 | 367 | | |
368 | 368 | | |
369 | | - | |
| 369 | + | |
370 | 370 | | |
371 | 371 | | |
372 | 372 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
366 | 366 | | |
367 | 367 | | |
368 | 368 | | |
369 | | - | |
| 369 | + | |
370 | 370 | | |
371 | 371 | | |
372 | 372 | | |
| |||
0 commit comments