Skip to content

feat: RoomSummary.referenced_documents for cross-entity linking (#689 PR3)#705

Merged
ajianaz merged 1 commit into
developfrom
feat/room-doc-enrichment
Jul 16, 2026
Merged

feat: RoomSummary.referenced_documents for cross-entity linking (#689 PR3)#705
ajianaz merged 1 commit into
developfrom
feat/room-doc-enrichment

Conversation

@ajianaz

@ajianaz ajianaz commented Jul 16, 2026

Copy link
Copy Markdown
Collaborator

Summary

Part of #689 β€” PR3: Room β†’ Document enrichment.

Adds referenced_documents field to RoomSummary and a new room_summary_with_docs() method that populates it from the room_documents junction table (added in PR1).

Changes

  • ** struct**: new referenced_documents: Option<Vec<String>> field with #[serde(default, skip_serializing_if = "Option::is_none")] for backward compat
  • ****: both construction sites set referenced_documents: None (existing behavior preserved)
  • ****: enriches a base summary with document slugs from the junction table; returns None docs when no documents are linked
  • ****: high-level wrapper in rooms.rs
  • 3 tests: documents present, empty room returns None, nonexistent room returns None

Testing

  • room_summary_with_docs_returns_documents β€” room with 2 linked docs β†’ Some(vec![...])
  • room_summary_with_docs_empty_room_returns_none_docs β€” room with no docs β†’ None
  • room_summary_with_docs_nonexistent_returns_none β€” missing room β†’ None

Note: Cannot compile locally (no libssl-dev). CI will validate.

…#689 PR3)

- Add referenced_documents field (Option<Vec<String>>) to RoomSummary struct
  with serde(default, skip_serializing_if) for backward compatibility
- Set referenced_documents: None at both RoomSummary construction sites
  in room_summary() for backward compat
- Add Store::room_summary_with_docs() that enriches a summary with
  document slugs from the room_documents junction table
- Add Uteke::room_summary_with_docs() high-level wrapper in rooms.rs
- Add 3 tests: with documents, empty room (None), nonexistent room (None)
@ajianaz ajianaz added the enhancement New feature or request label Jul 16, 2026
@github-actions

Copy link
Copy Markdown

πŸ” Cora AI Code Review

⚠️ Review could not complete. Cora produced an empty result. Check the workflow logs for errors.


Review powered by cora-cli Β· BYOK Β· MIT

@ajianaz
ajianaz merged commit 9dfda0e into develop Jul 16, 2026
7 of 8 checks passed
@ajianaz
ajianaz deleted the feat/room-doc-enrichment branch July 16, 2026 11:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant