Skip to content

refactor(audit_log): move to the module layout - #853

Merged
antosubash merged 1 commit into
mainfrom
refactor/layout-audit_log
Nov 6, 2026
Merged

antosubash merged 1 commit into
mainfrom
refactor/layout-audit_log

Conversation

@antosubash

Copy link
Copy Markdown
Owner

Summary

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

  • capture, constants, services, settings -> audit_log/core/
  • activity, export, filters, resolve, service -> audit_log/entries/ (new domain area in DOMAIN_AREAS)
  • deps and endpoints -> audit_log/web/
  • pages/components/ -> ui/components/, page and tests-js imports rewritten
  • Python tests mirror the areas, with test_audit_log_* basenames and a root tests/conftest.py
  • The simple_module.audit_sinks entry point now names audit_log.core.capture:audit_callback
  • No aliases: nothing outside the module imports a moved path (the three external test imports were updated)

No logic changes: permission names, i18n keys, routes and app.state attributes 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) and make test-js pass, run on this commit; the branch is level with origin/main, so no rebase was needed
  • Celery audit sink discovery checked: discover_audit_callback() returns audit_log.core.capture.audit_callback, and the installed entry point metadata matches pyproject.toml
  • Two independent reviews (correctness, maintainability) found no logic or import problems; targeted tests (159) pass
  • No browser smoke (moves-only, skipped)

https://claude.ai/code/session_01FXHA3ZicrtZ4C5QPEgxfgq

constants/settings/services/capture -> core/; the read side (query service,
filters, resolve, activity feed, CSV export) -> entries/ (domain area);
deps and endpoints -> web/; pages/components -> ui/components. Tests mirror
the areas with test_audit_log_* basenames. The simple_module.audit_sinks
entry point now names audit_log.core.capture:audit_callback. Nothing outside
the module imported a moved path, so there are no aliases.

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

chatgpt-codex-connector Bot commented Nov 6, 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-06T00:26:06.050478Z fdd5888 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: fdd5888
Status: ✅  Deploy successful!
Preview URL: https://4091bf8d.simple-module-python.pages.dev
Branch Preview URL: https://refactor-layout-audit-log.simple-module-python.pages.dev

View logs

@antosubash
antosubash merged commit 3eec5ca into main Nov 6, 2026
17 checks passed
@antosubash
antosubash deleted the refactor/layout-audit_log branch November 6, 2026 00:33
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