Skip to content

refactor(permissions): move to the module layout - #852

Merged
antosubash merged 2 commits into
mainfrom
refactor/layout-permissions
Nov 6, 2026
Merged

antosubash merged 2 commits into
mainfrom
refactor/layout-permissions

Conversation

@antosubash

Copy link
Copy Markdown
Owner

Summary

Moves-only restructure of modules/permissions to docs/module-layout.md, same pattern as #846 (branding).

  • constants/service/group_labels/write_safety/_registry_sync -> permissions/core/
  • grants, role_invalidation, user_cleanup -> permissions/grants/ (new domain area in DOMAIN_AREAS; grants.py is now grants/source.py)
  • deps and endpoints -> permissions/web/
  • pages/components/ -> ui/components/, page and tests-js imports rewritten
  • Python tests mirror the areas, with test_permissions_* basenames
  • permissions.deps and permissions.group_labels stay as deprecated sys.modules aliases (remove_in 0.0.46) because smpy_modules imports group_labels and the docs promised deps.

No logic changes: permission names, i18n keys, routes and the durable handler name permissions.user_cleanup.purge_user_grants are unchanged.

Verification

  • make lint, make doctor, make ci-api-types-fresh, make ci-docs-build, make ci-css-build pass
  • make test-py (8143 passed), make test-js (898) pass, run on the move commit; the follow-up commit only edits one CHANGELOG line
  • Two independent reviews (correctness, maintainability) found no logic or import problems; alias identity (permissions.deps is permissions.web.deps, same for group_labels) checked
  • No browser smoke (moves-only, skipped)

https://claude.ai/code/session_01FXHA3ZicrtZ4C5QPEgxfgq

constants/service/registry sync/write safety/group labels -> core/,
grant source, role invalidation and user cleanup -> grants/ (domain area),
deps and endpoints -> web/, pages/components -> ui/components. Tests mirror
the areas. permissions.deps and permissions.group_labels stay as deprecated
sys.modules aliases (remove_in 0.0.46). The durable handler name
permissions.user_cleanup.purge_user_grants is unchanged.

Claude-Session: https://claude.ai/code/session_01FXHA3ZicrtZ4C5QPEgxfgq
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
🔒 Security Review ✅ Completed 2026-11-05T23:56:59.343503Z 7ca2fc7 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying simple-module-python with  Cloudflare Pages  Cloudflare Pages

Latest commit: 7ca2fc7
Status: ✅  Deploy successful!
Preview URL: https://2709d647.simple-module-python.pages.dev
Branch Preview URL: https://refactor-layout-permissions.simple-module-python.pages.dev

View logs

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