Skip to content

refactor(#960): rename CatalogPrivacy → CatalogRoutingTemplates + relocate address (PR-A)#963

Merged
ccancellieri merged 1 commit into
mainfrom
issue/960-drop-catalog-privacy
May 19, 2026
Merged

refactor(#960): rename CatalogPrivacy → CatalogRoutingTemplates + relocate address (PR-A)#963
ccancellieri merged 1 commit into
mainfrom
issue/960-drop-catalog-privacy

Conversation

@ccancellieri

Copy link
Copy Markdown
Collaborator

PR-A of #960. New catalog_elasticsearch_private_driver + cascade + 3-repo seed sync ship as PR-B.

What

Privacy semantics moved to "routing + IAM" after #733 retired the is_private flag. CatalogPrivacy then survived as a vestigial shell wrapping CatalogRoutingDefaults — its class docstring already acknowledged this. This PR renames the class to its actual purpose and folds its _address into the existing routing sub-namespace.

  • CatalogPrivacyCatalogRoutingTemplates (class_key auto-flips from catalog_privacy to catalog_routing_templates)
  • _on_apply_catalog_privacy_on_apply_catalog_routing_templates
  • _address: ("platform","catalog","privacy")("platform","catalog","routing","templates")
  • README PUT URL example + 5 docstring cross-refs updated
  • 7 test files updated in step with the rename

Why split A/B

PR-A is mechanical surface (rename only, zero behaviour change). PR-B introduces a new driver class, IAM DENY URL extension, cascade validator extension, and 3-repo seed JSON sync — large enough to deserve its own review.

Verification

  • 112/112 tests in the affected files PASS locally
  • ruff reports 0 new errors on changed files (9 pre-existing F401/F841 on main, identical post-rename)
  • Smoke: CatalogRoutingTemplates.class_key() == "catalog_routing_templates", address tuple is ("platform","catalog","routing","templates"), handler _on_apply_catalog_routing_templates registered

Non-goals (PR-B)

  • New catalog_elasticsearch_private_driver
  • _build_private_catalog_routing() helper
  • Cascade: catalog-private pinned → items + collection routing on collections under it MUST pin private variants
  • Extend private_deny_{catalog_id} URL pattern to cover /catalogs/{cat} (singular)
  • Three-repo seed JSON sync

Relates to #960.

…ocate address

PR-A of #960 (rename only; new catalog-private driver + cascade ships separately).

Privacy semantics moved to "routing + IAM" after #733 retired the
is_private flag. CatalogPrivacy then survived as a vestigial shell
wrapping CatalogRoutingDefaults — its class docstring already
acknowledged this. Rename the class to its actual purpose and move
its _address from ("platform","catalog","privacy") into the existing
("platform","catalog","routing","templates") sub-namespace.

- CatalogPrivacy → CatalogRoutingTemplates (class_key auto-flips
  from "catalog_privacy" to "catalog_routing_templates")
- _on_apply_catalog_privacy → _on_apply_catalog_routing_templates
- _address: ("platform","catalog","privacy") → ("platform","catalog","routing","templates")
- README PUT URL example + 5 docstring cross-refs updated
- 7 test files updated in step with the rename

Clean break — no compat alias, draft-schema renewal will absorb the
stored row-key change.
@ccancellieri ccancellieri force-pushed the issue/960-drop-catalog-privacy branch from 33a15dd to d1fc11a Compare May 19, 2026 00:11
@ccancellieri ccancellieri merged commit 6abe483 into main May 19, 2026
@ccancellieri ccancellieri deleted the issue/960-drop-catalog-privacy branch May 19, 2026 10:24
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