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

Conversation

@whitdog47
Copy link
Contributor

This pull request introduces a new feature that generates a summary for incidents at the time of closure. The summary is generated using the artificial-intelligence plugin and is integrated into the incident management system's UI, providing a concise overview of the incident's key details and resolution. Fixes DISDEV-379.

Key Changes

  • Database Schema Update: Added a new summary column to the incident table to store the generated summaries.
  • Incident Flow Enhancement: Modified the incident_closed_status_flow to trigger the summary generation process when an incident is closed.
  • AI Integration: Utilized an AI plugin to generate a summary based on the incident's review document. The summary includes details such as what happened, risks, mitigations, resolution, and follow-up tasks.
  • UI Updates:
    • Added a new section in the TimelineReportTab.vue to display the AI-generated summary.
    • Included a "Regenerate" button to allow users to regenerate the summary if needed.
    • Styled the summary section with appropriate CSS for better readability.
  • API and Store Modifications:
    • Added a new API endpoint to regenerate the incident summary.
    • Updated the Vuex store to handle the summary data and regeneration action.

SAMPLE

image

@whitdog47 whitdog47 added the enhancement New feature or request label Dec 6, 2024
@whitdog47 whitdog47 requested a review from wssheldon December 6, 2024 18:57
@whitdog47 whitdog47 self-assigned this Dec 6, 2024
@whitdog47 whitdog47 changed the title Enhancement/add summary to report tab feat(ui): add summary to report tab Dec 6, 2024
@whitdog47 whitdog47 changed the title feat(ui): add summary to report tab feat(ui): add incident summary to report tab Dec 6, 2024
@whitdog47 whitdog47 changed the title feat(ui): add incident summary to report tab feat(ui): add incident summary to Reports tab Dec 6, 2024
@whitdog47 whitdog47 marked this pull request as ready for review December 6, 2024 19:10
@whitdog47 whitdog47 merged commit f2f709f into master Dec 6, 2024
11 checks passed
@whitdog47 whitdog47 deleted the enhancement/add-summary-to-report-tab branch December 6, 2024 19:49
Comment on lines +446 to +453
ai_plugin = plugin_service.get_active_instance(
db_session=db_session, plugin_type="artificial-intelligence", project_id=incident.project.id
)
if not ai_plugin:
log.info(
f"Incident summary not generated for incident {incident.id}. No AI plugin enabled."
)
return "Incident summary not generated. No AI plugin enabled."
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be the first check?

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