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

[Slack] Allow indexing private channels #8559

Merged
merged 14 commits into from
Nov 12, 2024
Merged

[Slack] Allow indexing private channels #8559

merged 14 commits into from
Nov 12, 2024

Conversation

philipperolet
Copy link
Contributor

@philipperolet philipperolet commented Nov 8, 2024

Description

Context threads here and here

Private channels in which the Dust bot has been invited are now visible to sync by the admin, with warning.

Looks like this:
image

and this
image

Risk

The PR in itself is low risk (small code change + UX). The product risk is higher but has been discussed, see threads

Deploy Plan

  • deploy front
  • migration_31
  • deploy connectors
  • migration_32

@flvndvd
Copy link
Contributor

flvndvd commented Nov 8, 2024

🔥 Can we just make sure that the auto-join Slack channel does not automatically add private channels 🙏 ?

@philipperolet
Copy link
Contributor Author

🔥 Can we just make sure that the auto-join Slack channel does not automatically add private channels 🙏 ?

Thanks for the check! not sure what you mean? Dust doesn't see private channels it has not been added to by a user of the channel. So it cannot add itself?

But I'd be glad if you could review the PR though 😉 🙏

@philipperolet philipperolet force-pushed the private-slack branch 2 times, most recently from 72226b1 to ea592cc Compare November 8, 2024 17:01
Copy link

github-actions bot commented Nov 8, 2024

Warnings
⚠️

Files in **/lib/models/ have been modified and the PR has the migration-ack label. Don't forget to run the migration from prodbox.

Generated by 🚫 dangerJS against c2c1c76

@flvndvd
Copy link
Contributor

flvndvd commented Nov 8, 2024

🔥 Can we just make sure that the auto-join Slack channel does not automatically add private channels 🙏 ?

Thanks for the check! not sure what you mean? Dust doesn't see private channels it has not been added to by a user of the channel. So it cannot add itself?

But I'd be glad if you could review the PR though 😉 🙏

I meant that in connectors we automatically add Slack channels that match a pattern. We might want to ensure it does not add Private channels automatically. More context here:

export async function autoReadChannel(

@philipperolet philipperolet added the migration-ack 📁 Label to acknowledge that a migration is required. label Nov 8, 2024
@philipperolet
Copy link
Contributor Author

philipperolet commented Nov 8, 2024

it can't add private channels this way because it doesn't see them 🙈

This auto add is for channels for which we receive a webhook notification via the "channels_created" webhook; which is unchanged by this PR so no risk there 👍

If the channel creator added the Dust bot when creating the channel, the channel would indeed be added but that's desired impossible

if (privateNodes.length > 0) {
const confirmed = await confirm({
title: "Sensitive data synchronization",
message: `You are synchronizing data from ${privateNodes
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we say something like "You are synchronizing data from those private channels:"? I think it may be confusing for people if they pick a mix of private an non-private and only see confirmation for some channels.

Also, what if there are 30 private channels selected ? This modal would not really work right ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep, I agree; technically, may not be only channels.
Will do from private source(s): ... and limit to 3 elements with ellipsis
@gabhubert PMRR, happy to change if need be

@philipperolet philipperolet merged commit 3b4ec2a into main Nov 12, 2024
4 checks passed
@philipperolet philipperolet deleted the private-slack branch November 12, 2024 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
migration-ack 📁 Label to acknowledge that a migration is required.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants