Skip to content

Extract date range parsing and conversation description in MessageService - #3

Draft
sebpretzer wants to merge 1 commit into
mainfrom
extract-message-helpers
Draft

sebpretzer wants to merge 1 commit into
mainfrom
extract-message-helpers

Conversation

@sebpretzer

Copy link
Copy Markdown
Owner

Groundwork for chats_fetch (stacked PR on top of this one). No change in behavior.

  • dateRange(from:): the start/end parsing moves out of the messages_fetch handler into a helper, unchanged, so another tool can parse dates the same way.
  • conversation(for: Chat): the Conversation object built for isPartOf is split out of conversation(for: Chat.ID, in:), so a tool that already has a fetched Chat can describe it without fetching it again. isPartOf output is the same.

Testing: builds clean in Debug.

…vice

Move the start/end parsing out of the messages_fetch handler into a
dateRange(from:) helper, and split the Conversation object built for
isPartOf into conversation(for:) taking an already fetched Chat.

No change in behavior: messages_fetch parses dates and describes
conversations as before. Both helpers are reused by an upcoming
chats_fetch tool.
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.

1 participant