Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
jio_mebibou
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Alexandra Rogova
jio_mebibou
Commits
bd7e841b
Commit
bd7e841b
authored
Jun 04, 2013
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jobRule: wrong parameter given to a rule ('update' -> 'wait') fixed
parent
65fbc97a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
2 deletions
+15
-2
jio.js
jio.js
+1
-1
src/jio/jobs/jobRules.js
src/jio/jobs/jobRules.js
+1
-1
test/jiotests.js
test/jiotests.js
+13
-0
No files found.
jio.js
View file @
bd7e841b
...
...
@@ -2215,7 +2215,7 @@ var jobRules = (function () {
that
.
sameAttachmentId
],
that
.
wait
);
that
.
addActionRule
(
"
removeAttachment
"
,
"
remove
"
,
[
that
.
sameDocumentId
,
that
.
sameRevision
],
that
.
update
);
[
that
.
sameDocumentId
,
that
.
sameRevision
],
that
.
wait
);
that
.
addActionRule
(
"
removeAttachment
"
,
"
removeAttachment
"
,
[
that
.
sameDocument
],
that
.
update
);
that
.
addActionRule
(
"
removeAttachment
"
,
"
removeAttachment
"
,
[
...
...
src/jio/jobs/jobRules.js
View file @
bd7e841b
...
...
@@ -326,7 +326,7 @@ var jobRules = (function () {
that
.
sameAttachmentId
],
that
.
wait
);
that
.
addActionRule
(
"
removeAttachment
"
,
"
remove
"
,
[
that
.
sameDocumentId
,
that
.
sameRevision
],
that
.
update
);
[
that
.
sameDocumentId
,
that
.
sameRevision
],
that
.
wait
);
that
.
addActionRule
(
"
removeAttachment
"
,
"
removeAttachment
"
,
[
that
.
sameDocument
],
that
.
update
);
that
.
addActionRule
(
"
removeAttachment
"
,
"
removeAttachment
"
,
[
...
...
test/jiotests.js
View file @
bd7e841b
...
...
@@ -695,6 +695,19 @@ test ("One document aim jobs at the same time (Wait for job(s))" , function () {
o
.
tick
(
o
,
1000
,
"
f
"
);
o
.
tick
(
o
,
"
f2
"
);
o
.
tick
(
o
,
"
f3
"
);
o
.
spy
(
o
,
"
value
"
,
{
"
ok
"
:
true
,
"
id
"
:
"
lol
"
},
"
Chaining callbacks
"
);
o
.
jio
.
removeAttachment
({
"
_id
"
:
"
lol
"
,
"
_attachment
"
:
"
hu
"
},
function
(
err
,
response
)
{
if
(
err
)
{
return
;
}
o
.
jio
.
remove
({
"
_id
"
:
"
lol
"
},
o
.
f
);
});
o
.
tick
(
o
,
10000
);
o
.
jio
.
stop
();
});
...
...
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