PostgreSQL backup tool with Point-In-Time-Recovery and restore verification
TypeScript backupbackupsdatabasedatabase-backupdevopsdockergolangkubernetesmariadbmongodbmysqlpgpostgrespostgresqls3self-hostedsystem-administrationtoolsweb-ui
1. Invitation link
- 1.1 Add
SetEmailSendertoMembershipServiceinbackend/internal/features/workspaces/services/membership_service.go, mirroringUserService.SetEmailSender, and verify withgo build ./...inbackend/ - 1.2 Add controller tests to
backend/internal/features/workspaces/controllers/membership_controller_test.gothat replace the sender withworkspaces_testing.MockEmailSender, setconfig.GetEnv().DatabasusURLtohttps://databasus.example.comand tohttps://databasus.example.com/, add a member with an unknown address, and assert that the captured body containshref="<configured value>"exactly. Restore the sender and the URL int.Cleanup. Verify that both tests fail withjust test-package ./internal/features/workspaces/...inbackend/while the link still appends/sign-up - 1.3 Make
buildInvitationEmailHTMLlink toenv.DatabasusURLwith no path appended, and verify that the tests from 1.2 pass withjust test-package ./internal/features/workspaces/... ./internal/features/users/...inbackend/. The same run includes the existingTest_InviteUserToWorkspace_MembershipReceivedAfterSignUpinbackend/internal/features/users/controllers/management_controller_test.go, which pins the membership half of the "Invited person opens the link" scenario
2. Unknown addresses in the web app
- 2.1 Move
frontend/src/App.tsxtofrontend/src/app/ui/App.tsxwithgit mv, update its relative imports and the import infrontend/src/main.tsx, and verify withpnpm typecheck,pnpm lintandpnpm buildinfrontend/ - 2.2 Add a catch-all
*route rendering<Navigate to="/" replace />to the route table infrontend/src/app/ui/App.tsx, after the existing routes, and verify withpnpm typecheckandpnpm lintinfrontend/. The three scenarios of "An unknown address in the web app leads to the main screen" and the "sign-up form is shown" half of "Invited person opens the link" are deliberately left without an automated test, per the design decision "No automated frontend test for the catch-all"
3. Verification
- 3.1 Run
just lintat the root, andpnpm testandpnpm buildinfrontend/ - 3.2 Run
openspec validate fix-invitation-sign-up-link --strict