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)

3.1.4
enhancement
Not set
normal

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)

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.
Attached patch v1Splinter Review
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)
Blocks: 440612
Comment on attachment 325889 [details] [diff] [review] v1 Looks good. r=LpSolit
Attachment #325889 - Flags: review?(LpSolit) → review+
Flags: approval+
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
Keywords: relnote
Whiteboard: [relnote as code change]
Target Milestone: Bugzilla 4.0 → Bugzilla 3.4
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.

Attachment

General

Created:
Updated:
Size: