-
Notifications
You must be signed in to change notification settings - Fork 340
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
New Intel: Slack #1184
New Intel: Slack #1184
Conversation
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.
This is awesome!
Just a few small things to change
slack_client = WebClient(token=config.slack_token) | ||
slack_client.retry_handlers.append(rate_limit_handler) | ||
|
||
for team_id in config.slack_teams.split(','): |
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.
I know there are different types of slack tokens, and they work a bit differently at the Team and Enterprise levels. But but have you considered using the auth.teams.list method for discovery?
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.
I will explore this.
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.
This is awesome!
Just a few small things to change
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.
Overall it looks good to me, left comments about relationship direction for RESOURCE
) -> None: | ||
team = get(slack_client, team_id) | ||
load_team(neo4j_session, team, update_tag) | ||
|
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.
Right, since Team is the sub resource for Slack, I think we can get away with not having an automatic cleanup.
@achantavy @ramonpetgrave64 Two remaining points before we can proceed:
|
Summary
If you are modifying or implementing a new intel module
get_
,transform_
,load_
, andcleanup_
functionstransform_
function with sample data