Add DB-backed site configuration #62
No reviewers
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!62
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/task-6278792d-db-backed-site-config"
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?
Summary
Add a small SQLite-backed site configuration slice that lets persisted public site identity and homepage copy override
src/config/site.tswhile preserving file/default fallback behavior.Task
Task: #task-6278792d
Changes
site_configmigration for singleton persisted site identity/homepage fields.readSiteConfigservice with DB-first, file-default fallback behavior.Testing
make dev; route is manually testable by insertingsite_configrow and refreshing/or/api/v1/meta.make checkpasses./scripts/pre-pr.shpassesChecklist
./scripts/pre-pr.shpassesPR Review: Approved
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
003_site_config.sqlcreatessite_config, and migration tests assert the table exists after applying template migrations from an empty database.afterEach.site_configrow exists; README documents checking/or/api/v1/meta.readSiteConfigreturnssrc/config/site.tsdefaults without a DB or without a persisted row, with tests covering both paths.make check,./scripts/pre-pr.sh, and Forgejo CI passed.Blocking Issues
None.
Warnings
None.
Verdict
Approved for merge after explicit human approval.