Closed Bug 413183 Opened 17 years ago Closed 15 years ago

Move the changes done by RemoveVotes and CheckIfVotedConfirmed from process_bug.cgi to Bugzilla::Bug

Categories

(Bugzilla :: Creating/Changing Bugs, enhancement)

3.1.2
enhancement
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: mkanat, Unassigned)

References

Details

Attachments

(1 file, 1 obsolete file)

Right now process_bug manually checks if a bug was confirmed by popular vote by being moved to a new product. It does this in the update() loop. Instead, we should have this logic happen inside set_product in Bugzilla::Bug (now that we have set_status).
Assignee: create-and-change → LpSolit
Blocks: 405946
Attached patch patch, v1 (obsolete) — Splinter Review
Emails are still sent by process_bug.cgi, but this should be addressed by bug 413215.
Attachment #302663 - Flags: review?(mkanat)
Attached patch patch, v1.1Splinter Review
Forgot to change the returned value.
Attachment #302663 - Attachment is obsolete: true
Attachment #302664 - Flags: review?(mkanat)
Attachment #302663 - Flags: review?(mkanat)
Comment on attachment 302664 [details] [diff] [review] patch, v1.1 What I would rather see is a subroutine that adjusts and validates votes on the object and adds a comment to {added_comments} on the other bug, and then does the actual updating during update().
Comment on attachment 302664 [details] [diff] [review] patch, v1.1 Yes, you are right. Makes perfect sense.
Attachment #302664 - Flags: review?(mkanat)
No longer blocks: 405946
Blocks: bz-bugwrite
No longer blocks: bz-process_bug
Target Milestone: Bugzilla 3.2 → Bugzilla 4.0
The voting system is no longer in the core code of Bugzilla, so these two subroutines are gone from process_bug.cgi.
Assignee: LpSolit → create-and-change
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → WORKSFORME
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: