-
Notifications
You must be signed in to change notification settings - Fork 1.9k
fix: Add back Teams' replies processing #4744
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR Summary
This PR reintroduces Teams message replies processing, ensuring that replies are properly concatenated with their parent messages into single documents.
- Modified
_collect_document_for_channel_id
inbackend/onyx/connectors/teams/connector.py
to fetch and include message replies in thread documents - Updated test expectations in
test_teams_connector.py
to verify concatenated message-reply combinations (e.g., "This is the first message...This is a reply!This is a second reply") - Renamed
_filter_message
to_should_process_message
for better function naming clarity - Added proper timestamp validation to ensure messages and replies are within the specified time range
2 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings | Greptile
66ab34c
to
70f00cb
Compare
* Add replies to document construction and edit tests * Update tests * Add replies processing to teams * Fix test * Add try-except block around potential failure * Update entity-id during ConnectorFailure raise
* Add replies to document construction and edit tests * Update tests * Add replies processing to teams * Fix test * Add try-except block around potential failure * Update entity-id during ConnectorFailure raise
* Add replies to document construction and edit tests * Update tests * Add replies processing to teams * Fix test * Add try-except block around potential failure * Update entity-id during ConnectorFailure raise
* Add replies to document construction and edit tests * Update tests * Add replies processing to teams * Fix test * Add try-except block around potential failure * Update entity-id during ConnectorFailure raise
Description
Previous PR left out the processing of replies to a message. This PR adds it back.
Addresses: https://linear.app/danswer/issue/DAN-1997/teams-replies-not-being-parsed-and-processed-in-document.
How Has This Been Tested?
Tests were written in the previous PR. For this one, since replies are included, they have been updated to include the replies in the expected output.