Skip to content

add [properties-be] - pass in specific message id for threads#538

Merged
danielkweon merged 11 commits intomainfrom
daniel/m-5374--add-properties-be-pass-in-specific-message-id-for-threads
Dec 11, 2025
Merged

add [properties-be] - pass in specific message id for threads#538
danielkweon merged 11 commits intomainfrom
daniel/m-5374--add-properties-be-pass-in-specific-message-id-for-threads

Conversation

@danielkweon
Copy link
Copy Markdown
Contributor

@danielkweon danielkweon commented Dec 10, 2025

add [properties-be] - pass in specific message id for threads

  • Adds specific_message_id field to EntityReference for thread/channel/chat message context
  • Implements new() and with_message_id() constructors for cleaner EntityReference
  • Returns message ID when properties fetched

Add optional specific_message_id field to EntityReference to support
referencing specific messages within threads, channels, and chats.
This allows properties to be associated with a specific message context
when the entity type is THREAD, CHANNEL, or CHAT.
Refactor metadata property creation to use the cleaner EntityReference::new()
constructor instead of struct literal syntax for owner and project references.
Refactor all entity property handlers to use the cleaner EntityReference::new()
constructor for permission checks and entity reference creation.
…ructor

Refactor all test code to use the cleaner EntityReference::new()
constructor instead of struct literal syntax.
Expose api, config, and constants modules to allow external tooling
and binaries to import properties_service modules. This enables
OpenAPI schema generation without running the full service.
@danielkweon danielkweon self-assigned this Dec 10, 2025
@danielkweon danielkweon requested review from a team as code owners December 10, 2025 22:33
@linear
Copy link
Copy Markdown

linear bot commented Dec 10, 2025

/// For CHANNEL, CHAT, THREAD entity types - optional specific message ID.
#[serde(skip_serializing_if = "Option::is_none")]
pub specific_message_id: Option<String>,
pub specific_message_id: Option<Uuid>,
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need this on system properties?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yup - used for documents source property - specific message within the thread

@danielkweon danielkweon merged commit 34930fb into main Dec 11, 2025
34 checks passed
@danielkweon danielkweon deleted the daniel/m-5374--add-properties-be-pass-in-specific-message-id-for-threads branch December 11, 2025 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants