Skip to content
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

Deduplicate Group Ids on Conversation #11529

Merged
merged 1 commit into from
Mar 21, 2025

Conversation

flvndvd
Copy link
Contributor

@flvndvd flvndvd commented Mar 21, 2025

Description

When multiple agents with the same group requirements are mentioned in a single message, we were storing duplicate group requirements in the conversation's requestedGroupIds. While this didn't affect permissions or functionality (since duplicate requirements don't change the permission logic), it could potentially lead to unnecessary growth of the requestedGroupIds array in the database.

Tests

Risk

Deploy Plan

@flvndvd flvndvd marked this pull request as ready for review March 21, 2025 14:16
Copy link
Contributor

@spolu spolu left a comment

Choose a reason for hiding this comment

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

LGTM

@flvndvd flvndvd merged commit b832b38 into main Mar 21, 2025
7 checks passed
@flvndvd flvndvd deleted the flav/de-duplicate-group-ids-on-conversation branch March 21, 2025 14:31
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.

2 participants