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

Team sync changes #23

Merged
merged 30 commits into from
Nov 17, 2023
Merged

Team sync changes #23

merged 30 commits into from
Nov 17, 2023

Conversation

ashfame
Copy link
Member

@ashfame ashfame commented Sep 29, 2023

This PR changes the team sync behavior in following ways:

  • Don't update slack ghost users upon every message as they are already handled in realtime under team sync
  • Fix bug in membership change calculation when syncing channels upon boot
  • Handle channel_archive slack event
  • Define rooms field under teamsync config for who should be the creator, mods and admins in new rooms created by team sync
  • Tweak message that gets posted in a new channel to suggest inviting matrixbridge app
  • Notify admins in admin room for bridge when bridge initialises upon boot, when a slack channel is created/archived/deleted and unlinking of bridge fails upon channel archive/delete event.

Plan to get this deployed:

  1. Review PR (@psrpinto)
  2. Deploy it on staging to test
  3. Deploy on prod

@ashfame ashfame self-assigned this Sep 29, 2023
…long with a list of users who should be moderators in these rooms
- logic for collecting users which are to leave the room was incorrect
- additionally, now we just work with matrix user ids for both leaving/joining of new users, as opposed to working with SlackGhost object
@ashfame ashfame marked this pull request as ready for review October 13, 2023 11:45
Copy link
Member

@psrpinto psrpinto left a comment

Choose a reason for hiding this comment

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

Good stuff! Made some suggestions, and also have a couple of questions.

src/TeamSyncer.ts Show resolved Hide resolved
src/BridgedRoom.ts Outdated Show resolved Hide resolved
src/Main.ts Outdated Show resolved Hide resolved
src/TeamSyncer.ts Show resolved Hide resolved
src/TeamSyncer.ts Outdated Show resolved Hide resolved
src/TeamSyncer.ts Outdated Show resolved Hide resolved
src/TeamSyncer.ts Show resolved Hide resolved
src/TeamSyncer.ts Outdated Show resolved Hide resolved
src/TeamSyncer.ts Outdated Show resolved Hide resolved
src/TeamSyncer.ts Outdated Show resolved Hide resolved
ashfame and others added 7 commits October 17, 2023 12:12
Co-authored-by: Paulo Pinto <paulo.pinto@automattic.com>
Co-authored-by: Paulo Pinto <paulo.pinto@automattic.com>
Co-authored-by: Paulo Pinto <paulo.pinto@automattic.com>
Co-authored-by: Paulo Pinto <paulo.pinto@automattic.com>
@ashfame
Copy link
Member Author

ashfame commented Oct 17, 2023

@psrpinto Thanks for the detailed feedback in this PR, appreciate it! <3

Its ready for you to take another look at it, in addition to your thoughts on the last commit.

@ashfame ashfame requested a review from psrpinto October 17, 2023 15:00
Copy link
Member

@psrpinto psrpinto left a comment

Choose a reason for hiding this comment

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

Looks good!

Last commit looks good, nothing to add.

README.md Outdated Show resolved Hide resolved
@ashfame ashfame merged commit 921113c into develop Nov 17, 2023
2 checks passed
@ashfame ashfame deleted the team_sync branch November 21, 2023 10:31
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