A Conflict Resolution Framework for PouchDB

115 views
Skip to first unread message

Rebecca Kai Cassar

unread,
Mar 26, 2016, 3:26:29 PM3/26/16
to PouchDB
Hi everyone :) 

I've been working on a framework which works on top of PouchDB where the main aim is to make the coding of conflict resolution scenarios within PouchDB simpler for developers. I'd love it if you guys could give the framework a try and let me know what you think.

I've developed the framework as part of my Bachelors' thesis at the University of Malta and I would really appreciate it if you could leave some feedback! I'll leave a link to a survey below.

If you have any queries, please don't hesitate to post below or contact me on rebecca-ka...@um.edu.mt

Thanks,
Rebecca Kai Cassar

GitHub link to code repo:  https://git.io/v2fgF
Short tutorial on how to use the framework: https://goo.gl/9kMxkk
Detailed documentation of the framework: https://goo.gl/PQKwIf

Nolan Lawson

unread,
Apr 20, 2016, 10:22:35 AM4/20/16
to PouchDB
Hi Rebecca,

Welcome! :) It's cool to see folks building neat stuff on top of PouchDB. A few quick suggestions:

1. The asynchronous style of your code seems reminiscent of the "promisey pyramid of doom," as I describe here: http://pouchdb.com/2015/05/18/we-have-a-problem-with-promises.html. In particular, it seems that instead of returning promises from your functions, you are just doing .then().catch() inside of every callback.

2. It would be nice to add a package.json and do `module.exports = ResFramework` in order to export it and make it easily shareable on npm. `npm init` can get you started!

3. We actually have a plugin API that you can use instead of asking users to manually pass in their PouchDB object. The API is described here: https://pouchdb.com/api.html#plugins

Hope that feedback helps! Looking forward to seeing where you go with this. :)

Cheers,
Nolan

Rebecca Kai Cassar

unread,
Apr 27, 2016, 10:03:09 AM4/27/16
to PouchDB
Hi Nolan,

Thank you for your feedback! I think that all the points you mentioned are very valid points and I will do my best to implement your suggestions over the coming weeks.

Thanks again :) 

Rebecca.

Nolan Lawson

unread,
Apr 28, 2016, 11:06:10 AM4/28/16
to PouchDB
Hi Rebecca,

No prob! Also if you need help, please don't hesitate to check out http://slack.pouchdb.com/. There are usually a half-dozen folks in there who would be happy to provide guidance. :)

Cheers,
Nolan

Colin Skow

unread,
Apr 30, 2016, 5:47:20 PM4/30/16
to PouchDB
Hi Rebecca,

This looks like a very promising helper framework. Conflict resolution is something that confuses a lot of CouchDB users. I think your project is something that can take away a lot of the confusion. I agree with Nolan's suggestions. As I start integrating your work into my applications, I will probably have more feedback about real-world use cases.

Cheers!
- Colin

Rebecca Kai Cassar

unread,
May 1, 2016, 5:22:44 AM5/1/16
to PouchDB
Hi Colin,

Thank you! I look forward to hearing your feedback :) 

Best regards,

Rebecca.

Rebecca Kai Cassar

unread,
May 1, 2016, 5:23:38 AM5/1/16
to PouchDB
Hi Nolan, 

Thanks for the info :)

Best regards,

Rebecca
Reply all
Reply to author
Forward
0 new messages