Skip to content

Fix slack channel validation#4240

Merged
Weves merged 1 commit intomainfrom
fix_slack_regex_validation
Mar 10, 2025
Merged

Fix slack channel validation#4240
Weves merged 1 commit intomainfrom
fix_slack_regex_validation

Conversation

@pablonyx
Copy link
Copy Markdown
Contributor

@pablonyx pablonyx commented Mar 8, 2025

Description

[Provide a brief description of the changes in this PR]

How Has This Been Tested?

[Describe the tests you ran to verify your changes]

Backporting (check the box to trigger backport action)

Note: You have to check that the action passes, otherwise resolve the conflicts manually and tag the patches.

  • This PR should be backported (make sure to check that the backport attempt succeeds)
  • [Optional] Override Linear Check

@pablonyx pablonyx requested a review from a team as a code owner March 8, 2025 19:22
@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 8, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
internal-search ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 8, 2025 7:24pm

Copy link
Copy Markdown
Contributor

@greptile-apps greptile-apps Bot left a comment

Choose a reason for hiding this comment

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

PR Summary

Modified the Slack connector's validation logic to make channel existence checks conditional on regex validation status, improving the handling of channel validation in the connector settings.

  • Updated validate_connector_settings in /backend/onyx/connectors/slack/connector.py to skip channel existence validation when regex matching is enabled
  • Channel validation now only occurs when channel_regex_enabled is false, preventing unnecessary validation for regex-based channel matching
  • Maintains strict validation for specific channel names while allowing flexible regex patterns

1 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings | Greptile

@Weves Weves added this pull request to the merge queue Mar 10, 2025
Merged via the queue into main with commit 8b5e8bd Mar 10, 2025
10 of 12 checks passed
rkuo-danswer pushed a commit that referenced this pull request Mar 10, 2025
rkuo-danswer pushed a commit that referenced this pull request Mar 10, 2025
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