move "userdata" views into own database
authorStefan Kögl <stefan@skoegl.net>
Sat, 17 Aug 2013 15:54:05 +0000 (17 17:54 +0200)
committerStefan Kögl <stefan@skoegl.net>
Sat, 17 Aug 2013 15:54:05 +0000 (17 17:54 +0200)
45 files changed:
couchdb/userdata/_design/chapters/views/by_episode/map.js [moved from couchdb/general/_design/chapters/views/by_episode/map.js with 100% similarity]
couchdb/userdata/_design/episode_actions/views/by_device/map.js [moved from couchdb/general/_design/episode_actions/views/by_device/map.js with 100% similarity]
couchdb/userdata/_design/episode_actions/views/by_podcast/map.js [moved from couchdb/general/_design/episode_actions/views/by_podcast/map.js with 100% similarity]
couchdb/userdata/_design/episode_actions/views/by_podcast_device/map.js [moved from couchdb/general/_design/episode_actions/views/by_podcast_device/map.js with 100% similarity]
couchdb/userdata/_design/episode_actions/views/by_user/map.js [moved from couchdb/general/_design/episode_actions/views/by_user/map.js with 100% similarity]
couchdb/userdata/_design/episode_states/filters/episode_states.js [moved from couchdb/general/_design/episode_states/filters/episode_states.js with 100% similarity]
couchdb/userdata/_design/episode_states/filters/has_play_events.js [moved from couchdb/general/_design/episode_states/filters/has_play_events.js with 100% similarity]
couchdb/userdata/_design/episode_states/views/by_podcast_episode/map.js [moved from couchdb/general/_design/episode_states/views/by_podcast_episode/map.js with 100% similarity]
couchdb/userdata/_design/episode_states/views/by_ref_urls/map.js [moved from couchdb/general/_design/episode_states/views/by_ref_urls/map.js with 100% similarity]
couchdb/userdata/_design/episode_states/views/by_user_episode/map.js [moved from couchdb/general/_design/episode_states/views/by_user_episode/map.js with 100% similarity]
couchdb/userdata/_design/episode_states/views/by_user_podcast/map.js [moved from couchdb/general/_design/episode_states/views/by_user_podcast/map.js with 100% similarity]
couchdb/userdata/_design/favorites/views/episodes_by_user/map.js [moved from couchdb/general/_design/favorites/views/episodes_by_user/map.js with 100% similarity]
couchdb/userdata/_design/heatmap/views/by_episode/map.js [moved from couchdb/general/_design/heatmap/views/by_episode/map.js with 100% similarity]
couchdb/userdata/_design/heatmap/views/by_episode/reduce.js [moved from couchdb/general/_design/heatmap/views/by_episode/reduce.js with 100% similarity]
couchdb/userdata/_design/history/views/by_device/map.js [moved from couchdb/general/_design/history/views/by_device/map.js with 100% similarity]
couchdb/userdata/_design/history/views/by_user/map.js [moved from couchdb/general/_design/history/views/by_user/map.js with 100% similarity]
couchdb/userdata/_design/listeners/views/by_episode/map.js [moved from couchdb/general/_design/listeners/views/by_episode/map.js with 100% similarity]
couchdb/userdata/_design/listeners/views/by_episode/reduce.js [moved from couchdb/general/_design/subscriptions/views/by_user/reduce.js with 100% similarity]
couchdb/userdata/_design/listeners/views/by_podcast/map.js [moved from couchdb/general/_design/listeners/views/by_podcast/map.js with 100% similarity]
couchdb/userdata/_design/listeners/views/by_podcast/reduce.js [moved from couchdb/general/_design/subscriptions/views/by_podcast/reduce.js with 100% similarity]
couchdb/userdata/_design/listeners/views/by_podcast_episode/map.js [moved from couchdb/general/_design/listeners/views/by_podcast_episode/map.js with 100% similarity]
couchdb/userdata/_design/listeners/views/by_podcast_episode/reduce.js [moved from couchdb/general/_design/subscribers/views/by_podcast/reduce.js with 100% similarity]
couchdb/userdata/_design/listeners/views/by_user/map.js [moved from couchdb/general/_design/listeners/views/by_user/map.js with 100% similarity]
couchdb/userdata/_design/listeners/views/by_user/reduce.js [moved from couchdb/general/_design/listeners/views/by_user_podcast/reduce.js with 100% similarity]
couchdb/userdata/_design/listeners/views/by_user_podcast/map.js [moved from couchdb/general/_design/listeners/views/by_user_podcast/map.js with 100% similarity]
couchdb/userdata/_design/listeners/views/by_user_podcast/reduce.js [moved from couchdb/general/_design/listeners/views/by_user/reduce.js with 100% similarity]
couchdb/userdata/_design/listeners/views/times_played_by_user/map.js [moved from couchdb/general/_design/listeners/views/times_played_by_user/map.js with 100% similarity]
couchdb/userdata/_design/listeners/views/times_played_by_user/reduce.js [moved from couchdb/general/_design/usertags/views/podcasts/reduce.js with 100% similarity]
couchdb/userdata/_design/podcast_states/validate_doc_update.js [moved from couchdb/general/_design/podcast_states/validate_doc_update.js with 100% similarity]
couchdb/userdata/_design/podcast_states/views/by_device/map.js [moved from couchdb/general/_design/podcast_states/views/by_device/map.js with 100% similarity]
couchdb/userdata/_design/podcast_states/views/by_podcast/map.js [moved from couchdb/general/_design/podcast_states/views/by_podcast/map.js with 100% similarity]
couchdb/userdata/_design/podcast_states/views/by_user/map.js [moved from couchdb/general/_design/podcast_states/views/by_user/map.js with 100% similarity]
couchdb/userdata/_design/subscribers/views/by_podcast/map.js [moved from couchdb/general/_design/subscribers/views/by_podcast/map.js with 100% similarity]
couchdb/userdata/_design/subscribers/views/by_podcast/reduce.js [moved from couchdb/general/_design/listeners/views/by_podcast_episode/reduce.js with 100% similarity]
couchdb/userdata/_design/subscriptions/views/by_device/map.js [moved from couchdb/general/_design/subscriptions/views/by_device/map.js with 100% similarity]
couchdb/userdata/_design/subscriptions/views/by_podcast/map.js [moved from couchdb/general/_design/subscriptions/views/by_podcast/map.js with 100% similarity]
couchdb/userdata/_design/subscriptions/views/by_podcast/reduce.js [moved from couchdb/general/_design/listeners/views/by_podcast/reduce.js with 100% similarity]
couchdb/userdata/_design/subscriptions/views/by_user/map.js [moved from couchdb/general/_design/subscriptions/views/by_user/map.js with 100% similarity]
couchdb/userdata/_design/subscriptions/views/by_user/reduce.js [moved from couchdb/general/_design/listeners/views/by_episode/reduce.js with 100% similarity]
couchdb/userdata/_design/usertags/views/by_podcast/map.js [moved from couchdb/general/_design/usertags/views/by_podcast/map.js with 100% similarity]
couchdb/userdata/_design/usertags/views/by_podcast/reduce.js [moved from couchdb/general/_design/usertags/views/by_podcast/reduce.js with 100% similarity]
couchdb/userdata/_design/usertags/views/podcasts/map.js [moved from couchdb/general/_design/usertags/views/podcasts/map.js with 100% similarity]
couchdb/userdata/_design/usertags/views/podcasts/reduce.js [moved from couchdb/general/_design/listeners/views/times_played_by_user/reduce.js with 100% similarity]
doc/dev/couchdb-views.rst
mygpo/settings.py

index 7fd00fd..c1f4276 100644 (file)
@@ -15,16 +15,6 @@ This group of views is available on the general database, called ``mygpo`` by
 default.
 
 
-Chapters
-^^^^^^^^
-
-Doc-Types: EpisodeUserState
-
-**Views**
-
-* `chapters/by_episode <https://github.com/gpodder/mygpo/tree/master/couchdb/general/_design/chapters/views/by_episode>`_
-
-
 Clients
 ^^^^^^^
 
@@ -35,32 +25,6 @@ Doc-Types: User
 * `clients/by_ua_string <https://github.com/gpodder/mygpo/tree/master/couchdb/general/_design/clients/views/by_ua_string>`_
 
 
-Episode Actions
-^^^^^^^^^^^^^^^
-
-Doc-Types: EpisodeUserState
-
-**Views**
-
-* `episode_actions/by_device <https://github.com/gpodder/mygpo/tree/master/couchdb/general/_design/episode_actions/views/by_device>`_
-* `episode_actions/by_podcast_device <https://github.com/gpodder/mygpo/tree/master/couchdb/general/_design/episode_actions/views/by_podcast_device>`_
-* `episode_actions/by_podcast <https://github.com/gpodder/mygpo/tree/master/couchdb/general/_design/episode_actions/views/by_podcast>`_
-* `episode_actions/by_user <https://github.com/gpodder/mygpo/tree/master/couchdb/general/_design/episode_actions/views/by_user>`_
-
-
-Episode States
-^^^^^^^^^^^^^^
-
-Doc-Types: EpisodeUserState
-
-**Views**
-
-* `episode_states/by_podcast_episode <https://github.com/gpodder/mygpo/tree/master/couchdb/general/_design/episode_states/views/by_podcast_episode>`_
-* `episode_states/by_ref_urls <https://github.com/gpodder/mygpo/tree/master/couchdb/general/_design/episode_states/views/by_ref_urls>`_
-* `episode_states/by_user_episode <https://github.com/gpodder/mygpo/tree/master/couchdb/general/_design/episode_states/views/by_user_episode>`_
-* `episode_states/by_user_podcast <https://github.com/gpodder/mygpo/tree/master/couchdb/general/_design/episode_states/views/by_user_podcast>`_
-
-
 Episode Statistics
 ^^^^^^^^^^^^^^^^^^
 
