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

Additional ACL Tests + Slackbot fix #4430

Merged
merged 20 commits into from
Apr 4, 2025
Merged

Additional ACL Tests + Slackbot fix #4430

merged 20 commits into from
Apr 4, 2025

Conversation

pablonyx
Copy link
Contributor

@pablonyx pablonyx commented Apr 2, 2025

Description

Fixes https://linear.app/danswer/issue/DAN-1732/add-comprehensive-test-for-acls

Fixes https://linear.app/danswer/issue/DAN-1753/fix-slack-connector-perm-group-syncing

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

Copy link

vercel bot commented Apr 2, 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 Apr 4, 2025 9:25pm

@pablonyx pablonyx changed the title Additional ACL Tests Additional ACL Tests + Slackbot fix Apr 3, 2025
@pablonyx pablonyx marked this pull request as ready for review April 3, 2025 23:42
@pablonyx pablonyx requested a review from a team as a code owner April 3, 2025 23:42
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

This PR refactors Slack credential handling, enhances ACL testing, and improves tenant-awareness in group sync operations.

  • /backend/ee/onyx/external_permissions/slack/doc_sync.py: Switches to a credentials provider; ensure channel IDs in doc_metadata always exist in channel_permissions to avoid KeyErrors.
  • /backend/ee/onyx/external_permissions/slack/group_sync.py: Adds a tenant_id parameter, though it is not yet utilized.
  • /backend/onyx/connectors/slack/connector.py: Updates message filtering to exclude bots with "DanswerBot Testing", revising previous filter logic.
  • /backend/ee/onyx/external_permissions/sync_params.py & tests: Integrates Slack group sync into the sync map and refines ACL test setups for robust permission checks.

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

Copy link
Contributor

@evan-danswer evan-danswer left a comment

Choose a reason for hiding this comment

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

some nits

@pablonyx pablonyx enabled auto-merge April 4, 2025 20:18
@pablonyx pablonyx added this pull request to the merge queue Apr 4, 2025
Merged via the queue into main with commit ef978ae Apr 4, 2025
10 of 11 checks passed
@pablonyx pablonyx deleted the acls_applied branch April 4, 2025 23:00
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