feat: slack integration (#874)
* feat: init slack integration * dev: create model and update existing view for slack * dev: update slack sync model and create view to install slack * dev: workspace integration query * dev: update the metadata validation for access_token and team_id and save config to database * dev: update validation for team_id * dev: update validation * dev: update validations * dev: remove bot access token field from sync * dev: handle integrity exception
This commit is contained in:
parent
33a904bc3e
commit
fb4535b294
11 changed files with 150 additions and 9 deletions
|
|
@ -132,6 +132,7 @@ from plane.api.views import (
|
|||
GithubIssueSyncViewSet,
|
||||
GithubCommentSyncViewSet,
|
||||
BulkCreateGithubIssueSyncEndpoint,
|
||||
SlackProjectSyncViewSet,
|
||||
## End Integrations
|
||||
# Importer
|
||||
ServiceIssueImportSummaryEndpoint,
|
||||
|
|
@ -1216,6 +1217,26 @@ urlpatterns = [
|
|||
),
|
||||
),
|
||||
## End Github Integrations
|
||||
# Slack Integration
|
||||
path(
|
||||
"workspaces/<str:slug>/projects/<uuid:project_id>/workspace-integrations/<uuid:workspace_integration_id>/project-slack-sync/",
|
||||
SlackProjectSyncViewSet.as_view(
|
||||
{
|
||||
"post": "create",
|
||||
"get": "list",
|
||||
}
|
||||
),
|
||||
),
|
||||
path(
|
||||
"workspaces/<str:slug>/projects/<uuid:project_id>/workspace-integrations/<uuid:workspace_integration_id>/project-slack-sync/<uuid:pk>/",
|
||||
SlackProjectSyncViewSet.as_view(
|
||||
{
|
||||
"delete": "destroy",
|
||||
"get": "retrieve",
|
||||
}
|
||||
),
|
||||
),
|
||||
## End Slack Integration
|
||||
## End Integrations
|
||||
# Importer
|
||||
path(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue