Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
d403dca9
Commit
d403dca9
authored
Jul 12, 2010
by
Max Kanat-Alexander
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 415813: Implement Bug.update() as an API for WebServices
r=dkl, a=mkanat
parent
33e1f44e
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
2 deletions
+14
-2
Bug.pm
Bugzilla/Bug.pm
+13
-2
Bug.pm
Bugzilla/WebService/Bug.pm
+0
-0
Constants.pm
Bugzilla/WebService/Constants.pm
+1
-0
No files found.
Bugzilla/Bug.pm
View file @
d403dca9
...
@@ -265,9 +265,14 @@ use constant MAX_LINE_LENGTH => 254;
...
@@ -265,9 +265,14 @@ use constant MAX_LINE_LENGTH => 254;
# of Bugzilla. (These are the field names that the WebService and email_in.pl
# of Bugzilla. (These are the field names that the WebService and email_in.pl
# use.)
# use.)
use
constant
FIELD_MAP
=>
{
use
constant
FIELD_MAP
=>
{
blocks
=>
'blocked'
,
is_confirmed
=>
'everconfirmed'
,
cc_accessible
=>
'cclist_accessible'
,
creation_time
=>
'creation_ts'
,
creation_time
=>
'creation_ts'
,
creator
=>
'reporter'
,
creator
=>
'reporter'
,
description
=>
'comment'
,
description
=>
'comment'
,
depends_on
=>
'dependson'
,
dupe_of
=>
'dup_id'
,
id
=>
'bug_id'
,
id
=>
'bug_id'
,
last_change_time
=>
'delta_ts'
,
last_change_time
=>
'delta_ts'
,
platform
=>
'rep_platform'
,
platform
=>
'rep_platform'
,
...
@@ -3706,11 +3711,17 @@ sub LogActivityEntry {
...
@@ -3706,11 +3711,17 @@ sub LogActivityEntry {
# Convert WebService API and email_in.pl field names to internal DB field
# Convert WebService API and email_in.pl field names to internal DB field
# names.
# names.
sub
map_fields
{
sub
map_fields
{
my
(
$params
)
=
@_
;
my
(
$params
,
$except
)
=
@_
;
my
%
field_values
;
my
%
field_values
;
foreach
my
$field
(
keys
%
$params
)
{
foreach
my
$field
(
keys
%
$params
)
{
my
$field_name
=
FIELD_MAP
->
{
$field
}
||
$field
;
my
$field_name
;
if
(
$except
->
{
$field
})
{
$field_name
=
$field
;
}
else
{
$field_name
=
FIELD_MAP
->
{
$field
}
||
$field
;
}
$field_values
{
$field_name
}
=
$params
->
{
$field
};
$field_values
{
$field_name
}
=
$params
->
{
$field
};
}
}
...
...
Bugzilla/WebService/Bug.pm
View file @
d403dca9
This diff is collapsed.
Click to expand it.
Bugzilla/WebService/Constants.pm
View file @
d403dca9
...
@@ -66,6 +66,7 @@ use constant WS_ERROR_CODE => {
...
@@ -66,6 +66,7 @@ use constant WS_ERROR_CODE => {
alias_in_use
=>
103
,
alias_in_use
=>
103
,
alias_is_numeric
=>
103
,
alias_is_numeric
=>
103
,
alias_has_comma_or_space
=>
103
,
alias_has_comma_or_space
=>
103
,
alias_not_allowed
=>
103
,
# Misc. bug field errors
# Misc. bug field errors
illegal_field
=>
104
,
illegal_field
=>
104
,
freetext_too_long
=>
104
,
freetext_too_long
=>
104
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment