Closed
Bug 136603
Opened 24 years ago
Closed 23 years ago
show_bug.cgi's XML retrieval needs a summary mode
Categories
(Bugzilla :: Creating/Changing Bugs, defect)
Tracking
()
RESOLVED
FIXED
Bugzilla 2.18
People
(Reporter: bbaetz, Assigned: gerv)
References
Details
Attachments
(1 file)
|
3.32 KB,
patch
|
bbaetz
:
review+
|
Details | Diff | Splinter Review |
bots don't want every comment, and if you don't want to change data via teh
xmlrpc stuff we don't support, you may want to use the shadowdb.
We should have either a mode which allows the user to select what fields they
want, and/or a nocomments mode for xml output. This would also be useful when we
start dumping attachment data.
Updated•24 years ago
|
Target Milestone: --- → Future
| Assignee | ||
Comment 1•23 years ago
|
||
I can do this as part of the templatisation.
Gerv
Comment 2•23 years ago
|
||
Did you, Gerv?
| Assignee | ||
Comment 3•23 years ago
|
||
No, because I haven't templatised XML output yet. I produced a patch, but people
were of the view that it wasn't the right approach.
Gerv
| Reporter | ||
Comment 4•23 years ago
|
||
I have half of such a patch - its mainly waiting on groups to go in, since it
changes much of the same code.
| Assignee | ||
Comment 5•23 years ago
|
||
bbaetz: this would be pretty trivial now - a few tests on a boolean in the
template, and a bit in show_bug.cgi which turns a URL parameter into that
boolean. It wouldn't need and UI because it's for bots (we should probably
document it, though.) Are you up for this, or have you more important things to
do? :-)
Gerv
| Reporter | ||
Comment 6•23 years ago
|
||
I think we should just list the requested fields somehow, as comma separated, or
multiple params, or something.
Does that sound workable?
| Assignee | ||
Comment 7•23 years ago
|
||
Well, we'd have to translate each individual parameter to a template variable in
the multiple parameters case. We could use a comma-separated list and create a
template variable of value "1" with the same name as each item in the list. That
would be less crufty.
...&ctype=xml&fields=bug_status,priority...
Gerv
| Reporter | ||
Comment 8•23 years ago
|
||
I was thinging along the lines of
&field=foo&field=bar&field=baz
which gives a list within perl. I split up stuff for my just-checked-in xml
patch, because comma separation doesn't work if an alias contains a comma. (Plus
long_list was inconsistent)
Thats not an issue here, though, I guess, since fields can't contain commas.
| Assignee | ||
Comment 9•23 years ago
|
||
The field stuff sounds great. However, how are we going to make "no parameters"
mean "everything"? Are all our tests going to have to be:
[% IF !fields OR fields.bug_status %]
<bug_status>...</bug_status>
[% END %]
?
Gerv
| Reporter | ||
Comment 10•23 years ago
|
||
Same way as from |fields| - we can set the var to the list of all fields if its
empty, from within the cgi.
| Assignee | ||
Comment 11•23 years ago
|
||
The problem with that is that we then have to maintain a list of all the fields,
which sucks a bit. Given the choice, I'd rather have double-barrelled IF tests
than that...
Gerv
| Reporter | ||
Comment 12•23 years ago
|
||
We already have a list of all the fields - we sort of have to, if we want to
iterate through them
Check out Bug.pm::fields()
| Assignee | ||
Comment 13•23 years ago
|
||
Here's version 1 - I think this is flexible enough for what we want.
Gerv
| Assignee | ||
Comment 14•23 years ago
|
||
Comment on attachment 110739 [details] [diff] [review]
Patch v.1
bbaetz: another one you have an interest in...
Gerv
Attachment #110739 -
Flags: review?(bbaetz)
| Reporter | ||
Comment 15•23 years ago
|
||
Comment on attachment 110739 [details] [diff] [review]
Patch v.1
I'm happy with this. We aren't valid xml with this option, but short of making
the dtd a cgi (or having everything as optional), theres no way arround that.
Attachment #110739 -
Flags: review?(bbaetz) → review+
Comment 16•23 years ago
|
||
-> patch author
Assignee: myk → gerv
OS: Linux → All
Hardware: PC → All
Target Milestone: Future → Bugzilla 2.18
| Assignee | ||
Updated•23 years ago
|
Flags: approval?
Updated•23 years ago
|
Flags: approval? → approval+
Summary: xml.cgi needs a summary mode → show_bug.cgi's needs a summary mode
Comment 17•23 years ago
|
||
/me grumbles about the enter key being too close to the shift key
Summary: show_bug.cgi's needs a summary mode → show_bug.cgi's XML retreival needs a summary mode
Updated•23 years ago
|
Summary: show_bug.cgi's XML retreival needs a summary mode → show_bug.cgi's XML retrieval needs a summary mode
| Assignee | ||
Comment 18•23 years ago
|
||
Fixed.
Checking in template/en/default/bug/show.xml.tmpl;
/cvsroot/mozilla/webtools/bugzilla/template/en/default/bug/show.xml.tmpl,v <--
show.xml.tmpl
new revision: 1.2; previous revision: 1.1
done
Checking in show_bug.cgi;
/cvsroot/mozilla/webtools/bugzilla/show_bug.cgi,v <-- show_bug.cgi
new revision: 1.22; previous revision: 1.21
done
Gerv
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Updated•13 years ago
|
QA Contact: matty_is_a_geek → default-qa
You need to log in
before you can comment on or make changes to this bug.
Description
•