Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jio
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Romain Courteaud
jio
Commits
9268d81a
Commit
9268d81a
authored
Jan 16, 2013
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix revisionstorage error, it was writing doc._rev in sub_storage
parent
4ae4e5be
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
src/jio.storage/revisionstorage.js
src/jio.storage/revisionstorage.js
+1
-0
test/jiotests.js
test/jiotests.js
+2
-0
No files found.
src/jio.storage/revisionstorage.js
View file @
9268d81a
...
@@ -474,6 +474,7 @@ jIO.addStorageType('revision', function (spec, my) {
...
@@ -474,6 +474,7 @@ jIO.addStorageType('revision', function (spec, my) {
f
.
postDocument
=
function
(
doctree_update_method
)
{
f
.
postDocument
=
function
(
doctree_update_method
)
{
revs_info
=
priv
.
postToDocumentTree
(
doctree
,
doc
);
revs_info
=
priv
.
postToDocumentTree
(
doctree
,
doc
);
doc
.
_id
=
docid
+
"
.
"
+
revs_info
[
0
].
rev
;
doc
.
_id
=
docid
+
"
.
"
+
revs_info
[
0
].
rev
;
delete
doc
.
_rev
;
that
.
addJob
(
that
.
addJob
(
"
post
"
,
"
post
"
,
priv
.
substorage
,
priv
.
substorage
,
...
...
test/jiotests.js
View file @
9268d81a
...
@@ -1198,6 +1198,7 @@ test ("Post", function(){
...
@@ -1198,6 +1198,7 @@ test ("Post", function(){
// check document
// check document
o
.
doc
[
"
_id
"
]
=
"
post1.
"
+
o
.
rev
;
o
.
doc
[
"
_id
"
]
=
"
post1.
"
+
o
.
rev
;
delete
o
.
doc
.
_rev
;
deepEqual
(
deepEqual
(
localstorage
.
getItem
(
o
.
localpath
+
"
/post1.
"
+
o
.
rev
),
localstorage
.
getItem
(
o
.
localpath
+
"
/post1.
"
+
o
.
rev
),
o
.
doc
,
o
.
doc
,
...
@@ -1289,6 +1290,7 @@ test ("Put", function(){
...
@@ -1289,6 +1290,7 @@ test ("Put", function(){
// check document
// check document
o
.
doc
.
_id
=
"
put1.
"
+
o
.
rev
;
o
.
doc
.
_id
=
"
put1.
"
+
o
.
rev
;
delete
o
.
doc
.
_rev
;
deepEqual
(
deepEqual
(
localstorage
.
getItem
(
o
.
localpath
+
"
/put1.
"
+
o
.
rev
),
localstorage
.
getItem
(
o
.
localpath
+
"
/put1.
"
+
o
.
rev
),
o
.
doc
,
o
.
doc
,
...
...
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