Open Bug 576317 Opened 14 years ago Updated 11 years ago

When deleting a bug which has dupes, duplicates cannot be edited anymore

Categories

(Bugzilla :: Administration, task, P4)

Tracking

()

People

(Reporter: LpSolit, Unassigned)

Details

Attachments

(1 file)

When deleting a bug which has dupes, duplicates cannot be edited anymore till you fix the "duplicate of" field. We should either forbid the bug deletion, or reopen duplicates.
  I'd go with forbidding the bug deletion. This simplest way to do this is to make the "dupe" field have a RESTRICT FK instead of a CASCADE FK.
Priority: -- → P4
Flags: blocking4.0+
Target Milestone: --- → Bugzilla 4.0
Attached patch Fix The FKSplinter Review
This fixes the FK. However, as I was working on it, I realized that the fix is actually a lot more complicated. If we're going to make the fk into a RESTRICT fk, then we have to re-order all deletes to happen so that dupes are deleted before their dupe_of, and that's pretty complex just to fix this pretty-minor bug.
Given the complexity, I've decided that this isn't a blocker.
Flags: blocking4.0+ → blocking4.0-
Target Milestone: Bugzilla 4.0 → ---
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: