This repository was archived by the owner on Sep 3, 2025. It is now read-only.
feat(case): adds resolved by user to cases#6166
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR adds a "resolved by" feature to cases, tracking which user resolved a case and displaying this information in the UI and Slack messages.
- Adds a
resolved_byfield to the Case model with a foreign key relationship to IndividualContact - Automatically sets the resolved_by field to the current user when a case status is changed to closed
- Updates the UI to display the resolved by user in both the details tab and attributes drawer
Reviewed Changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| src/dispatch/case/models.py | Adds resolved_by field and relationship to Case model |
| src/dispatch/database/revisions/tenant/versions/2025-08-01_4649b11b683f.py | Database migration to add resolved_by_id column |
| src/dispatch/case/service.py | Auto-sets resolved_by when case status changes to closed |
| src/dispatch/static/dispatch/src/case/DetailsTab.vue | Displays resolved by user in resolution details section |
| src/dispatch/static/dispatch/src/case/CaseAttributesDrawer.vue | Shows resolved by user in case attributes |
| src/dispatch/plugins/dispatch_slack/case/messages.py | Includes resolved by information in Slack messages |
aaronherman
approved these changes
Aug 5, 2025
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
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 a "resolved by" feature to cases, tracking which user resolved a case and displaying this information in the UI and Slack messages.
resolved_byfield to the Case model with a foreign key relationship toIndividualContactresolved_byfield to the current user when a case status is changed to closedScreenshot