Skip to content

Clarify DatabaseServiceAdapter is temporary solution #147

Closed

Description

@malibio

Context

DatabaseServiceAdapter in nodeReferenceService.ts is a temporary wrapper providing queryNodes() and upsertNode() methods until the Tauri backend implements them.

Current State

The adapter has a basic comment (line 28) explaining its purpose, but doesn't strongly emphasize its temporary nature.

Requested Change

Add explicit JSDoc comment to the DatabaseServiceAdapter class emphasizing:

  1. This is a temporary adapter
  2. Will be removed when backend implements these methods
  3. Link to relevant backend issue (if exists)

Example

/**
 * TEMPORARY: DatabaseServiceAdapter
 * 
 * Provides missing queryNodes/upsertNode methods until Tauri backend 
 * implements them. This adapter will be REMOVED once backend support is complete.
 * 
 * @see Backend issue for queryNodes implementation
 * @temporary Will be deleted in future PR
 */
class DatabaseServiceAdapter {
  // ...
}

Priority

Low - current documentation is adequate, this is polish for future maintainers.

Activity

  1. added
    documentation
    on Oct 4, 2025
  2. self-assigned this
    on Oct 5, 2025
  3. malibio commented on Oct 5, 2025

    @malibio
    CollaboratorAuthor

    ✅ Completed: Implemented queryNodes in Rust backend and removed DatabaseServiceAdapter.

    Changes:

    • ✅ Added NodeQuery struct with builder methods
    • ✅ Implemented query_nodes_simple method with SQLite JSON_EACH for mentions queries
    • ✅ Added query_nodes_simple Tauri command
    • ✅ Updated TauriNodeService with queryNodes method
    • ✅ Removed DatabaseServiceAdapter completely
    • ✅ Updated all frontend calls to use camelCase parameters
    • ✅ Updated tests to match new signature

    The adapter layer is now eliminated, and all query functionality is handled natively by the Rust backend.

  4. added 2 commits that reference this issue on Oct 5, 2025
    2901be4
    41690d0
  5. added 2 commits that reference this issue on Feb 4, 2026
    e82564f
    bd7d9a1
  6. added a commit that references this issue on Feb 26, 2026
    e1fdd36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

documentationtechnical-debt

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions