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

feat(security events): Add event reporting form#5904

Merged
aaronherman merged 9 commits into
mainfrom
feat/security-event-reporting
Apr 17, 2025
Merged

feat(security events): Add event reporting form#5904
aaronherman merged 9 commits into
mainfrom
feat/security-event-reporting

Conversation

@aaronherman
Copy link
Copy Markdown
Contributor

This pull request introduces a new feature for reporting and managing security events. The key updates include adding support for event paging messages, extending the case model to include an event attribute, and implementing new UI components for event reporting.

Backend Changes:

  • Event Paging Message Functionality:

    • Added a new function send_event_paging_message to notify reporters about engaging on-call teams for immediate assistance if they didn't report it as urgent initially. This function integrates with the conversation plugin to send messages to the appropriate channel.
    • Updated the case_new_create_flow to page the team when a case requires urgent attention.
  • Case Model Extension:

    • Added a new optional event attribute to the CaseCreate model to differentiate between regular cases and event-related cases.

Frontend Changes:

  • Event Reporting UI:
    • Introduced a new ReportForm.vue and ReportSubmissionCard.vue component for reporting security events.

@aaronherman aaronherman added the enhancement New feature or request label Apr 17, 2025
@aaronherman aaronherman self-assigned this Apr 17, 2025
Copy link
Copy Markdown
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 introduces a new feature for reporting and managing security events by adding backend support for event paging messages, extending the case model with an event flag, and implementing new Vue components for event reporting.

  • New router entry added for event reporting.
  • Added UI components (ReportForm.vue and ReportSubmissionCard.vue) for event reporting.
  • Updated the case store, models, messaging, and case creation flow to support events.

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/dispatch/static/dispatch/src/router/config.js Added a new route for event reporting.
src/dispatch/static/dispatch/src/events/ReportSubmissionCard.vue Implemented event report submission component.
src/dispatch/static/dispatch/src/events/ReportForm.vue Added event reporting form component.
src/dispatch/static/dispatch/src/case/store.js Extended case store with an event flag.
src/dispatch/case/models.py Extended the case model to include an event attribute.
src/dispatch/case/messaging.py Added event paging messaging functionality.
src/dispatch/case/flows.py Modified case creation flow to trigger event paging messaging.
Comments suppressed due to low confidence (2)

src/dispatch/static/dispatch/src/events/ReportForm.vue:27

  • The component name 'CaseReportForm' does not match the file name 'ReportForm.vue'. Consider renaming the component or file for consistency.
name: "CaseReportForm",

src/dispatch/static/dispatch/src/events/ReportSubmissionCard.vue:141

  • Assigning 'this.event' in the created hook may conflict with the computed field mapped from Vuex ('selected.event'). Verify that this update targets the intended property.
this.event = true

@whitdog47 whitdog47 requested a review from mvilanova April 17, 2025 16:30
Comment thread src/dispatch/static/dispatch/src/events/ReportSubmissionCard.vue
Comment thread src/dispatch/case/models.py
Comment thread src/dispatch/static/dispatch/src/events/ReportSubmissionCard.vue Outdated
Comment thread src/dispatch/case/messaging.py Outdated
aaronherman and others added 3 commits April 17, 2025 13:14
Co-authored-by: David Whittaker <84562015+whitdog47@users.noreply.github.com>
Signed-off-by: Aaron Herman <aaron@aaronherman.co>
@whitdog47 whitdog47 self-requested a review April 17, 2025 18:37
Comment thread src/dispatch/case/messaging.py Outdated
@aaronherman aaronherman merged commit 2bee634 into main Apr 17, 2025
9 checks passed
@aaronherman aaronherman deleted the feat/security-event-reporting branch April 17, 2025 20:00
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.

4 participants