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
Conversation
Contributor
There was a problem hiding this comment.
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
suggested changes
Apr 17, 2025
whitdog47
suggested changes
Apr 17, 2025
Co-authored-by: David Whittaker <84562015+whitdog47@users.noreply.github.com> Signed-off-by: Aaron Herman <aaron@aaronherman.co>
…tflix/dispatch into feat/security-event-reporting
whitdog47
approved these changes
Apr 17, 2025
mvilanova
approved these changes
Apr 17, 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 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
eventattribute, and implementing new UI components for event reporting.Backend Changes:
Event Paging Message Functionality:
send_event_paging_messageto 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.case_new_create_flowto page the team when a case requires urgent attention.Case Model Extension:
eventattribute to theCaseCreatemodel to differentiate between regular cases and event-related cases.Frontend Changes:
ReportForm.vueandReportSubmissionCard.vuecomponent for reporting security events.