@@ -86,52 +50,6 @@ Doc-Types: Episode
 * `episodes/need_update <https://github.com/gpodder/mygpo/tree/master/couchdb/general/_design/episodes/views/need_update>`_
 
 
-Favorites
-^^^^^^^^^
-
-Doc-Types: EpisodeUserState
-
-**Views**
-
-* `episodes/favorites_by_user <https://github.com/gpodder/mygpo/tree/master/couchdb/general/_design/favorites/views/episodes_by_user>`_
-
-
-Heatmap
-^^^^^^^
-
-Doc-Types: EpisodeUserState
-
-**Views**
-
-* `heatmap/by_episode <https://github.com/gpodder/mygpo/tree/master/couchdb/general/_design/heatmap/views/by_episode>`_
-
-
-History
-^^^^^^^
-
-Doc-Types: EpisodeUserState, PodcastUserState
-
-**Views**
-
-* `history/by_device <https://github.com/gpodder/mygpo/tree/master/couchdb/general/_design/history/views/by_device>`_
-* `history/by_user <https://github.com/gpodder/mygpo/tree/master/couchdb/general/_design/history/views/by_user>`_
-
-
-Listeners
-^^^^^^^^^
-
-Doc-Types: EpisodeUserState
-
-**Views**
-
-* `listeners/by_episode <https://github.com/gpodder/mygpo/tree/master/couchdb/general/_design/listeners/views/by_episode>`_
-* `listeners/by_podcast_episode <https://github.com/gpodder/mygpo/tree/master/couchdb/general/_design/listeners/views/by_podcast_episode>`_
-* `listeners/by_podcast <https://github.com/gpodder/mygpo/tree/master/couchdb/general/_design/listeners/views/by_podcast>`_
-* `listeners/by_user <https://github.com/gpodder/mygpo/tree/master/couchdb/general/_design/listeners/views/by_user>`_
-* `listeners/by_user_podcast <https://github.com/gpodder/mygpo/tree/master/couchdb/general/_design/listeners/views/by_user_podcast>`_
-* `listeners/times_played_by_user <https://github.com/gpodder/mygpo/tree/master/couchdb/general/_design/listeners/views/times_played_by_user>`_
-
-
 Podcast Lists
 ^^^^^^^^^^^^^
 
@@ -144,18 +62,6 @@ Doc-Types: PodcastList
 * `podcastlists/random <https://github.com/gpodder/mygpo/tree/master/couchdb/general/_design/podcastlists/views/random>`_
 
 
-Podcast States
-^^^^^^^^^^^^^^
-
-Doc-Types: PodcastUserState
-
-**Views**
-
-* `podcast_states/by_device <https://github.com/gpodder/mygpo/tree/master/couchdb/general/_design/podcast_states/views/by_device>`_
-* `podcast_states/by_podcast <https://github.com/gpodder/mygpo/tree/master/couchdb/general/_design/podcast_states/views/by_podcast>`_
-* `podcast_states/by_user <https://github.com/gpodder/mygpo/tree/master/couchdb/general/_design/podcast_states/views/by_user>`_
-
-
 Podcasts
 ^^^^^^^^
 
@@ -187,28 +93,6 @@ Doc-Types: Podcast, PodcastGroup, Episode
 * `slugs/missing <https://github.com/gpodder/mygpo/tree/master/couchdb/general/_design/slugs/views/missing>`_
 
 
-Subscribers
-^^^^^^^^^^^
-
-Doc-Types: PodcastUserState
-
-**Views**
-
-* `subscribers/by_podcast <https://github.com/gpodder/mygpo/tree/master/couchdb/general/_design/subscribers/views/by_podcast>`_
-
-
-Subscriptions
-^^^^^^^^^^^^^
-
-Doc-Types: PodcastUserState
-
-**Views**
-
-* `subscriptions/by_device <https://github.com/gpodder/mygpo/tree/master/couchdb/general/_design/subscriptions/views/by_device>`_
-* `subscriptions/by_podcast <https://github.com/gpodder/mygpo/tree/master/couchdb/general/_design/subscriptions/views/by_podcast>`_
-* `subscriptions/by_user <https://github.com/gpodder/mygpo/tree/master/couchdb/general/_design/subscriptions/views/by_user>`_
-
-
 Suggestions
 ^^^^^^^^^^^
 
@@ -262,6 +146,128 @@ Doc-Types: User
 * `users/deleted <https://github.com/gpodder/mygpo/tree/master/couchdb/general/_design/users/views/deleted>`_
 
 
+Userdata
+--------
+
+This group of views is available in the *userdata* database, called
+``mygpo_userdata`` by default.
+
+Chapters
+^^^^^^^^
+
+Doc-Types: EpisodeUserState
+
+**Views**
+
+* `chapters/by_episode <https://github.com/gpodder/mygpo/tree/master/couchdb/general/_design/chapters/views/by_episode>`_
+
+
+Episode Actions
+^^^^^^^^^^^^^^^
+
+Doc-Types: EpisodeUserState
+
+**Views**
+
+* `episode_actions/by_device <https://github.com/gpodder/mygpo/tree/master/couchdb/general/_design/episode_actions/views/by_device>`_
+* `episode_actions/by_podcast_device <https://github.com/gpodder/mygpo/tree/master/couchdb/general/_design/episode_actions/views/by_podcast_device>`_
+* `episode_actions/by_podcast <https://github.com/gpodder/mygpo/tree/master/couchdb/general/_design/episode_actions/views/by_podcast>`_
+* `episode_actions/by_user <https://github.com/gpodder/mygpo/tree/master/couchdb/general/_design/episode_actions/views/by_user>`_
+
+
+Episode States
+^^^^^^^^^^^^^^
+
+Doc-Types: EpisodeUserState
+
+**Views**
+
+* `episode_states/by_podcast_episode <https://github.com/gpodder/mygpo/tree/master/couchdb/general/_design/episode_states/views/by_podcast_episode>`_
+* `episode_states/by_ref_urls <https://github.com/gpodder/mygpo/tree/master/couchdb/general/_design/episode_states/views/by_ref_urls>`_
+* `episode_states/by_user_episode <https://github.com/gpodder/mygpo/tree/master/couchdb/general/_design/episode_states/views/by_user_episode>`_
+* `episode_states/by_user_podcast <https://github.com/gpodder/mygpo/tree/master/couchdb/general/_design/episode_states/views/by_user_podcast>`_
+
+
+Favorites
+^^^^^^^^^
+
+Doc-Types: EpisodeUserState
+
+**Views**
+
+* `episodes/favorites_by_user <https://github.com/gpodder/mygpo/tree/master/couchdb/general/_design/favorites/views/episodes_by_user>`_
+
+
+Heatmap
+^^^^^^^
+
+Doc-Types: EpisodeUserState
+
+**Views**
+
+* `heatmap/by_episode <https://github.com/gpodder/mygpo/tree/master/couchdb/general/_design/heatmap/views/by_episode>`_
+
+
+History
+^^^^^^^
+
+Doc-Types: EpisodeUserState, PodcastUserState
+
+**Views**
+
+* `history/by_device <https://github.com/gpodder/mygpo/tree/master/couchdb/general/_design/history/views/by_device>`_
+* `history/by_user <https://github.com/gpodder/mygpo/tree/master/couchdb/general/_design/history/views/by_user>`_
+
+
+Listeners
+^^^^^^^^^
+
+Doc-Types: EpisodeUserState
+
+**Views**
+
+* `listeners/by_episode <https://github.com/gpodder/mygpo/tree/master/couchdb/general/_design/listeners/views/by_episode>`_
+* `listeners/by_podcast_episode <https://github.com/gpodder/mygpo/tree/master/couchdb/general/_design/listeners/views/by_podcast_episode>`_
+* `listeners/by_podcast <https://github.com/gpodder/mygpo/tree/master/couchdb/general/_design/listeners/views/by_podcast>`_
+* `listeners/by_user <https://github.com/gpodder/mygpo/tree/master/couchdb/general/_design/listeners/views/by_user>`_
+* `listeners/by_user_podcast <https://github.com/gpodder/mygpo/tree/master/couchdb/general/_design/listeners/views/by_user_podcast>`_
+* `listeners/times_played_by_user <https://github.com/gpodder/mygpo/tree/master/couchdb/general/_design/listeners/views/times_played_by_user>`_
+
+
+Podcast States
+^^^^^^^^^^^^^^
+
+Doc-Types: PodcastUserState
+
+**Views**
+
+* `podcast_states/by_device <https://github.com/gpodder/mygpo/tree/master/couchdb/general/_design/podcast_states/views/by_device>`_
+* `podcast_states/by_podcast <https://github.com/gpodder/mygpo/tree/master/couchdb/general/_design/podcast_states/views/by_podcast>`_
+* `podcast_states/by_user <https://github.com/gpodder/mygpo/tree/master/couchdb/general/_design/podcast_states/views/by_user>`_
+
+
+Subscribers
+^^^^^^^^^^^
+
+Doc-Types: PodcastUserState
+
+**Views**
+
+* `subscribers/by_podcast <https://github.com/gpodder/mygpo/tree/master/couchdb/general/_design/subscribers/views/by_podcast>`_
+
+
+Subscriptions
+^^^^^^^^^^^^^
+
+Doc-Types: PodcastUserState
+
+**Views**
+
+* `subscriptions/by_device <https://github.com/gpodder/mygpo/tree/master/couchdb/general/_design/subscriptions/views/by_device>`_
+* `subscriptions/by_podcast <https://github.com/gpodder/mygpo/tree/master/couchdb/general/_design/subscriptions/views/by_podcast>`_
+* `subscriptions/by_user <https://github.com/gpodder/mygpo/tree/master/couchdb/general/_design/subscriptions/views/by_user>`_
+
+
 User-Tags
 ^^^^^^^^^
 
@@ -275,6 +281,7 @@ Doc-Types: PodcastUserState
 
 
 
+
 Categories
 ----------
 
index e12ad80..a0dd1ed 100644 (file)
@@ -72,6 +72,9 @@ COUCHDB_DATABASES = {
 
     'mygpo.categories':
         {'URL': 'http://127.0.0.1:5984/mygpo_categories'},
+
+    'mygpo.userdata':
+        {'URL': 'http://127.0.0.1:5984/mygpo_userdata'},
 }
 
 # Maps design documents to databases. The keys correspond to the directories in
@@ -83,6 +86,7 @@ COUCHDB_DDOC_MAPPING = {
     'general':    'core',
     'categories': 'categories',
     'pubsub':     'pubsub',
+    'userdata':   'userdata',
 }
 
 # Local time zone for this installation. Choices can be found here: