Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

fix: deduplicate response in paginated messages#1210

Closed
alex-mcgovern wants to merge 2 commits intoissue-1020from
issue-1020-deupduplicate-response
Closed

fix: deduplicate response in paginated messages#1210
alex-mcgovern wants to merge 2 commits intoissue-1020from
issue-1020-deupduplicate-response

Conversation

@alex-mcgovern
Copy link
Copy Markdown
Contributor

Fixes a minor nit in #1020 where multiple messages with the same chat_id were returned in the response from /v1/workspaces/:name/messages.

The root cause was in a while loop that continued to fetch more results until the number of records retrieved matched the page size. There was already a de-deduplication step in the wscrud method that retrieved the results, but due to the fixed size of the cursor, it wasn't able to fully de-duplicate the result.

@alex-mcgovern alex-mcgovern changed the base branch from main to issue-1020 March 4, 2025 15:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant