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

refactor(slack): dedicated signal folder, break down commands by feature, build reusable components #5422

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/dispatch/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -1016,6 +1016,7 @@ def run_slack_websocket(organization: str, project: str):
from dispatch.plugins.dispatch_slack.bolt import app
from dispatch.plugins.dispatch_slack.case.interactive import configure as case_configure
from dispatch.plugins.dispatch_slack.incident.interactive import configure as incident_configure
from dispatch.plugins.dispatch_slack.signal.interactive import configure as signal_configure
from dispatch.plugins.dispatch_slack.workflow import configure as workflow_configure
from dispatch.project import service as project_service
from dispatch.project.models import ProjectRead
Expand Down Expand Up @@ -1054,6 +1055,7 @@ def run_slack_websocket(organization: str, project: str):
incident_configure(instance.configuration)
workflow_configure(instance.configuration)
case_configure(instance.configuration)
signal_configure(instance.configuration)

app._token = instance.configuration.api_bot_token.get_secret_value()

Expand Down
9 changes: 0 additions & 9 deletions src/dispatch/plugins/dispatch_slack/case/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,6 @@ class CaseShortcutCallbacks(DispatchEnum):
report = "case-report"


class SignalNotificationActions(DispatchEnum):
snooze = "signal-notification-snooze"


class SignalSnoozeActions(DispatchEnum):
preview = "case-notification-snooze-preview"
submit = "case-notification-snooze-submit"


class SignalEngagementActions(DispatchEnum):
approve = "signal-engagement-approve"
deny = "signal-engagement-deny"
Expand Down
Loading
Loading