Skip to content

Tech-debt batch 24: module settings via their editor; storage settings need restart; Revert after save (#690 #691 #696) - #703

Merged
antosubash merged 3 commits into
mainfrom
tech-debt/b24-settings-storage-reload
Oct 30, 2026
Merged

antosubash merged 3 commits into
mainfrom
tech-debt/b24-settings-storage-reload

Conversation

@antosubash

Copy link
Copy Markdown
Owner

Tech-debt batch 24 (from the 2026-10-28 scan).

Closes #690
Closes #691
Closes #696

What changed

Verification

  • make lint ✓ · make test-js ✓ · make test-py ✓ (6426 passed, 39 skipped)
  • Code review fixes:
    • the guard is limited to system scope;
    • Browse view routes flash the refusal instead of returning raw 422 JSON;
    • managed-key precedence is restored;
    • orphaned rows stay deletable.
  • Browser QA (playwright-cli):
    • creating users.allow_signup in Browse is refused inline and the page stays intact;
    • no module keys in suggestions; a generic key can be created, edited and deleted; the API returns 422 with edit_via;
    • Save then Revert works on two fields with no reload;
    • the file_storage page shows the RESTART badge on edited storage fields.
    • One bug (Revert after save) was found, fixed with a red-then-green Vitest test, and re-tested live.
  • Rebase note: the CHANGELOG.md [Unreleased] conflict was resolved as the union of both sides.

https://claude.ai/code/session_01M9neheZZEe3sVpDi2S3zT4

…age settings need a restart; Revert after save (#690, #691, #696)

- Generic settings writes (/api/settings/system/{key}, CRUD by id, Browse
  actions) to a system-scope `<package>.<field>` row skipped validation, the
  env-pin guard and the hot reload. They now return 422 pointing at the
  module editor; tenant/user rows stay writable, and managed keys keep their
  own clear route. Browse no longer suggests module keys.
- file_storage builds its backend once at startup; the backend, filesystem
  root and S3 fields are now marked restart-required instead of silently
  splitting the web process from the CSP, workers and tenant purge.
- Saving a defaulted field in the module form now shows Revert at once.

Claude-Session: https://claude.ai/code/session_01M9neheZZEe3sVpDi2S3zT4
… rows stay deletable (#690)

Review follow-up: the Inertia Browse create/update/delete routes let
ModuleKeyError reach the app-wide JSON handler, breaking the page; they now
redirect back with the message. The guard covers only fields a module still
declares, so a leftover row for a removed field can be cleared.

Claude-Session: https://claude.ai/code/session_01M9neheZZEe3sVpDi2S3zT4
…es Revert (#696)

Found in QA: when no reload happened after the save, the post-revert reload
returned props equal to the page's original ones, the [initial] effect did
not fire, and the form kept the edited value and the Revert button. Revert
now clears the local override flag and takes the field's value from the
reload response itself.

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

chatgpt-codex-connector Bot commented Oct 30, 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-10-30T07:58:05.968675Z 7b81ed5 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: 7b81ed5
Status: ✅  Deploy successful!
Preview URL: https://a89678ca.simple-module-python.pages.dev
Branch Preview URL: https://tech-debt-b24-settings-stora.simple-module-python.pages.dev

View logs

@antosubash
antosubash merged commit b3e4bfc into main Oct 30, 2026
17 checks passed
@antosubash
antosubash deleted the tech-debt/b24-settings-storage-reload branch October 30, 2026 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant