Closed
Bug 122922
(bz-bugwrite)
Opened 23 years ago
Closed 15 years ago
Use Bug.pm to write changes and new bugs to the database
Categories
(Bugzilla :: Creating/Changing Bugs, enhancement, P1)
Tracking
()
RESOLVED
FIXED
Bugzilla 4.0
People
(Reporter: jayvdb, Assigned: mkanat)
References
(Blocks 2 open bugs)
Details
(Keywords: meta)
Attachments
(2 files)
1.93 KB,
patch
|
bbaetz
:
review-
|
Details | Diff | Splinter Review |
205 bytes,
text/plain
|
Details |
This version of Bug.pm provides a useful Bugzilla API, although it suffers from
the globals of Bugzilla. Given the extent to which this branch improves Bug.pm,
I would be great if only the current functionality of Bug.pm is required to be
tested, the rest then able to be tested and fixed as developers find the need.
Reporter | ||
Comment 1•23 years ago
|
||
Reporter | ||
Comment 2•23 years ago
|
||
Updated•23 years ago
|
Priority: -- → P2
Target Milestone: --- → Bugzilla 2.18
Updated•23 years ago
|
Attachment #67386 -
Attachment is patch: false
Comment 3•23 years ago
|
||
Comment on attachment 67384 [details] [diff] [review]
patch to use allow previously blank fields
Can we get a patch against current CVS?
Also, I'd like to know that someone plans on using this before hand, so that it
doesn'tsuffer bitrot.
Attachment #67384 -
Flags: review-
Comment 4•22 years ago
|
||
*** Bug 181444 has been marked as a duplicate of this bug. ***
Comment 5•21 years ago
|
||
Is it fair to say that this branch is now so old that nothing can be salvaged
which it wouldn't be easier to reimplement?
Gerv
Comment 6•21 years ago
|
||
Believe it or not, it's not. There's a ton of useful stuff in here that never
made it on the trunk. Although I'm sure we'll do it better, there's code in
here we can certainly take :)
Comment 7•21 years ago
|
||
Theres lots of concepts, although I'm not sure how much code; I've rewroked
Bug.pm a fair bit in the mean time.
Comment 8•21 years ago
|
||
Dave said:
> There's a ton of useful stuff in here that never made it on the trunk.
Can you be more specific?
Gerv
Comment 9•21 years ago
|
||
All 2.18 bugs that haven't been touched in over 60 days and aren't flagged as
blockers are getting pushed out to 2.20
Target Milestone: Bugzilla 2.18 → Bugzilla 2.20
Comment 10•21 years ago
|
||
Changing bug to reflect the current scope of what we want. Not sure how much is
on that branch that'll actually be usable anymore. I'm fairly certain the API
it was using isn't what we want.
What needs to be done here is to get all of this "changing the bug" code from
post_bug, process_bug, and attachment.cgi, and get it implemented as methods of
Bug.pm, and allow Bug.pm to write back to the database, including access
control, so that the Bugzilla::Bug object itself enforces who is allowed to make
what changes (the CGI would then look at return codes or exception objects or
something along those lines to decide if it needed to throw an error). The Bug
object should also handle updates to the activity records, so that code is
centralized (currently, activity table updates are duplicated in a few different
places (attachment.cgi comes to mind)). This would also greatly simplify life
for the inbound email code, which currently duplicates a LOT of code from
post_bug and process_bug.
Summary: CYEH_20000628_BRANCH Bug.pm → Allow Bug.pm to write to the database
Assignee | ||
Updated•20 years ago
|
Blocks: bz-majorarch
Assignee | ||
Updated•20 years ago
|
Severity: major → enhancement
Assignee | ||
Updated•20 years ago
|
Alias: bz-bugwrite
Assignee | ||
Comment 11•20 years ago
|
||
I think that in order to allow mass-updates of bugs using Bug objects, there
should be an "fail_on_error" param when you create a bug -- if "fail_on_error"
is true, then we ThrowUserError for errors. If "fail_on_error" is false, we pass
back an error status. That way, not every caller has to check if we failed, only
the mass-read or mass-update callers.
Assignee | ||
Updated•20 years ago
|
Assignee: myk → mkanat
Target Milestone: Bugzilla 2.20 → Bugzilla 2.22
Updated•20 years ago
|
Blocks: webservices
![]() |
||
Comment 12•19 years ago
|
||
The trunk is now frozen to prepare Bugzilla 2.22. Enhancement bugs are retargetted to 2.24.
Target Milestone: Bugzilla 2.22 → Bugzilla 2.24
Assignee | ||
Updated•19 years ago
|
Blocks: bz-email-in
Assignee | ||
Updated•19 years ago
|
Keywords: meta
Summary: Allow Bug.pm to write to the database → Use Bug.pm to write changes and new bugs to the database
Assignee | ||
Updated•19 years ago
|
Blocks: bz-postbugpm
Assignee | ||
Updated•19 years ago
|
No longer blocks: bz-postbugpm
Depends on: bz-postbugpm
Assignee | ||
Updated•19 years ago
|
Blocks: bz-roadmap
Updated•19 years ago
|
QA Contact: mattyt-bugzilla → default-qa
Assignee | ||
Updated•18 years ago
|
Whiteboard: [roadmap: 3.2]
Assignee | ||
Updated•18 years ago
|
Target Milestone: Bugzilla 3.0 → Bugzilla 3.2
Assignee | ||
Updated•18 years ago
|
Depends on: bz-process_bug
Assignee | ||
Updated•18 years ago
|
Priority: P2 → P1
Assignee | ||
Updated•17 years ago
|
Flags: blocking3.2+
![]() |
||
Updated•17 years ago
|
Blocks: bz-ws-update
Assignee | ||
Updated•17 years ago
|
No longer blocks: bz-ws-update
Assignee | ||
Comment 13•17 years ago
|
||
The rest of this bug will be done in 4.0. Bug 367914 may still be a 3.2 blocker, though.
Flags: blocking3.2+ → blocking3.2-
Target Milestone: Bugzilla 3.2 → Bugzilla 4.0
![]() |
||
Updated•17 years ago
|
Blocks: bz-bug-set-all
![]() |
||
Updated•16 years ago
|
Whiteboard: [roadmap: 3.2]
Assignee | ||
Comment 14•15 years ago
|
||
This is now done. :-)
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Target Milestone: Bugzilla 4.0 → Bugzilla 3.8
You need to log in
before you can comment on or make changes to this bug.
Description
•