Hi,
If I add a user with admin_channels:* before I add data to my application, 
all is well. However, if the user is added to SG after the data is created, 
too few changes are replicated. The documents do have a single channel.

Here's the output of the request for the user created before any documents 
are created:
Request: {"limit":5,"feed":"longpoll", 
"style":"all_docs","heartbeat":300000}

{
    "results": [
        {
            "seq": 1,
            "id": "_user/store",
            "changes": []
        },
        {
            "seq": 3,
            "id": "43845603-a5e3-4782-a72c-16e5a6fb2364",
            "changes": [
                {
                    "rev": "1-e4431927de1990e414fdf51b1f32eafb"
                }
            ]
        },
        {
            "seq": 5,
            "id": "fcf221fe-48fa-4b32-833f-0a5eff3f1b9c",
            "changes": [
                {
                    "rev": "1-9d84554b367c457648d1bd2915d27b02"
                }
            ]
        },
        {
            "seq": 6,
            "id": "237a0ad8-8c37-4586-be61-a309e2598c8f",
            "changes": [
                {
                    "rev": "1-9d6ef22f3ab10ab4937b1c5411212885"
                }
            ]
        },
        {
            "seq": 7,
            "id": "f90ef16e-db2a-48f7-a075-9a1cb7bb53ce",
            "changes": [
                {
                    "rev": "1-3ad08816287156fa9feec7c9e6482624"
                }
            ]
        }
    ],
    "last_seq": "7"
}

With {"limit":5,"feed":"longpoll", "since":7, 
"style":"all_docs","heartbeat":300000} the queries proceed as expected to 
get the whole data set.

The same queries (without a "since" property), but with a user created 
after the documents give:

{
    "results": [
        {
            "seq": "123:3",
            "id": "43845603-a5e3-4782-a72c-16e5a6fb2364",
            "changes": [
                {
                    "rev": "1-e4431927de1990e414fdf51b1f32eafb"
                }
            ]
        },
        {
            "seq": "123:5",
            "id": "fcf221fe-48fa-4b32-833f-0a5eff3f1b9c",
            "changes": [
                {
                    "rev": "1-9d84554b367c457648d1bd2915d27b02"
                }
            ]
        },
        {
            "seq": "123:6",
            "id": "237a0ad8-8c37-4586-be61-a309e2598c8f",
            "changes": [
                {
                    "rev": "1-9d6ef22f3ab10ab4937b1c5411212885"
                }
            ]
        },
        {
            "seq": "123:7",
            "id": "f90ef16e-db2a-48f7-a075-9a1cb7bb53ce",
            "changes": [
                {
                    "rev": "1-3ad08816287156fa9feec7c9e6482624"
                }
            ]
        },
        {
            "seq": "123:8",
            "id": "846241d5-b29b-415b-8308-627928af4758",
            "changes": [
                {
                    "rev": "1-ba8370ca4d89c04bd7a9cbedefa5f01f"
                }
            ]
        }
    ],
    "last_seq": "123:8"
}

I would expect to get the same output as for the first user. Proceeding 
with the requests gives a much smaller data set than with the first user.

I'm using a self-compiled SG from 77900d8 
<https://github.com/couchbase/sync_gateway/commit/77900d8f2089314ce4875fda3acb7ca7c248f5e9>
 as 
I was hoping that a fix apparently applied for issue #314 
<https://github.com/couchbase/sync_gateway/issues/314>would resolve this 
issue.

Thanks for any help you can provide,

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/941ebb35-a96e-4643-a563-7350b0457342%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to