Skip to content

Snapshot per application directory, Stripe webhooks included - #31

Merged
noha merged 3 commits into
mainfrom
stripe-hook-snapshot
Nov 30, 2026
Merged

noha merged 3 commits into
mainfrom
stripe-hook-snapshot

Conversation

@noha

@noha noha commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

The snapshot handler wrote every SCIM call as /data/logs/SCIM-. Each application now gets a directory below /data/logs, created on first use: scim/ for /scim, stripe/ for the Stripe webhook under /account/hooks/stripe. Calls of other paths are still not recorded, and nothing is recorded while /data/logs does not exist.

noha and others added 3 commits November 30, 2026 16:16
The snapshot handler wrote every SCIM call as /data/logs/SCIM-<time>.
Each application now gets a directory below /data/logs, created on first
use: scim/ for /scim, stripe/ for the Stripe webhook under
/account/hooks/stripe. Calls of other paths are still not recorded, and
nothing is recorded while /data/logs does not exist.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The handler no longer knows any application. path names the directory the
snapshots live in (nothing is recorded while it does not exist), and each
snapshotPath:into: rule maps the beginning of a request path to a
directory below it. The first matching rule wins; a path no rule matches
is not recorded. The test subclass that replaced path goes away, since
path: is now part of the handler.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The segments of a request path are strings, and a rule written with
symbols (#(orders)) would never match them.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@noha
noha merged commit 81a5a3d into main Nov 30, 2026
4 checks passed
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