Skip to content

Make handlers depend on sqlite.Store directly#490

Merged
mtlynch merged 1 commit intomasterfrom
no-store-interface
Apr 26, 2026
Merged

Make handlers depend on sqlite.Store directly#490
mtlynch merged 1 commit intomasterfrom
no-store-interface

Conversation

@mtlynch
Copy link
Copy Markdown
Owner

@mtlynch mtlynch commented Apr 26, 2026

The handlers package already depends on narrower interfaces for the components that need abstraction, such as authentication, sessions, metadata lookup, and password reset. The extra handlers.Store interface does not create a meaningful seam on top of those abstractions because the only concrete store in use is sqlite.Store.

Depending on sqlite.Store directly removes a large duplicate interface definition, keeps the existing tighter interfaces intact, and makes the code reflect the real dependency graph more accurately.

The handlers package already depends on narrower interfaces for the components that need abstraction, such as authentication, sessions, metadata lookup, and password reset. The extra handlers.Store interface does not create a meaningful seam on top of those abstractions because the only concrete store in use is sqlite.Store.

Depending on sqlite.Store directly removes a large duplicate interface definition, keeps the existing tighter interfaces intact, and makes the code reflect the real dependency graph more accurately. This also matches the direction taken in 0779737 without pulling in the broader session-store changes from that commit.
@mtlynch mtlynch enabled auto-merge (squash) April 26, 2026 18:02
@mtlynch mtlynch merged commit 469f368 into master Apr 26, 2026
9 checks passed
@mtlynch mtlynch deleted the no-store-interface branch April 26, 2026 18:05
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 26, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant