apache / incubator-devlake

Apache DevLake is an open-source dev data platform to ingest, analyze, and visualize the fragmented data from DevOps tools, extracting insights for engineering excellence, developer experience, and community growth.
https://devlake.apache.org/
Apache License 2.0
2.5k stars 493 forks source link

feat(dora): add incident related tables #7652

Open d4x1 opened 1 week ago

d4x1 commented 1 week ago

⚠️ Pre Checklist

Please complete ALL items in this checklist, and remove before submitting

Summary

What does this PR do?

  1. [x] Add new tables: incidents and incident_assignees
    • Records in incidents are from issues(with type = 'INCIDNET') or pull_requests(whose lables satisfy some rules, rules are still WIP)
  2. [x] Rename table project_issue_metrics to project_incident_deployment_relationships
  3. [x] DORA plugin: add new tasks
    • [x] ConvertIssuesToIncidents generates incidents from issues
    • [ ] ConvertPullRequestToIncidents generates incidents from pull_requests
  4. [x] Update webhook, create/close incident directly.

Does this close any open issues?

Closes N/A

Screenshots

Include any relevant screenshots here.

incident_assignees

image

incidents

image

Other Information

Any other information that is important to this PR.

d4x1 commented 1 week ago

I am not sure whether this pr should be cherry picked to release-v1.0 or not.