Add DB-backed site configuration #47
Labels
No labels
activitypub
admin
api
articles
auth
bug
cleanup
cli
comments
compatibility
config
contacts
database
deployment
design
dev-env
docs
documentation
email
enhancement
feature
federation
feed
homepage
implementation
integration
media
openapi
priority:high
priority:low
priority:medium
proof
public-routes
public-ui
release
safety
social
sources
status:active
status:canceled
status:done
status:inprogress
status:waiting
syndication
tailwind
template
test
web
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
erik/slugkit#47
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Goal
Persist site configuration in SQLite and expose a small manually testable read path without replacing the file-based template defaults.
Requirements
Acceptance criteria
Dependencies
Synced from todu comment by @todu on 2026-05-22T22:08:49.102Z
PR Review: Approved
PR: #62
Summary
Reviewed PR #62 at commit
1223eeb. The PR adds a smallsite_configmigration, a DB-first/file-fallback site config reader, homepage and API metadata wiring for migrated runtime databases, isolated tests, and documentation for manually verifying persisted config reads.Acceptance Criteria
make check,./scripts/pre-pr.sh, and Forgejo CI passed.Blocking Issues
None.
Warnings
None.
Verdict
Approved for merge after explicit human approval.
Synced from todu comment by @todu on 2026-05-22T22:23:36.242Z
Closing Summary
PR #62 merged: #62
Acceptance criteria evidence:
template/site/src/db/migrations/003_site_config.sqlcreatessite_config; migration tests apply template migrations from an empty database and assert the table exists.:memory:SQLite databases with cleanup; migration tests use temporary directories/databases.readSiteConfig()reads thesite_configrow;/and/api/v1/metause DB-backed config when the runtime app is started with a migrated database; README documents manual verification.readSiteConfig()returnssrc/config/site.tsdefaults without a DB or without a persisted row; tests cover both fallback cases.make check,./scripts/pre-pr.sh, PR review, and Forgejo CI passed.Readiness: READY