Skip to content

Conversation

Weves
Copy link
Contributor

@Weves Weves commented Jul 9, 2025

Description

Fixes https://linear.app/danswer/issue/DAN-2165/stop-fetching-channel-info-to-make-pages-load-faster

Previously took a few seconds to load the page + it only loaded a small subset of channels, which made it misleading.

How Has This Been Tested?

Set up slack bot locally.

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

@Weves Weves requested a review from a team as a code owner July 9, 2025 16:45
Copy link

vercel bot commented Jul 9, 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 Jul 9, 2025 4:48pm

Copy link
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

Performance optimization for Slack bot configuration by removing channel fetch functionality. This significantly improves page load times by:

  • Removed /admin/slack-app/bots/{bot_id}/channels endpoint in backend/onyx/server/manage/slack_bot.py that was causing multi-second delays
  • Replaced Slack channel dropdown with direct text input in web/src/app/admin/bots/[bot-id]/channels/SlackChannelConfigFormFields.tsx to avoid loading incomplete channel lists
  • Eliminated fetchSlackChannels function from web/src/app/admin/bots/[bot-id]/lib.ts, removing a network-heavy operation
  • Improved UX by preventing misleading partial channel lists that only showed first 500 channels

3 files reviewed, no comments
Edit PR Review Bot Settings | Greptile

@raunakab raunakab enabled auto-merge July 9, 2025 17:30
@raunakab raunakab added this pull request to the merge queue Jul 9, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jul 9, 2025
@wenxi-onyx wenxi-onyx merged commit f50006e into main Jul 9, 2025
13 of 15 checks passed
@wenxi-onyx wenxi-onyx deleted the stop-fetchign-channel-info branch July 9, 2025 23:45
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.

3 participants