Re: FYI: Some nice sync-status icons

2014-11-17 Thread Traun Leyden
Thanks, I'll take a look. On Mon, Nov 17, 2014 at 11:34 AM, Dominique Legault wrote: > Here is the link to the pull request. > > https://github.com/couchbase/couchbase-lite-java-core/pull/333 > > On Monday, 17 November 2014 08:36:49 UTC-8, Jens Alfke wrote: >> >> >> On Nov 16, 2014, at 1:33 PM,

Re: FYI: Some nice sync-status icons

2014-11-17 Thread Dominique Legault
Here is the link to the pull request. https://github.com/couchbase/couchbase-lite-java-core/pull/333 On Monday, 17 November 2014 08:36:49 UTC-8, Jens Alfke wrote: > > > On Nov 16, 2014, at 1:33 PM, Dominique Legault > wrote: > > I have finally been dynamically update my UI using phonegap. I had

Re: FYI: Some nice sync-status icons

2014-11-17 Thread Jens Alfke
> On Nov 16, 2014, at 1:33 PM, Dominique Legault wrote: > > I have finally been dynamically update my UI using phonegap. I had to update > couchbase-lite-java library REST API to implement the feed=continous and > feed=longpoll parameters: If you want to propose changes to our code, you shoul

Re: FYI: Some nice sync-status icons

