Gut `metastore`, rename to `views`

Bug #753180 reported by Jason Gerard DeRose
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Dmedia
Fix Released
High
Jason Gerard DeRose

Bug Description

`metastore.MetaStore` ended up being an ill conceived wrapper around the desktopcouch wrapper around the python-couchdb wrapper. But as I learn the CouchDB API better, I consistently want less wrapper, more REST.

However, `metastore` does have some handy stuff for defining views and building design docs, so we should keep this. So the plan is to gut everything except the view related stuff, then rename the module to `views`.

Also, although somewhat out of scope for this bug, we need to minimize when we generate the design docs and check if they match what is currently in CouchDB (actually, this brings out the downside of syncing views for something like desktopcouch). Normally this should happen at most once per session when dmedia-service first starts... right now it's happening every time you launch dmedia-gtk, which is "not a good thing".

Tags: couchdb schema

Related branches

Changed in dmedia:
status: Triaged → In Progress
Revision history for this message
Jason Gerard DeRose (jderose) wrote :

Ended up making much more sense to do this along with:

  Add new core API/entry-point sans import functionality - https://bugs.launchpad.net/dmedia/+bug/753260

and

  Split into simpler, more MAC friendly services - https://bugs.launchpad.net/dmedia/+bug/724707

This feature is complete and you can see the new lean `views` module here:

  http://bazaar.launchpad.net/~jderose/dmedia/core-api/view/head:/dmedia/views.py

This will be merged to trunk together with lp:753260 and lp:724707

Changed in dmedia:
status: In Progress → Fix Committed
Changed in dmedia:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.