[MB-6620] Preview Random Document in the View tab doesn't show the actual values for rev, expiration, flags Created: 12/Sep/12  Updated: 23/Oct/12  Resolved: 11/Oct/12

Status: Closed
Project: Couchbase Server
Component/s: UI
Affects Version/s: 2.0
Fix Version/s: 2.0
Security Level: Public

Type: Bug Priority: Blocker
Reporter: Andrei Baranouski Assignee: Iryna Mironava
Resolution: Fixed Votes: 0
Labels: 2.0-beta-release-notes
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   
build-1710

case could be simple, for instance, on python:

        for i in xrange(self.num_docs):
            pref = str(i)
            self.docs["id" + pref] = "value"*100 + pref
        for doc in self.docs:
            self.awareness.set(doc, int(self.expiration), 0, self.docs[doc])

        for i in xrange(self.num_docs):
            pref = str(i)
            self.docs["id" + pref] = "value"*10 + pref
        for doc in self.docs:
            self.awareness.set(doc, int(self.expiration), 0, self.docs[doc])


create view, and using Preview Random Document feature we can see metaInfo in which values for rev, expiration, flags are not changed at all

{
   "id": "test_docs-529",
   "rev": "1-00000000000000000000000000000000",
   "att_reason": "invalid_key",
   "expiration": 0,
   "flags": 0,
   "type": "base64"
}

are there any reasons why it works that way so far?


 Comments   
Comment by Aleksey Kondratenko [ 12/Sep/12 ]
Seen this too.

This is actually some couch_doc bug. Will fix as part of fixing this entire area
Comment by Aleksey Kondratenko [ 08/Oct/12 ]
I was planning to "fix" this as part of CAPI CRUD rewrite, but apparently I'll have to fix it inside existing implementation. I.e. because document editing refactoring work is not approved for 2.0 anymore.
Comment by Aleksey Kondratenko [ 11/Oct/12 ]
http://review.couchbase.org/#/c/21496/
Comment by Iryna Mironava [ 23/Oct/12 ]
verified with build-1884
Generated at Wed Apr 23 03:56:07 CDT 2014 using JIRA 5.2.4#845-sha1:c9f4cc41abe72fb236945343a1f485c2c844dac9.