Bug 995296 - Remove compatibility fields listed by webservice methods as deprecated in 5.0
git-svn-id: svn://10.0.0.236/trunk@265407 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
650d813242
commit
0908a89c5b
@ -1 +1 @@
|
|||||||
9035
|
9036
|
||||||
@ -1 +1 @@
|
|||||||
41b3c0cf022dc052aec35e1675dbdb13e8c7459c
|
abf6ec5cff89b9507aa978d5345559239886c014
|
||||||
@ -352,7 +352,6 @@ sub _translate_comment {
|
|||||||
id => $self->type('int', $comment->id),
|
id => $self->type('int', $comment->id),
|
||||||
bug_id => $self->type('int', $comment->bug_id),
|
bug_id => $self->type('int', $comment->bug_id),
|
||||||
creator => $self->type('email', $comment->author->login),
|
creator => $self->type('email', $comment->author->login),
|
||||||
author => $self->type('email', $comment->author->login),
|
|
||||||
time => $self->type('dateTime', $comment->creation_ts),
|
time => $self->type('dateTime', $comment->creation_ts),
|
||||||
creation_time => $self->type('dateTime', $comment->creation_ts),
|
creation_time => $self->type('dateTime', $comment->creation_ts),
|
||||||
is_private => $self->type('boolean', $comment->is_private),
|
is_private => $self->type('boolean', $comment->is_private),
|
||||||
@ -1349,19 +1348,16 @@ sub _attachment_to_hash {
|
|||||||
bug_id => $self->type('int', $attach->bug_id),
|
bug_id => $self->type('int', $attach->bug_id),
|
||||||
file_name => $self->type('string', $attach->filename),
|
file_name => $self->type('string', $attach->filename),
|
||||||
summary => $self->type('string', $attach->description),
|
summary => $self->type('string', $attach->description),
|
||||||
description => $self->type('string', $attach->description),
|
|
||||||
content_type => $self->type('string', $attach->contenttype),
|
content_type => $self->type('string', $attach->contenttype),
|
||||||
is_private => $self->type('int', $attach->isprivate),
|
is_private => $self->type('int', $attach->isprivate),
|
||||||
is_obsolete => $self->type('int', $attach->isobsolete),
|
is_obsolete => $self->type('int', $attach->isobsolete),
|
||||||
is_patch => $self->type('int', $attach->ispatch),
|
is_patch => $self->type('int', $attach->ispatch),
|
||||||
}, $types, $prefix;
|
}, $types, $prefix;
|
||||||
|
|
||||||
# creator/attacher require an extra lookup, so we only send them if
|
# creator requires an extra lookup, so we only send them if
|
||||||
# the filter wants them.
|
# the filter wants them.
|
||||||
foreach my $field (qw(creator attacher)) {
|
if (filter_wants $filters, 'creator', $types, $prefix) {
|
||||||
if (filter_wants $filters, $field, $types, $prefix) {
|
$item->{'creator'} = $self->type('email', $attach->attacher->login);
|
||||||
$item->{$field} = $self->type('email', $attach->attacher->login);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (filter_wants $filters, 'data', $types, $prefix) {
|
if (filter_wants $filters, 'data', $types, $prefix) {
|
||||||
@ -1997,10 +1993,6 @@ C<string> The file name of the attachment.
|
|||||||
|
|
||||||
C<string> A short string describing the attachment.
|
C<string> A short string describing the attachment.
|
||||||
|
|
||||||
Also returned as C<description>, for backwards-compatibility with older
|
|
||||||
Bugzillas. (However, this backwards-compatibility will go away in Bugzilla
|
|
||||||
5.0.)
|
|
||||||
|
|
||||||
=item C<content_type>
|
=item C<content_type>
|
||||||
|
|
||||||
C<string> The MIME type of the attachment.
|
C<string> The MIME type of the attachment.
|
||||||
@ -2022,10 +2014,6 @@ C<boolean> True if the attachment is a patch, False otherwise.
|
|||||||
|
|
||||||
C<string> The login name of the user that created the attachment.
|
C<string> The login name of the user that created the attachment.
|
||||||
|
|
||||||
Also returned as C<attacher>, for backwards-compatibility with older
|
|
||||||
Bugzillas. (However, this backwards-compatibility will go away in Bugzilla
|
|
||||||
5.0.)
|
|
||||||
|
|
||||||
=item C<flags>
|
=item C<flags>
|
||||||
|
|
||||||
An array of hashes containing the information about flags currently set
|
An array of hashes containing the information about flags currently set
|
||||||
@ -2223,10 +2211,6 @@ C<string> The actual text of the comment.
|
|||||||
|
|
||||||
C<string> The login name of the comment's author.
|
C<string> The login name of the comment's author.
|
||||||
|
|
||||||
Also returned as C<author>, for backwards-compatibility with older
|
|
||||||
Bugzillas. (However, this backwards-compatibility will go away in Bugzilla
|
|
||||||
5.0.)
|
|
||||||
|
|
||||||
=item time
|
=item time
|
||||||
|
|
||||||
C<dateTime> The time (in Bugzilla's timezone) that the comment was added.
|
C<dateTime> The time (in Bugzilla's timezone) that the comment was added.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user