Merge branch 'remotes/gullydwarf-cfdv/f360_tagging' (early part) into mergetags
Conflicts: mediagoblin/config_spec.ini mediagoblin/edit/views.py mediagoblin/util.py
This commit is contained in:
@@ -90,6 +90,21 @@ MEDIAENTRY_INDEXES = {
|
||||
# Indexing on uploaders and when media entries are created.
|
||||
# Used for showing a user gallery, etc.
|
||||
'index': [('uploader', ASCENDING),
|
||||
('created', DESCENDING)]},
|
||||
|
||||
'state_uploader_tags_created': {
|
||||
# Indexing on processed?, media uploader, associated tags, and timestamp
|
||||
# Used for showing media items matching a tag search, most recent first.
|
||||
'index': [('state', ASCENDING),
|
||||
('uploader', ASCENDING),
|
||||
('tags.slug', DESCENDING),
|
||||
('created', DESCENDING)]},
|
||||
|
||||
'state_tags_created': {
|
||||
# Indexing on processed?, media tags, and timestamp (across all users)
|
||||
# This is used for a front page tag search.
|
||||
'index': [('state', ASCENDING),
|
||||
('tags.slug', DESCENDING),
|
||||
('created', DESCENDING)]}}
|
||||
|
||||
|
||||
|
||||
@@ -184,7 +184,7 @@ class MediaEntry(Document):
|
||||
'media_type': unicode,
|
||||
'media_data': dict, # extra data relevant to this media_type
|
||||
'plugin_data': dict, # plugins can dump stuff here.
|
||||
'tags': [unicode],
|
||||
'tags': [dict],
|
||||
'state': unicode,
|
||||
|
||||
# For now let's assume there can only be one main file queued
|
||||
|
||||
Reference in New Issue
Block a user