Closed Bug 389313 Opened 17 years ago Closed 17 years ago

summarize_time.cgi needs some cleanup

Categories

(Bugzilla :: Bugzilla-General, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 3.2

People

(Reporter: LpSolit, Assigned: LpSolit)

References

Details

Attachments

(2 files, 1 obsolete file)

Attached patch patch, v1 (obsolete) — Splinter Review
... a lot of cleanup even, see the patch. This removes many hacks, makes the code much more readable, use bug objects and will easily allow the addition of new information, e.g. bug 286452 which no longer requires to edit the .cgi script, but only to edit the template.

I tested it on both MySQL 5.0 and PostgreSQL 8.2.
Attachment #273480 - Flags: review?(mkanat)
Attached patch patch, v1.1Splinter Review
SELECT * -> SELECT 1
bug_status -> get_status()

No other changes.
Attachment #273480 - Attachment is obsolete: true
Attachment #273619 - Flags: review?(mkanat)
Attachment #273480 - Flags: review?(mkanat)
This backport for 3.0 only fixes a real bug. The bug status is always in english.
Attachment #273622 - Flags: review?(mkanat)
Comment on attachment 273622 [details] [diff] [review]
tiny backport for 3.0, v1

Make sure that you don't use the summary as the checkin comment, on 3.0. (That is, write an actual descriptive checkin comment.)
Attachment #273622 - Flags: review?(mkanat) → review+
Flags: approval3.0+
Comment on attachment 273619 [details] [diff] [review]
patch, v1.1

This tests out just fine. It's a huge cleanup--I didn't review each line in depth, but I tested it and I looked it over generally, and it seems just fine.
Attachment #273619 - Flags: review?(mkanat) → review+
Flags: approval+
tip:

Checking in process_bug.cgi;
/cvsroot/mozilla/webtools/bugzilla/process_bug.cgi,v  <--  process_bug.cgi
new revision: 1.388; previous revision: 1.387
done
Checking in summarize_time.cgi;
/cvsroot/mozilla/webtools/bugzilla/summarize_time.cgi,v  <--  summarize_time.cgi
new revision: 1.22; previous revision: 1.21
done
Checking in template/en/default/bug/summarize-time.html.tmpl;
/cvsroot/mozilla/webtools/bugzilla/template/en/default/bug/summarize-time.html.tmpl,v  <--  summarize-time.html.tmpl
new revision: 1.10; previous revision: 1.9
done
Checking in template/en/default/global/user-error.html.tmpl;
/cvsroot/mozilla/webtools/bugzilla/template/en/default/global/user-error.html.tmpl,v  <--  user-error.html.tmpl
new revision: 1.231; previous revision: 1.230
done


3.0.1:

Checking in template/en/default/bug/summarize-time.html.tmpl;
/cvsroot/mozilla/webtools/bugzilla/template/en/default/bug/summarize-time.html.tmpl,v  <--  summarize-time.html.tmpl
new revision: 1.8.2.1; previous revision: 1.8
done
Status: ASSIGNED → RESOLVED
Closed: 17 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: