Gut `metastore`, rename to `views`
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Dmedia |
Fix Released
|
High
|
Jason Gerard DeRose |
Bug Description
`metastore.
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".
Related branches
- James Raymond: Approve
-
Diff: 3658 lines (+1603/-1016)32 files modifiedMANIFEST.in (+4/-3)
dmedia-cli (+69/-167)
dmedia-gtk (+46/-37)
dmedia-importer-service (+47/-46)
dmedia-service (+72/-0)
dmedia/__init__.py (+1/-0)
dmedia/abstractcouch.py (+22/-34)
dmedia/api.py (+87/-0)
dmedia/constants.py (+3/-1)
dmedia/core.py (+195/-0)
dmedia/filestore.py (+31/-36)
dmedia/gtkui/client.py (+19/-19)
dmedia/gtkui/service.py (+23/-28)
dmedia/gtkui/tests/test_client.py (+10/-9)
dmedia/gtkui/tests/test_service.py (+0/-53)
dmedia/importer.py (+5/-14)
dmedia/schema.py (+19/-3)
dmedia/service/__init__.py (+94/-0)
dmedia/tests/couch.py (+5/-3)
dmedia/tests/test_abstractcouch.py (+72/-143)
dmedia/tests/test_api.py (+125/-0)
dmedia/tests/test_core.py (+336/-0)
dmedia/tests/test_downloader.py (+8/-8)
dmedia/tests/test_filestore.py (+106/-77)
dmedia/tests/test_importer.py (+4/-4)
dmedia/tests/test_transcoder.py (+2/-2)
dmedia/tests/test_views.py (+65/-136)
dmedia/views.py (+76/-162)
dmedia/workers.py (+6/-6)
setup.py (+46/-23)
share/org.freedesktop.DMedia.service (+3/-0)
share/org.freedesktop.DMediaImporter.service (+2/-2)
Changed in dmedia: | |
status: | Triaged → In Progress |
Changed in dmedia: | |
status: | In Progress → Fix Committed |
Changed in dmedia: | |
status: | Fix Committed → Fix Released |
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