This repository was archived by the owner on Sep 3, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 632
feat(slack): adds canvas support for Slack channels #6205
Merged
Merged
Conversation
This file contains hidden or 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
702d897 to
843ce59
Compare
Contributor
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.
Pull Request Overview
This PR adds comprehensive Slack Canvas integration to Dispatch, enabling automatic creation and management of participants canvases for both incidents and cases. The feature provides real-time visibility of participants with dedicated Slack canvases and automatic role updates.
- Implements new Slack Canvas API endpoints with create, edit, and delete functionality
- Creates database models and CRUD operations for canvas management
- Integrates canvas lifecycle management into incident and case flows with automatic creation and updates
Reviewed Changes
Copilot reviewed 14 out of 14 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| src/dispatch/plugins/dispatch_slack/service.py | Added Canvas API functions and updated string formatting |
| src/dispatch/plugins/dispatch_slack/plugin.py | Added Canvas methods to plugin instance |
| src/dispatch/plugins/dispatch_slack/enums.py | Added Canvas API endpoints |
| src/dispatch/incident/models.py | Added canvases relationship |
| src/dispatch/incident/flows.py | Integrated canvas creation and update flows |
| src/dispatch/database/revisions/tenant/versions/2025-08-28_ff08d822ef2c.py | Database migration for canvas table |
| src/dispatch/case/models.py | Added canvases relationship |
| src/dispatch/case/flows.py | Integrated canvas creation and update flows |
| src/dispatch/canvas/service.py | CRUD operations for canvas management |
| src/dispatch/canvas/models.py | SQLAlchemy model and Pydantic schemas |
| src/dispatch/canvas/flows.py | Canvas creation and update business logic |
| src/dispatch/canvas/enums.py | Canvas type enumeration |
| src/dispatch/canvas/init.py | Module initialization |
| src/dispatch/init.py | Added canvas model import |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Contributor
|
@whitdog47 : The changes look good to me. |
jneelamekam
approved these changes
Sep 2, 2025
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
This PR adds comprehensive Slack Canvas integration to Dispatch, enabling automatic creation and management of participants canvases for both incidents and cases. The feature provides real-time visibility of participants in incident and cases with dedicated Slack channels and automatic role updates.
Key Features
Slack Canvas API Integration
create_canvas,edit_canvas, anddelete_canvasfunctions in the Slack serviceParticipants Canvas Management
Database Integration
CanvasSQLAlchemy model withTimeStampMixinandProjectMixinCanvasTypeenum withparticipantstypecanvas/service.pyIncident.canvasesandCase.canvasesLifecycle Integration
incident_create_resources, updated in participant flowscase_create_resources_flow, updated in participant flowsRobust Error Handling
Technical Implementation
Canvas Content Generation
Permission Management
Integration Points
Files Changed
New Files
src/dispatch/canvas/- New canvas packagemodels.py- Canvas SQLAlchemy modelservice.py- CRUD operationsenums.py- CanvasType enumflows.py- Canvas creation/update logicModified Files
src/dispatch/plugins/dispatch_slack/enums.py- Added Canvas API endpointsservice.py- Added canvas API functionsplugin.py- Added canvas methods to plugin instancesrc/dispatch/incident/flows.py- Integrated canvas creation/updatessrc/dispatch/case/flows.py- Integrated canvas creation/updatessrc/dispatch/incident/models.py- Added canvases relationshipsrc/dispatch/case/models.py- Added canvases relationship