Closed
Bug 440609
Opened 17 years ago
Closed 17 years ago
Implement Bugzilla::Bug->check for use instead of ValidateBugId
Categories
(Bugzilla :: Creating/Changing Bugs, enhancement)
Tracking
()
RESOLVED
FIXED
Bugzilla 3.4
People
(Reporter: mkanat, Assigned: mkanat)
References
(Blocks 1 open bug)
Details
(Whiteboard: [relnote as code change])
Attachments
(1 file)
|
2.00 KB,
patch
|
LpSolit
:
review+
|
Details | Diff | Splinter Review |
Most objects in Bugzilla have a check() function that determines all of the validation about that object when you create it--for example, that you passed in a valid id, that the object isn't undef, that you can see the object, etc.
However, for bugs we're still using the ancient ValidateBugId subroutine. We should have a Bugzilla::Bug->check and be using this instead.
| Assignee | ||
Comment 1•17 years ago
|
||
Here's a simple version of Bug->check to start out with, and a simple use of it in one file.
Assignee: create-and-change → mkanat
Status: NEW → ASSIGNED
Attachment #325889 -
Flags: review?(LpSolit)
Comment 2•17 years ago
|
||
Comment on attachment 325889 [details] [diff] [review]
v1
Looks good. r=LpSolit
Attachment #325889 -
Flags: review?(LpSolit) → review+
Updated•17 years ago
|
Flags: approval+
| Assignee | ||
Comment 3•17 years ago
|
||
Checking in Bugzilla/Bug.pm;
/cvsroot/mozilla/webtools/bugzilla/Bugzilla/Bug.pm,v <-- Bug.pm
new revision: 1.243; previous revision: 1.242
done
Checking in Bugzilla/WebService/Bug.pm;
/cvsroot/mozilla/webtools/bugzilla/Bugzilla/WebService/Bug.pm,v <-- Bug.pm
new revision: 1.13; previous revision: 1.12
done
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
| Assignee | ||
Updated•17 years ago
|
Target Milestone: Bugzilla 4.0 → Bugzilla 3.4
| Assignee | ||
Comment 4•16 years ago
|
||
Added to the release notes for Bugzilla 3.4 in bug 494037.
Keywords: relnote
You need to log in
before you can comment on or make changes to this bug.
Description
•