Skip to content

Fill TestReport#issue_id field when creating new objects

Felipe Cardozo requested to merge issue_345840-fill_test_reports_issue_id into master

What does this MR do and why?

Populate test_reports.issue_id when creating new reports. Requirement object will be deprecated and replaced with Work items(issues of requirement type).

Until that happens we need to keep both requirement_id and issue_id present. A background migration will populate issue_id for old records.

Migration output

== 20211119170805 RemoveTestReportRequirementIssueConstraint: migrating =======
-- transaction_open?()
   -> 0.0000s
-- transaction_open?()
   -> 0.0000s
-- execute("ALTER TABLE requirements_management_test_reports\nDROP CONSTRAINT IF EXISTS requirements_test_reports_requirement_id_xor_issue_id\n")
   -> 0.0023s
== 20211119170805 RemoveTestReportRequirementIssueConstraint: migrated (0.0057s) 

related to #345840 (closed)

Edited by Felipe Cardozo

Merge request reports

Loading