hoodiehq / pouchdb-admins

PouchDB plugin to simulate CouchDB’s admin accounts
Apache License 2.0
7 stars 2 forks source link

Extract 'admins' api to be independent from pouchdb plugin #24

Open minrwhite opened 7 years ago

minrwhite commented 7 years ago

As detailed here in the "Out of scope" section, there are better ways of organizing this module. This issue is to define the scope to encapsulate this work.

Tasks:

minrwhite commented 7 years ago

Note: This seemed to be interrelated to the work that @g2rm is doing in hoodiehq/hoodie-server#526

gr2m commented 7 years ago

I think I would rename this package to couchdb-admins, as it mimic CouchDB’s admins APIs, and remove the pouchdb plugin implementation.

I don’t think we will use this package in future for hoodie core, I think we will store admins the same way we store user accounts, either in the same database with a admin role or in a separate database, it will make our lives much easier, and we no longer need to mimic CouchDB’s config API for admins