incubator-devlake icon indicating copy to clipboard operation
incubator-devlake copied to clipboard

feat(dora): add incident related tables

Open d4x1 opened this issue 1 year ago • 1 comments

⚠️ Pre Checklist

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

  • [x] I have read through the Contributing Documentation.
  • [ ] I have added relevant tests.
  • [ ] I have added relevant documentation.
  • [x] I will add labels to the PR, such as pr-type/bug-fix, pr-type/feature-development, etc.

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 avatar Jun 21 '24 09:06 d4x1

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

d4x1 avatar Jun 21 '24 09:06 d4x1