Repository navigation
fix(search-mcp): skip Slack for an email person filter without users:read.email, and quote Gmail person addresses - #10454
Merged
Conversation
…read.email, and quote Gmail person addresses
- A Slack account without users:read.email cannot find a member by email, so an involving email
search now skips it with the cannot-filter status instead of asking for a reconnect that the
default Slack connection cannot satisfy.
- Gmail person clauses quote the address, so characters valid in an email local part ({ } |) no
longer break the {from: to: cc:} group.
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
[Medium impact] This PR appears safe to merge. SummarySlack accounts without
Reviews (1) · Last reviewed commit: "fix(search-mcp): skip Slack for an email..." · Reviewed by Greptile |
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
involvingemail search needsusers:read.emailto find the member, and the default Slack connection doesn't request that scope. Accounts without it are now skipped with the standard "cannot filter by this person" status. Before, they returned a "reconnect Slack" error that reconnecting couldn't fix.involving: "me"is unchanged.{,}and|, which are valid in an email local part, no longer break the{from: to: cc:}group. The quoted form returns the same messages as the unquoted one.Type of Change
Testing
lib/sim-search/live/providers.test.ts(2 new tests; both fail with the fix reverted) andlib/sim-search/live/application.test.ts: 143 passedChecklist
test-auditauthoring gate)