Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-rest
Project
Project
Details
Activity
Releases
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
project-open
intranet-rest
Commits
b2afabdd
Commit
b2afabdd
authored
Dec 17, 2014
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Added debugging code
parent
dfcf2ad6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
test-update.perl
perl/test-update.perl
+3
-2
No files found.
perl/test-update.perl
View file @
b2afabdd
...
...
@@ -188,7 +188,8 @@ foreach my $ot (@object_types) {
print
STDERR
"test-update.perl: $object_type: Getting single object with OID=$oid\n"
if
(
$debug
>
1
);
my
$get_object_json
=
ProjectOpen
->
get_object
(
$object_type
,
$oid
);
my
$object_data_json
=
$get_object_json
->
{
'data'
}[
0
];
print
STDERR
"test-update.perl: $object_type: get_object($object_type,$oid): "
.
Dumper
(
$first_object_json
)
.
"\n"
if
(
$debug
>
4
);
print
STDERR
"test-update.perl: $object_type: get_object($object_type,$oid): "
.
Dumper
(
$object_data_json
)
.
"\n"
if
(
$debug
>
6
);
$success
=
$get_object_json
->
{
'success'
};
$message
=
$get_object_json
->
{
'message'
};
$message
=~
tr
/\n\t/
/
;
...
...
@@ -235,11 +236,11 @@ foreach my $ot (@object_types) {
}
$object_data_json
->
{
$name_field
}
=
$object_name
.
"%"
;
print
STDERR
"test-update.perl: $object_type: post_object: data="
.
Dumper
(
$object_data_json
)
.
"\n"
if
(
$debug
>
8
);
$update_result
=
ProjectOpen
->
post_object
(
$object_type
,
$oid
,
$object_data_json
);
print
STDERR
"test-update.perl: $object_type: post_object: result="
.
Dumper
(
$update_result
)
.
"\n"
if
(
$debug
>
6
);
# ToDo: Write out error message in case of failure
# -------------------------------
# Get the updated data
#
...
...
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