Commit e8aca631 authored by Tristan Cavelier's avatar Tristan Cavelier

default job rules modified

parent e41f8e5e
...@@ -2119,25 +2119,33 @@ var jobRules = (function () { ...@@ -2119,25 +2119,33 @@ var jobRules = (function () {
post post same doc update post post same doc update
" " same docid, same rev wait " " same docid, same rev wait
" put same doc update " put " "
" " same docid, same rev wait " putA " "
" putA " wait
" remove " " " remove " "
put post same doc update " removeA " "
" " same docid, same rev wait put post same docid, same rev wait
" put same doc update " put same doc update
" " same docid, same rev wait " " same docid, same rev wait
" putA " " " putA " "
" remove " " " remove " "
" removeA " "
putA post same docid, same rev wait putA post same docid, same rev wait
" put " " " put " "
" putA same doc update " putA same doc update
" " same docid, same rev, same attmt wait " " same docid, same rev, same attmt wait
" remove same docid, same rev " " remove same docid, same rev "
" removeA same docid, same rev, same attmt "
remove post same docid, same rev wait remove post same docid, same rev wait
" put " " " put " "
" putA " " " putA " "
" remove " update " remove " update
" removeA " wait
removeA post same docid, same rev wait
" put " "
" putA same docid, same rev, same attmt "
" remove same docid, same rev "
" removeA same doc update
" removeA same docid, same rev, same attmt wait
get get same doc, same options update get get same doc, same options update
getA getA same doc, same options update getA getA same doc, same options update
allDocs allDocs same doc, same options update allDocs allDocs same doc, same options update
...@@ -2146,15 +2154,15 @@ var jobRules = (function () { ...@@ -2146,15 +2154,15 @@ var jobRules = (function () {
that.addActionRule("post", "post", [that.sameDocument], that.update); that.addActionRule("post", "post", [that.sameDocument], that.update);
that.addActionRule("post", "post", that.addActionRule("post", "post",
[that.sameDocumentId, that.sameRevision], that.wait); [that.sameDocumentId, that.sameRevision], that.wait);
that.addActionRule("post", "put", [that.sameDocument], that.update);
that.addActionRule("post", "put", that.addActionRule("post", "put",
[that.sameDocumentId, that.sameRevision], that.wait); [that.sameDocumentId, that.sameRevision], that.wait);
that.addActionRule("post", "putAttachment", that.addActionRule("post", "putAttachment",
[that.sameDocumentId, that.sameRevision], that.wait); [that.sameDocumentId, that.sameRevision], that.wait);
that.addActionRule("post", "remove", that.addActionRule("post", "remove",
[that.sameDocumentId, that.sameRevision], that.wait); [that.sameDocumentId, that.sameRevision], that.wait);
that.addActionRule("post", "removeAttachment",
[that.sameDocumentId, that.sameRevision], that.wait);
that.addActionRule("put", "post", [that.sameDocument], that.update);
that.addActionRule("put", "post", that.addActionRule("put", "post",
[that.sameDocumentId, that.sameRevision], that.wait); [that.sameDocumentId, that.sameRevision], that.wait);
that.addActionRule("put", "put", [that.sameDocument], that.update); that.addActionRule("put", "put", [that.sameDocument], that.update);
...@@ -2164,6 +2172,8 @@ var jobRules = (function () { ...@@ -2164,6 +2172,8 @@ var jobRules = (function () {
[that.sameDocumentId, that.sameRevision], that.wait); [that.sameDocumentId, that.sameRevision], that.wait);
that.addActionRule("put", "remove", that.addActionRule("put", "remove",
[that.sameDocumentId, that.sameRevision], that.wait); [that.sameDocumentId, that.sameRevision], that.wait);
that.addActionRule("put", "removeAttachment",
[that.sameDocumentId, that.sameRevision], that.wait);
that.addActionRule("putAttachment", "post", that.addActionRule("putAttachment", "post",
[that.sameDocumentId, that.sameRevision], that.wait); [that.sameDocumentId, that.sameRevision], that.wait);
...@@ -2178,6 +2188,11 @@ var jobRules = (function () { ...@@ -2178,6 +2188,11 @@ var jobRules = (function () {
], that.wait); ], that.wait);
that.addActionRule("putAttachment", "remove", that.addActionRule("putAttachment", "remove",
[that.sameDocumentId, that.sameRevision], that.wait); [that.sameDocumentId, that.sameRevision], that.wait);
that.addActionRule("putAttachment", "removeAttachment", [
that.sameDocumentId,
that.sameRevision,
that.sameAttachmentId
], that.wait);
that.addActionRule("remove", "post", that.addActionRule("remove", "post",
[that.sameDocumentId, that.sameRevision], that.wait); [that.sameDocumentId, that.sameRevision], that.wait);
...@@ -2187,6 +2202,27 @@ var jobRules = (function () { ...@@ -2187,6 +2202,27 @@ var jobRules = (function () {
[that.sameDocumentId, that.sameRevision], that.wait); [that.sameDocumentId, that.sameRevision], that.wait);
that.addActionRule("remove", "remove", that.addActionRule("remove", "remove",
[that.sameDocumentId, that.sameRevision], that.update); [that.sameDocumentId, that.sameRevision], that.update);
that.addActionRule("remove", "removeAttachment",
[that.sameDocumentId, that.sameRevision], that.wait);
that.addActionRule("removeAttachment", "post",
[that.sameDocumentId, that.sameRevision], that.wait);
that.addActionRule("removeAttachment", "put",
[that.sameDocumentId, that.sameRevision], that.wait);
that.addActionRule("removeAttachment", "putAttachment", [
that.sameDocumentId,
that.sameRevision,
that.sameAttachmentId
], that.wait);
that.addActionRule("removeAttachment", "remove",
[that.sameDocumentId, that.sameRevision], that.update);
that.addActionRule("removeAttachment", "removeAttachment",
[that.sameDocument], that.update);
that.addActionRule("removeAttachment", "removeAttachment", [
that.sameDocumentId,
that.sameRevision,
that.sameAttachmentId
], that.wait);
that.addActionRule("get", "get", that.addActionRule("get", "get",
[that.sameDocument, that.sameOption], that.update); [that.sameDocument, that.sameOption], that.update);
......
...@@ -230,25 +230,33 @@ var jobRules = (function () { ...@@ -230,25 +230,33 @@ var jobRules = (function () {
post post same doc update post post same doc update
" " same docid, same rev wait " " same docid, same rev wait
" put same doc update " put " "
" " same docid, same rev wait " putA " "
" putA " wait
" remove " " " remove " "
put post same doc update " removeA " "
" " same docid, same rev wait put post same docid, same rev wait
" put same doc update " put same doc update
" " same docid, same rev wait " " same docid, same rev wait
" putA " " " putA " "
" remove " " " remove " "
" removeA " "
putA post same docid, same rev wait putA post same docid, same rev wait
" put " " " put " "
" putA same doc update " putA same doc update
" " same docid, same rev, same attmt wait " " same docid, same rev, same attmt wait
" remove same docid, same rev " " remove same docid, same rev "
" removeA same docid, same rev, same attmt "
remove post same docid, same rev wait remove post same docid, same rev wait
" put " " " put " "
" putA " " " putA " "
" remove " update " remove " update
" removeA " wait
removeA post same docid, same rev wait
" put " "
" putA same docid, same rev, same attmt "
" remove same docid, same rev "
" removeA same doc update
" removeA same docid, same rev, same attmt wait
get get same doc, same options update get get same doc, same options update
getA getA same doc, same options update getA getA same doc, same options update
allDocs allDocs same doc, same options update allDocs allDocs same doc, same options update
...@@ -257,15 +265,15 @@ var jobRules = (function () { ...@@ -257,15 +265,15 @@ var jobRules = (function () {
that.addActionRule("post", "post", [that.sameDocument], that.update); that.addActionRule("post", "post", [that.sameDocument], that.update);
that.addActionRule("post", "post", that.addActionRule("post", "post",
[that.sameDocumentId, that.sameRevision], that.wait); [that.sameDocumentId, that.sameRevision], that.wait);
that.addActionRule("post", "put", [that.sameDocument], that.update);
that.addActionRule("post", "put", that.addActionRule("post", "put",
[that.sameDocumentId, that.sameRevision], that.wait); [that.sameDocumentId, that.sameRevision], that.wait);
that.addActionRule("post", "putAttachment", that.addActionRule("post", "putAttachment",
[that.sameDocumentId, that.sameRevision], that.wait); [that.sameDocumentId, that.sameRevision], that.wait);
that.addActionRule("post", "remove", that.addActionRule("post", "remove",
[that.sameDocumentId, that.sameRevision], that.wait); [that.sameDocumentId, that.sameRevision], that.wait);
that.addActionRule("post", "removeAttachment",
[that.sameDocumentId, that.sameRevision], that.wait);
that.addActionRule("put", "post", [that.sameDocument], that.update);
that.addActionRule("put", "post", that.addActionRule("put", "post",
[that.sameDocumentId, that.sameRevision], that.wait); [that.sameDocumentId, that.sameRevision], that.wait);
that.addActionRule("put", "put", [that.sameDocument], that.update); that.addActionRule("put", "put", [that.sameDocument], that.update);
...@@ -275,6 +283,8 @@ var jobRules = (function () { ...@@ -275,6 +283,8 @@ var jobRules = (function () {
[that.sameDocumentId, that.sameRevision], that.wait); [that.sameDocumentId, that.sameRevision], that.wait);
that.addActionRule("put", "remove", that.addActionRule("put", "remove",
[that.sameDocumentId, that.sameRevision], that.wait); [that.sameDocumentId, that.sameRevision], that.wait);
that.addActionRule("put", "removeAttachment",
[that.sameDocumentId, that.sameRevision], that.wait);
that.addActionRule("putAttachment", "post", that.addActionRule("putAttachment", "post",
[that.sameDocumentId, that.sameRevision], that.wait); [that.sameDocumentId, that.sameRevision], that.wait);
...@@ -289,6 +299,11 @@ var jobRules = (function () { ...@@ -289,6 +299,11 @@ var jobRules = (function () {
], that.wait); ], that.wait);
that.addActionRule("putAttachment", "remove", that.addActionRule("putAttachment", "remove",
[that.sameDocumentId, that.sameRevision], that.wait); [that.sameDocumentId, that.sameRevision], that.wait);
that.addActionRule("putAttachment", "removeAttachment", [
that.sameDocumentId,
that.sameRevision,
that.sameAttachmentId
], that.wait);
that.addActionRule("remove", "post", that.addActionRule("remove", "post",
[that.sameDocumentId, that.sameRevision], that.wait); [that.sameDocumentId, that.sameRevision], that.wait);
...@@ -298,6 +313,27 @@ var jobRules = (function () { ...@@ -298,6 +313,27 @@ var jobRules = (function () {
[that.sameDocumentId, that.sameRevision], that.wait); [that.sameDocumentId, that.sameRevision], that.wait);
that.addActionRule("remove", "remove", that.addActionRule("remove", "remove",
[that.sameDocumentId, that.sameRevision], that.update); [that.sameDocumentId, that.sameRevision], that.update);
that.addActionRule("remove", "removeAttachment",
[that.sameDocumentId, that.sameRevision], that.wait);
that.addActionRule("removeAttachment", "post",
[that.sameDocumentId, that.sameRevision], that.wait);
that.addActionRule("removeAttachment", "put",
[that.sameDocumentId, that.sameRevision], that.wait);
that.addActionRule("removeAttachment", "putAttachment", [
that.sameDocumentId,
that.sameRevision,
that.sameAttachmentId
], that.wait);
that.addActionRule("removeAttachment", "remove",
[that.sameDocumentId, that.sameRevision], that.update);
that.addActionRule("removeAttachment", "removeAttachment",
[that.sameDocument], that.update);
that.addActionRule("removeAttachment", "removeAttachment", [
that.sameDocumentId,
that.sameRevision,
that.sameAttachmentId
], that.wait);
that.addActionRule("get", "get", that.addActionRule("get", "get",
[that.sameDocument, that.sameOption], that.update); [that.sameDocument, that.sameOption], that.update);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment