Skip to content

Commit 7601f2c

Browse files
anshbansalshirshanka
authored andcommitted
docs(notifications): slack notification docs (datahub-project#5871)
1 parent 7d54db3 commit 7601f2c

File tree

11 files changed

+112
-15
lines changed

11 files changed

+112
-15
lines changed

docs-website/genJsonSchema/generateJsonSchema.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ if [ -f "${SCHEMA_ROOT_DIR}/${SCHEMA_FILE_NAME}" ]; then
66
fi
77

88
echo "Generating Json schema..."
9-
python gen_json_schema.py ../../docs/generated/ingestion/config_schemas/ ${SCHEMA_ROOT_DIR}/${SCHEMA_FILE_NAME}
9+
python3 gen_json_schema.py ../../docs/generated/ingestion/config_schemas/ ${SCHEMA_ROOT_DIR}/${SCHEMA_FILE_NAME}

docs-website/sidebars.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -445,11 +445,11 @@ module.exports = {
445445
"docs/domains",
446446
"docs/how/business-glossary-guide",
447447
"docs/tags",
448-
// {
449-
// type: "doc",
450-
// id: "docs/wip/slack-notifications",
451-
// className: "saasOnly",
452-
// },
448+
{
449+
type: "doc",
450+
id: "docs/managed-datahub/saas-slack-setup",
451+
className: "saasOnly",
452+
},
453453
// "docs/wip/ui-ingestion-guide", -- not needed
454454
// "docs/wip/personal-access-tokens-guide", -- not needed
455455

docs-website/src/pages/docs/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ const featureGuideContent = [
102102
{ title: "Metadata Tests", icon: <CheckCircleTwoTone />, to: "docs/wip/metadata-tests" },
103103
{ title: "Approval Flows", icon: <SafetyCertificateTwoTone />, to: "docs/wip/approval-workflows" },
104104
{ title: "Personal Access Tokens", icon: <LockTwoTone />, to: "docs/authentication/personal-access-tokens" },
105-
{ title: "Slack Notifications", icon: <SlackOutlined />, to: "docs/wip/slack-notifications" },
105+
{ title: "Slack Notifications", icon: <SlackOutlined />, to: "docs/managed-datahub/saas-slack-setup" },
106106
{ title: "Schema History", icon: <HistoryOutlined />, to: "docs/schema-history" },
107107
];
108108

96.2 KB
Loading
105 KB
Loading

docs/imgs/slack/slack_channel.png

133 KB
Loading
12.9 KB
Loading
98 KB
Loading

docs/imgs/slack/slack_user_id.png

39.1 KB
Loading

docs/managed-datahub/saas-slack-setup.md

Lines changed: 105 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,108 @@ import FeatureAvailability from '@site/src/components/FeatureAvailability';
44

55
<FeatureAvailability saasOnly />
66

7-
This page is under construction - more details coming soon!
7+
## Install the DataHub Slack App into your Slack workspace
8+
9+
The following steps should be performed by a Slack Workspace Admin.
10+
- Navigate to https://api.slack.com/apps/
11+
- Click Create New App
12+
- Use “From an app manifest” option
13+
- Select your workspace
14+
- Paste this Manifest in YAML. Suggest changing name and `display_name` to be `DataHub App YOUR_TEAM_NAME` but not required. This name will show up in your slack workspace
15+
```yml
16+
display_information:
17+
name: DataHub App
18+
description: An app to integrate DataHub with Slack
19+
background_color: "#000000"
20+
features:
21+
bot_user:
22+
display_name: DataHub App
23+
always_online: false
24+
oauth_config:
25+
scopes:
26+
bot:
27+
- channels:read
28+
- chat:write
29+
- commands
30+
- groups:read
31+
- im:read
32+
- mpim:read
33+
- team:read
34+
- users:read
35+
- users:read.email
36+
settings:
37+
org_deploy_enabled: false
38+
socket_mode_enabled: false
39+
token_rotation_enabled: false
40+
```
41+
42+
Confirm you see the Basic Information Tab
43+
44+
![](../imgs/slack/slack_basic_info.png)
45+
46+
- Click **Install to Workspace**
47+
- It will show you permissions the Slack App is asking for, what they mean and a default channel in which you want to add the slack app
48+
- Note that the Slack App will only be able to post in channels that the app has been added to. This is made clear by slack’s Authentication screen also.
49+
- Select the channel you'd like notifications to go to and click **Allow**
50+
- Go to DataHub App page
51+
- You can find your workspace's list of apps at https://api.slack.com/apps/
52+
53+
## Generating a Bot Token
54+
55+
- Go to **OAuth & Permissions** Tab
56+
57+
![](../imgs/slack/slack_oauth_and_permissions.png)
58+
59+
Here you'll find a “Bot User OAuth Token” which DataHub will need to communicate with your slack through the bot.
60+
In the next steps, we'll show you how to configure the Slack Integration inside of Acryl DataHub.
61+
62+
## Configuring Notifications
63+
64+
> In order to set up the Slack integration, the user must have the `Manage Platform Settings` privilege.
65+
66+
To enable the integration with slack
67+
- Navigate to **Settings > Integrations**
68+
- Click **Slack**
69+
- Enable the Integration
70+
- Enter the **Bot Token** obtained in the previous steps
71+
- Enter a **Default Slack Channel** - this is where all notifications will be routed unless
72+
- Click **Update** to save your settings
73+
74+
![](../imgs/slack/slack_add_token.png)
75+
76+
To enable and disable specific types of notifications, or configure custom routing for notifications, start by navigating to **Settings > Notifications**.
77+
To enable or disable a specific notification type in Slack, simply click the check mark. By default, all notification types are enabled.
78+
To customize the channel where notifications are send, click the button to the right of the check box.
79+
80+
![](../imgs/slack/slack_channel.png)
81+
82+
If provided, a custom channel will be used to route notifications of the given type. If not provided, the default channel will be used.
83+
That's it! You should begin to receive notifications on Slack. Note that it may take up to 1 minute for notification settings to take effect after saving.
84+
85+
## Sending Notifications
86+
87+
For now we support sending notifications to
88+
- Slack Channel ID (e.g. `C029A3M079U`)
89+
- Slack Channel Name (e.g. `#troubleshoot`)
90+
- Specific Users (aka Direct Messages or DMs) via user ID
91+
92+
## How to find Team ID and Channel ID in Slack
93+
94+
- Go to the Slack channel for which you want to get channel ID
95+
- Check the URL e.g. for the troubleshoot channel in OSS DataHub slack
96+
97+
![](../imgs/slack/slack_channel_url.png)
98+
99+
- Notice `TUMKD5EGJ/C029A3M079U` in the URL
100+
- Team ID = `TUMKD5EGJ` from above
101+
- Channel ID = `C029A3M079U` from above
102+
103+
## How to find User ID in Slack
104+
105+
- Go to user DM
106+
- Click on their profile picture
107+
- Click on View Full Profile
108+
- Click on “More”
109+
- Click on “Copy member ID”
110+
111+
![](../imgs/slack/slack_user_id.png)

0 commit comments

Comments
 (0)