persist api-http-stack deployment state across restarts #1096
No reviewers
fediversity/developers
Labels
No labels
0 points
0.5 points
1 point
13 points
2 points
21 points
3 points
34 points
5 points
55 points
8 points
ambition
application-offering
ambition
configure-applications
ambition
front-end
ambition/install-applications
ambition
security
ambition
switch-host
ambition
update-applications
ambition
user-management
api service
blocked
component: fediversity panel
component: nixops4
documentation
estimation high: >3d
estimation low: <2h
estimation mid: <8h
infinite points
productisation
project-management
question
role: application developer
role: application operator
role: hosting provider
role: maintainer
security
technical debt
testing
type unclear
type: bug
type: deliverable
type: key result
type: objective
type: task
type: user story
user experience
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
fediversity/fediversity!1096
Loading…
Reference in a new issue
No description provided.
Delete branch "kiara/fediversity:api-http-stack-persist-state"
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?
The local
api-http-stackdev stack wiped its SQLite state DB (state.db) on every start, so a deployment made before a restart was silently lost.This keeps the DB by default and gates the wipe behind an explicit
API_RESET_STATE=1. Restarting api/ -- for example after rebuilding it against a different module source -- no longer destroys deployment state.This is a prerequisite for the schema-change view (#213): demonstrating it means deploying under an old schema, restarting api/ baked against the new one, then reopening the form -- which only works if the deployment row survives the restart. The
schema-change-vizbranch documents that end-to-end flow and should land after this.Verified:
nix-build ./api -A api-http-stackbuilds clean (itswriteShellApplicationruns shellcheck over the new conditional); treefmt reports no change.Disclaimer: I used a coding agent in the creation of this patch.
dc6ba67506e408816cc3WIP: persistto persistapi-http-stackdeployment state across restartsapi-http-stackdeployment state across restartsfailing docs build seems unrelated, see #1080