Switch to unified view

a/Allura/allura/model/auth.py b/Allura/allura/model/auth.py
...
...
608
            user_id={'$ne': None}, roles=self._id)).all()
608
            user_id={'$ne': None}, roles=self._id)).all()
609
609
610
audit_log = collection(
610
audit_log = collection(
611
    'audit_log', main_doc_session,
611
    'audit_log', main_doc_session,
612
    Field('_id', S.ObjectId()),
612
    Field('_id', S.ObjectId()),
613
    Field('project_id', S.ObjectId, if_missing=None),
613
    Field('project_id', S.ObjectId, if_missing=None,
614
          index=True),  # main view of audit log queries by project_id
614
    Field('user_id', S.ObjectId, if_missing=None),
615
    Field('user_id', S.ObjectId, if_missing=None),
615
    Field('timestamp', datetime, if_missing=datetime.utcnow),
616
    Field('timestamp', datetime, if_missing=datetime.utcnow),
616
    Field('url', str),
617
    Field('url', str),
617
    Field('message', str))
618
    Field('message', str))
618
619