Closed
Bug 385849
Opened 18 years ago
Closed 18 years ago
Make Bugzilla::Bug do updating for op_sys, rep_platform, and other product-inspecific fields
Categories
(Bugzilla :: Creating/Changing Bugs, enhancement)
Tracking
()
RESOLVED
FIXED
Bugzilla 3.2
People
(Reporter: mkanat, Assigned: mkanat)
References
Details
Attachments
(1 file, 1 obsolete file)
|
7.83 KB,
patch
|
LpSolit
:
review+
|
Details | Diff | Splinter Review |
Now that we've handled most of the tables external to the "bugs" table (cc, keywords, dependencies), it's time to start work on the actual bugs table itself.
The easiest things to move should be op_sys, rep_platform, etc. But not resolution or bug_status--those are complex and they'll come later.
| Assignee | ||
Comment 1•18 years ago
|
||
Here's what I have so far. I like it pretty well. Just need to implement the actual updating and then do some testing.
| Assignee | ||
Comment 2•18 years ago
|
||
Might as well do status_whiteboard and short_desc while we're at it.
Summary: Make Bugzilla::Bug do updating for op_sys, rep_platform, and other product-inspecific select fields → Make Bugzilla::Bug do updating for op_sys, rep_platform, and other product-inspecific fields
| Assignee | ||
Comment 3•18 years ago
|
||
Okay, here we go! Tested and works.
Attachment #269785 -
Attachment is obsolete: true
Attachment #271602 -
Flags: review?(LpSolit)
Comment 4•18 years ago
|
||
Comment on attachment 271602 [details] [diff] [review]
v1
>Index: Bugzilla/Bug.pm
>+# To run check_can_change_field.
>+sub _set_global_validator {
Do you realize you are currently calling check_can_change_field() twice per field? Once in process_bug.cgi and once again here.
>+ my $privs;
>+ $self->check_can_change_field($field, $current_value, $value, $privs)
You have to pass $privs by reference to get the returned value.
I still have to test your patch before granting review.
| Assignee | ||
Comment 5•18 years ago
|
||
(In reply to comment #4)
> Do you realize you are currently calling check_can_change_field() twice per
> field? Once in process_bug.cgi and once again here.
Yes, I do realize. Eventually we'll make it only happen once, when everything is moved out of process_bug and into Bugzilla::Bug. (This will be before 3.2.) In the mean time, it doesn't cause any actual performance problem, it's just messy.
> You have to pass $privs by reference to get the returned value.
Oh, thanks!
Comment 6•18 years ago
|
||
Comment on attachment 271602 [details] [diff] [review]
v1
>Index: Bugzilla/Bug.pm
>+sub _set_global_validator {
>+ $self->check_can_change_field($field, $current_value, $value, $privs)
Do not forget to write \$privs when committing your patch. r=LpSolit
Attachment #271602 -
Flags: review?(LpSolit) → review+
Updated•18 years ago
|
Flags: approval+
| Assignee | ||
Comment 7•18 years ago
|
||
Okay, I fixed the $privs thing. :-)
Checking in process_bug.cgi;
/cvsroot/mozilla/webtools/bugzilla/process_bug.cgi,v <-- process_bug.cgi
new revision: 1.374; previous revision: 1.373
done
Checking in Bugzilla/Bug.pm;
/cvsroot/mozilla/webtools/bugzilla/Bugzilla/Bug.pm,v <-- Bug.pm
new revision: 1.188; previous revision: 1.187
done
Checking in Bugzilla/Object.pm;
/cvsroot/mozilla/webtools/bugzilla/Bugzilla/Object.pm,v <-- Object.pm
new revision: 1.16; previous revision: 1.15
done
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•