2014-11-16 Thread Dominique Legault
I have finally been dynamically update my UI using phonegap. I had to update couchbase-lite-java library REST API to implement the feed=continous and feed=longpoll parameters: Here are the changes I made to the Router.java file to make it work: public Status do_GET_Document_active_tasks(Data

Re: FYI: Some nice sync-status icons

2014-11-12 Thread Dominique Legault
sorry string compare in java is different. String status = String.format("Processed %d / %d changes", processed, total ); if (! replicator.getStatus().name().equals( ReplicationStatus.REPLICATION_ACTIVE ) ) { status = replicator.getStatus().name(); } On Wednesday, 12 November 2014 14:40:3

Re: FYI: Some nice sync-status icons

2014-11-12 Thread Dominique Legault
What about adding: String status = String.format("Processed %d / %d changes", processed, total ); if (replicator.getStatus().name() != ReplicationStatus.REPLICATION_ACTIVE) { status = replicator.getStatus().name(); } to this line https://github.com/couchbase/couchbase-lite-java-core/blob/mast

Re: FYI: Some nice sync-status icons

2014-11-12 Thread Dominique Legault
See my responses inline: On Tuesday, 11 November 2014 14:08:25 UTC-8, Traun Leyden wrote: > > See inline responses below: > > >> How can it go back to 2 / 2 changes once it has hit 2 / 3 changes ? >> >> > That's definitely a bug. Can you file a github issue here >

Re: FYI: Some nice sync-status icons

2014-11-11 Thread Jens Alfke
> On Nov 11, 2014, at 2:08 PM, Traun Leyden wrote: > > I'm not sure I understand this, can you describe it in more details? Are you > saying that the HTTP response never finishes? He's using GET /_active_tasks?feed=continuous — this is an enhancement Chris and I came up with that provides a

Re: FYI: Some nice sync-status icons

2014-11-11 Thread Traun Leyden
See inline responses below: > How can it go back to 2 / 2 changes once it has hit 2 / 3 changes ? > > That's definitely a bug. Can you file a github issue here and mention: * Is it a pull or push replication? * Which version of Couchbase L

Re: FYI: Some nice sync-status icons

2014-11-11 Thread Jens Alfke
> On Nov 11, 2014, at 1:04 PM, Dominique Legault wrote: > > How can it go back to 2 / 2 changes once it has hit 2 / 3 changes ? > The changes feed for documents only sends data when it changes, the > active_tasks is different in that it sends data continuously. These sound like Android specif

Re: FYI: Some nice sync-status icons

2014-11-11 Thread Dominique Legault
Hi Jens, Thanks for hinting towards that, it brings me a little closer to what I need but, I'm still having issues with it. In android the response I get is {"progress":0, "target":"openmoney", "source":"https://sync.url";, "type":"Replication", "status":"Processed 0 / 0 changes", "task":"

Re: FYI: Some nice sync-status icons

2014-11-11 Thread Juan Hernandez
> > Maybe we could have the last Source sequence ID (Checkpoint) from the > replication in the active tasks object. > > > That sounds reasonable. (Do you know whether CouchDB's _active_tasks > already includes this?) Please file an issue to request it. > > —Jens > Was going to file the issue bu

Re: FYI: Some nice sync-status icons

2014-11-10 Thread Jens Alfke
> On Nov 10, 2014, at 10:56 AM, Dominique wrote: > > What I would like to see is access to the Replication Change Listener through > the REST API, similar to the Document Change Listener. If you add "?feed=continuous" to _active_tasks it'll send push updates just like the _changes feed. —Jen

Re: FYI: Some nice sync-status icons

2014-11-10 Thread Dominique
What I would like to see is access to the Replication Change Listener through the REST API, similar to the Document Change Listener. On Nov 10, 2014 10:45 AM, "Jens Alfke" wrote: > > On Nov 10, 2014, at 10:12 AM, Juan Hernandez > wrote: > > It's impossible to know if my local changes have been r

Re: FYI: Some nice sync-status icons

2014-11-10 Thread Jens Alfke
> On Nov 10, 2014, at 10:12 AM, Juan Hernandez > wrote: > > It's impossible to know if my local changes have been replicated already to > the server as I don't know if the status "Idle" happened before or after I > made those changes. Yes, this same issue has come up in the native API; I add

Re: FYI: Some nice sync-status icons

2014-11-10 Thread Juan Hernandez
Hi Jens, do you know if is possible to get more information about the status of the replication using the REST API? Currently retrieving the active tasks (GET /_active_tasks) only gives something like: { continuous: true source: "mydb" status: "Idle" target: "http://server.local/mydb"; ta

Re: FYI: Some nice sync-status icons

2014-11-10 Thread Jens Alfke
> On Nov 5, 2014, at 3:19 PM, Dominique Legault wrote: > > How could this be achieved using the phonegap app ? GET /_active_tasks to find the status of the replication. —Jens -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscrib

Re: FYI: Some nice sync-status icons

2014-11-05 Thread Dominique Legault
How could this be achieved using the phonegap app ? I have not been able to find a way to hook into the notifyChangeListenersStateTransition callback does anyone know how ? On Friday, 24 October 2014 08:43:36 UTC-7, Jens Alfke wrote: > > > On Oct 24, 2014, at 3:29 AM, CouchbaseLover > wrote: >

Re: FYI: Some nice sync-status icons

2014-10-24 Thread Jens Alfke
> On Oct 24, 2014, at 3:29 AM, CouchbaseLover wrote: > > I agree that this would be very nice but how do you accomplish reading the > sync? CBLReplication.status -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this g

Re: FYI: Some nice sync-status icons

2014-10-24 Thread CouchbaseLover
I agree that this would be very nice but how do you accomplish reading the sync? -- 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 mobile-couchbase+unsubscr..

Re: FYI: Some nice sync-status icons

2014-10-21 Thread Seung Chan Lim
What's your algorithm for setting these? If you query the _active_tasks and check the stats could you get all of these figured out? Are there any exceptions? slim On Tuesday, October 21, 2014 2:00:10 AM UTC-4, Jens Alfke wrote: > > Google just released >

FYI: Some nice sync-status icons

2014-10-20 Thread Jens Alfke
Google just released a set of 750 black-and-white icons for mobile and web apps. They're pretty nice, and I noticed a group of 'cloud' icons that were just what I'd been looking for as toolbar indicators of sync status: These