Skip to content

refactor(sharing): follow the module layout (moves only) - #836

Merged
antosubash merged 1 commit into
mainfrom
refactor/layout-sharing
Nov 5, 2026
Merged

antosubash merged 1 commit into
mainfrom
refactor/layout-sharing

Conversation

@antosubash

Copy link
Copy Markdown
Owner

Summary

Moves-only restructure of the sharing module to docs/module-layout.md (same pattern as #829, #830, #831, #834). No logic changes.

  • constants/settings/services/service/policy/audience/tenant_cleanup/user_cleanup -> sharing/core/
  • deps/present/endpoints -> sharing/web/
  • pages/components and pages/types.ts -> sharing/ui/
  • tests mirror the areas; a new root tests/conftest.py keeps tests/_sharing_support.py importable from nested folders
  • sharing.policy, sharing.constants and sharing.endpoints.api stay as deprecated sys.modules aliases (remove_in 0.0.46) because smpy_modules imports them; sharing/endpoints/ is an alias-only package. host/tests/test_module_layout.py ignores alias-only packages; docs/module-layout.md documents both.

Verification

  • make lint, make ci-docs-build, make ci-css-build, make test-js, make doctor (0 errors): pass
  • make test-py: 7849 passed; the only failure was a local untracked __pycache__-only feature_flags/endpoints dir (not in git), removed and re-run green
  • Alias identity (sharing.endpoints.api is sharing.web.endpoints.api, policy, constants) holds; own code imports no alias path (-W error::DeprecationWarning); wheel contains core/web/ui and alias files
  • Browser smoke: /admin/sharing/ renders after admin login, 0 console errors

https://claude.ai/code/session_01FXHA3ZicrtZ4C5QPEgxfgq

constants, settings, services, service, policy, audience and the cleanup
hooks move to sharing/core/; deps, present and endpoints to sharing/web/;
the page components and types to ui/. Tests mirror the areas; a root
conftest keeps _sharing_support importable. sharing.policy,
sharing.constants and sharing.endpoints.api stay as deprecated aliases
until 0.0.46 (smpy_modules imports them). The root-layout test accepts a
package that holds only aliases.

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-05T16:58:47.723182Z aa61b98 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: aa61b98
Status: ✅  Deploy successful!
Preview URL: https://d876f859.simple-module-python.pages.dev
Branch Preview URL: https://refactor-layout-sharing.simple-module-python.pages.dev

View logs

@antosubash
antosubash merged commit 92b4b29 into main Nov 5, 2026
17 checks passed
@antosubash
antosubash deleted the refactor/layout-sharing branch November 5, 2026 17:07
antosubash added a commit that referenced this pull request Nov 5, 2026
…the layout move (#843)

* fix(feature_flags,sharing): keep durable handler names stable across the layout move

Durable outbox rows are keyed by the handler's import path. The layout
moves (#834, #836) changed it for feature_flags' and sharing's tenant and
user cleanup handlers, so rows still waiting for delivery would retry as
unknown handlers and go dead. Pin the old names as constants, freeze every
durable event key and handler name in host/tests/test_durable_wire_names.py,
and add the rule to the module-layout checklist. Neither move has been
released.

Claude-Session: https://claude.ai/code/session_01FXHA3ZicrtZ4C5QPEgxfgq

* test(host): freeze the framework's tenant settings cleanup handler name too

Claude-Session: https://claude.ai/code/session_01FXHA3ZicrtZ4C5QPEgxfgq
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