Skip to content

Tighten CMS find-replace exclusions - #460

Merged
hellopablo merged 2 commits into
developfrom
feature/find-replace-exclusions
Oct 30, 2026
Merged

hellopablo merged 2 commits into
developfrom
feature/find-replace-exclusions

Conversation

@hellopablo

Copy link
Copy Markdown
Member

Summary

  • Remove cms_menu_item.url from readOnly(). Menu URLs are a typical target when moving a domain or path.
  • Add read-only cms_page.draft_breadcrumbs and cms_page.published_breadcrumbs. They are built from parent page titles (src/Model/Page.php, moveTo/slug-regeneration path), so a direct edit is overwritten on the next move or goes stale.

cms_block.located investigation

Checked what writes located (src/Admin/Controller/Block.php, src/Model/Block.php, admin/views/Block/edit.php): it's a free-text field an admin types when creating a block, describing where it's used in templates (e.g. "Homepage > Header"). It's not auto-generated and not purely internal — it's editor-authored metadata, same character as label/description. Decision: left unchanged (fully searchable and replaceable), per the brief's "if it isn't editor-authored copy, make it read-only" — it is editor-authored, so no restriction was added.

Test plan

  • tests/FindReplace/Exclusion/PackageTest.php updated and passing.
  • Full module test suite passes (./vendor/bin/phpunit).

🤖 Generated with Claude Code

hellopablo and others added 2 commits October 30, 2026 15:18
- Remove cms_menu_item.url from readOnly() so menu URLs can be
  updated when moving a domain or path.
- Add cms_page.draft_breadcrumbs and cms_page.published_breadcrumbs
  to readOnly(); both are generated from parent page titles, so a
  direct edit is overwritten or goes stale.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@hellopablo
hellopablo merged commit 9c231fd into develop Oct 30, 2026
5 checks passed
@hellopablo
hellopablo deleted the feature/find-replace-exclusions branch October 30, 2026 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant