-
Notifications
You must be signed in to change notification settings - Fork 26
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
Introduce support for Slack Enterprise Grid #47
Open
coltoneshaw
wants to merge
16
commits into
master
Choose a base branch
from
enterprise_grid
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
coltoneshaw
commented
Jan 23, 2024
mickmister
approved these changes
Jan 30, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just some comments for discussion. Nice work!
Co-authored-by: Michael Kochell <[email protected]>
mickmister
approved these changes
Mar 14, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR introduces support for Slack Enterprise grid within
mmetl
.How to use this PR
Simply provide it a slack grid export and an accompanying teams.json file.
Teams file example.
T0001
is the team ID that is found within a post atpost.Team
.teamx
is the name of the team, which corresponds to the folder name insideteams/
.What is Enterprise Grid?
It's a collection of slack workspaces under a single organization within Slack. They are able to share channels across slack workspaces and collaborate this way.
The files structure is like:
What does this do?
This PR simply processes the enterprise grid export file by parsing the root level channels for the appropriate team, and placing them there. Then when done, zipping up every team folder as a separate slack export.
How do we know where the channels belong?
For the most part, every channel has a post that has a
Team
attribute on it, like below. These team attributes are used to identify the originating team from the channel and move it there. The appropriate.json
file is then updated with the new information. If for whatever reason a matching team is not found, that item is skipped on the import entirely.Potential Gaps
One potential gap is that this does not go down the list of channel members and repopulate the
users.json
with the members from theorg_users.json
file. The reason is they will most likely be imported multiple teams into their space anyways, so those users would be filled out and added properly. However, it wouldn't be a difficult thing to add here.