open-learning-exchange/planet

View on GitHub
design/courses_progress/courses_progress-design.json

Summary

Maintainability
Test Coverage
{"views":{"enrollment":{"map":"function (doc) {\n        emit({ userId: doc.userId, courseId: doc.courseId } , doc.createdDate);\n      }","reduce":"_stats"},"completion":{"map":"function (doc) {\n        if (doc.passed) {\n          emit({ userId: doc.userId, courseId: doc.courseId } , doc.updatedDate);\n        }\n      }","reduce":"_stats"},"steps":{"map":"function (doc) {\n        // Found sometimes course progress record stepNum 0\n        if (doc.passed && doc.stepNum > 0) {\n          emit({ userId: doc.userId, courseId: doc.courseId, stepNum: doc.stepNum } , doc.updatedDate);\n        }\n      }","reduce":"_stats"}}}