Skip to content

feat(case): adds resolved by user to cases #6166

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

Merged
merged 5 commits into from
Aug 12, 2025

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 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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants