Closed Bug 288461 Opened 20 years ago Closed 20 years ago

sanitycheck.cgi should permit to clean all invalid references to deleted bugs

Categories

(Bugzilla :: Administration, task)

2.19.2
task
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 2.20

People

(Reporter: LpSolit, Assigned: LpSolit)

References

Details

Attachments

(1 file, 1 obsolete file)

Bug 86328 is about deleting bugs and all references to them correctly. But it
does not handle bugs already removed, leaving a lot of warnings when running
sanitycheck.cgi. When sanitycheck.cgi detects references to deleted bugs, it
should offer a link to clean all references to them (see the list of tables
concerned in my patch in bug 86328).

I mark bug 86328 as a blocker of this one as we have to be consistent in the way
we treat deleted bugs.
Attached patch patch, v1 (obsolete) — Splinter Review
a link is displayed if bad references to bugs.bug_id are found, allowing you to
remove all these invalid references.
Attachment #179184 - Flags: review?(bugzilla)
Attached patch patch, v2Splinter Review
some optimisation here...
Attachment #179184 - Attachment is obsolete: true
Attachment #179185 - Flags: review?(bugzilla)
Attachment #179184 - Flags: review?(bugzilla)
Comment on attachment 179185 [details] [diff] [review]
patch, v2

looks ok, r=glob
Attachment #179185 - Flags: review?(bugzilla) → review+
Status: NEW → ASSIGNED
Flags: approval?
Target Milestone: --- → Bugzilla 2.20
Hmm, since we just got working delete code, I suppose this helps people who use
it to clean up after their older deletion attempts...  Otherwise, this is
pushing it for 2.20
Flags: approval? → approval+
Checking in sanitycheck.cgi;
/cvsroot/mozilla/webtools/bugzilla/sanitycheck.cgi,v  <--  sanitycheck.cgi
new revision: 1.93; previous revision: 1.92
done
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: