Skip to content
This repository was archived by the owner on Sep 3, 2025. It is now read-only.

Conversation

@whitdog47
Copy link
Contributor

@whitdog47 whitdog47 commented Aug 1, 2025

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_by field 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 full case page view

Screenshot

image

@whitdog47 whitdog47 requested a review from Copilot August 1, 2025 22:47
@whitdog47 whitdog47 self-assigned this Aug 1, 2025
@whitdog47 whitdog47 added the enhancement New feature or request label Aug 1, 2025
Copy link
Contributor

Copilot AI left a 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 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_by field 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

@whitdog47 whitdog47 requested a review from aaronherman August 1, 2025 23:21
@whitdog47 whitdog47 merged commit 39ea20f into main Aug 12, 2025
14 checks passed
@whitdog47 whitdog47 deleted the fix/auto-resolve-put-user-in-resolution-text branch August 12, 2025 18:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants