Skip to content

fix(#526): /list and /list_at_time cross-namespace support - #529

Merged
ajianaz merged 2 commits into
developfrom
fix/issue-526-list-cross-namespace
Jul 1, 2026
Merged

ajianaz merged 2 commits into
developfrom
fix/issue-526-list-cross-namespace

Conversation

@ajianaz

@ajianaz ajianaz commented Jul 1, 2026

Copy link
Copy Markdown
Collaborator

Fixes #526

Problem

list() and list_at_time() in crud.rs used namespace.unwrap_or(DEFAULT_NAMESPACE), converting None to "default". This meant POST /list without a namespace only searched the default namespace, inconsistent with recall() (fixed in #448) which searches ALL namespaces when namespace is None.

Fix

4-way match on (namespace, tag) — same pattern as the #448 recall fix.

Also adds missing content_type and slug columns to list_at_time() SELECT.

When namespace is None, list() and list_at_time() now return memories
from ALL namespaces instead of forcing DEFAULT_NAMESPACE.

Pattern matches the fix in #448 for recall/search — consistent behavior
across all query functions.

4-way match on (namespace, tag):
- (Some(ns), Some(t)) — filtered by both
- (Some(ns), None) — filtered by namespace only
- (None, Some(t)) — cross-namespace tag search
- (None, None) — all memories across all namespaces

Also adds content_type and slug columns to list_at_time SELECT
(previously missing, inconsistent with list()).
@github-actions

github-actions Bot commented Jul 1, 2026 •

Copy link
Copy Markdown

🔍 Cora AI Code Review

⚠️ Review recommended — warnings found.

🟡 Warning (1)

  • unknown:? — Cora AI review could not complete: LLM API returned status 500: error code: 1101
    . Review was skipped; no code quality issues were found by the automated check.

Review powered by cora-cli · BYOK · MIT

cargo fmt expects method chain format (self\n.conn\n.prepare) not
self.conn.prepare(...). Fix for CI Format check failure.
@ajianaz
ajianaz merged commit e57f74f into develop Jul 1, 2026
9 checks passed
@ajianaz
ajianaz deleted the fix/issue-526-list-cross-namespace branch July 1, 2026 23:46
ajianaz added a commit that referenced this pull request Aug 13, 2026
…espace

fix(#526): /list and /list_at_time cross-namespace support
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: /list cross-namespace (same fix as #448 /recall)

1 participant