Skip to content

feat(case_priority): adds ability to disable after-hours warning for case priorities #6127

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 3 commits into from
Jul 14, 2025

Conversation

whitdog47
Copy link
Contributor

@whitdog47 whitdog47 commented Jul 11, 2025

NOTE: Must be merged after #6126 due to database migration

Adds a new disable_delayed_message_warning flag to case priorities so that after-hours Slack notifications can be disabled per priority.

  • Introduces a nullable boolean column and model field for the new flag
  • Updates the UI form, project initialization, and Slack flow to respect the flag
  • Includes an Alembic migration to add the column to the database

@whitdog47 whitdog47 requested a review from Copilot July 11, 2025 19:33
@whitdog47 whitdog47 self-assigned this Jul 11, 2025
@whitdog47 whitdog47 added the enhancement New feature or request label Jul 11, 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

Adds a new disable_delayed_message_warning flag to case priorities so that after-hours Slack notifications can be disabled per priority.

  • Introduces a nullable boolean column and model field for the new flag
  • Updates the UI form, project initialization, and Slack flow to respect the flag
  • Includes an Alembic migration to add the column to the database

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/dispatch/static/dispatch/src/case/priority/store.js Initialized disable_delayed_message_warning in default selected state
src/dispatch/static/dispatch/src/case/priority/NewEditSheet.vue Added checkbox input and mapped state for the new flag
src/dispatch/project/flows.py Populates the new flag from project configuration
src/dispatch/plugins/dispatch_slack/case/interactive.py Skips sending after-hours warning when flag is set
src/dispatch/database/revisions/tenant/versions/2025-07-12_6e66b6578810.py Adds migration to create the new boolean column
src/dispatch/case/priority/models.py Defines the new column and Pydantic field
src/dispatch/case/priority/config.py Sets default values for the new flag in priority presets
Comments suppressed due to low confidence (2)

src/dispatch/plugins/dispatch_slack/case/interactive.py:1333

  • Add a unit or integration test to verify that when disable_delayed_message_warning is True, the after-hours notification is indeed skipped.
    if case_priority_data.disable_delayed_message_warning:

src/dispatch/case/priority/models.py:52

  • Update your API documentation (e.g., OpenAPI schema or user guide) to include disable_delayed_message_warning so consumers know about the new field.
    disable_delayed_message_warning: bool | None = None

@whitdog47 whitdog47 merged commit cefe695 into main Jul 14, 2025
9 checks passed
@whitdog47 whitdog47 deleted the feat/case-priority-no-notify branch July 14, 2025 18:24
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