Repository navigation
Remove vestigial active_database_path daemon setting (ADR-053) - #1595
mstomar125 merged 1 commit into
Conversation
The daemon never read active_database_path from daemon.toml — it resolves its database via the DatabaseService registry — so the Tauri select_new_database and reset_database_to_default commands that wrote it were no-ops, and the File menu's "New Database..."/"Open Database..." items that triggered them were dead ends. Remove the field from the SettingsService proto (get/update daemon-config messages) and from the daemon's DaemonConfig struct and RPC handlers. Remove the two no-op Tauri commands, their invoke_handler registrations, and the File menu items/handler that only ever called them. Remove the matching "Change Location..."/"Reset to Default" buttons from the Database settings section and the frontend menu-event listener that invoked them. The read-only database path display is kept: get_settings now sources SettingsResponse.active_database_path from DatabaseServiceClient.List's default entry instead of daemon config, via a new GrpcClient::database_service_client() accessor. Co-Authored-By: Claude Opus 4.8 <[email protected]>
|
APPROVE (confirming re-review) Independently re-verified the whole diff against the ADR-053 intent — clean, cohesive removal. Verified:
Validation: Non-blocking follow-ups (out of scope for this PR): with these deletions, the |
|
APPROVE (post-merge — this opened and merged between watcher polls; reviewing for the record). Correct, well-scoped, and it correctly closes the ADR-053 epic. One minor proto-hygiene follow-up below. Verified
Minor follow-up (proto hygiene, non-blocking)Both Net: correct final piece of #1532 (now closed). Approve; suggest the two |
Summary
Final cleanup for the ADR-053 multi-database epic (#1532). The daemon never read
active_database_pathfromdaemon.toml— it resolves its database via theDatabaseServiceregistry — so this field was vestigial and the Tauri commands that wrote it were no-ops. With the prior change that stopped injectingNODESPACED_DB_PATHfrom the service definitions (#1594), those commands became fully inert.This removes the dead field and the dead command/UI surface while preserving the read-only database-path display, now sourced from the registry (the actual source of truth).
Changes
active_database_pathfromDaemonConfig,DaemonConfigResponse, and theUpdateDaemonConfighandler (settings_service.rs) and from theSettingsServiceproto messages.SettingsServicenow owns onlygrpc_address+ capture settings.select_new_database/reset_database_to_defaultcommands, theirinvoke_handlerregistrations, and the File-menu items/handler that only ever called them.get_settingsnow sourcesSettingsResponse.active_database_pathfromDatabaseService.List's default entry via a newGrpcClient::database_service_client()accessor — the response field name is unchanged, so the Settings and Diagnostics path displays render exactly as before.menu-select-databaseevent listener that invoked them. The read-only "Active Database Path" display is kept.Validation
cargo fmt --checkclean;cargo clippyclean onnodespace-daemonandnodespace-app.cargo test -p nodespace-daemon— all pass, including the DatabaseService gRPC e2e (create_second_database_then_route_a_write_to_it,watch_events_are_stamped_with_the_serving_database_id) and thesettings_serviceunit tests.cargo checkon the Tauri crate (nodespace-app) compiles with sidecars built.bun run test: 3952/3952 pass (incl.settings.test.ts).test:all+cargo build --bin nodespaced+test:e2e) green.Community build is behaviorally unchanged: the path display still works (registry-sourced); the only visible difference is the removal of the already-broken select/reset affordances.
This completes the final acceptance criterion of the ADR-053 epic.