Skip to content

Commit

Permalink
feat: add certificates stats
Browse files Browse the repository at this point in the history
This updates frontend essentials to include the new certificates metric
https://edunext.atlassian.net/browse/FUTUREX-489
  • Loading branch information
andrey-canon committed Sep 14, 2023
1 parent f19260e commit 77a6ed7
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 10 deletions.
2 changes: 1 addition & 1 deletion eox_nelp/static/feedback_carousel/js/feedback_carousel.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion eox_nelp/static/tenant_stats/js/tenant_stats.js

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ function LaunchStatsContainer() {
showProblems={showProblems}
showLearners={showLearners}
showInstructors={showInstructors}
showCertificates={showCertificates}
/>
</IntlProvider>
);
Expand Down
2 changes: 2 additions & 0 deletions eox_nelp/stats/templates/tenant_stats.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<%namespace name='static' file='static_content.html'/>
<%page args="show_videos, show_courses, show_problems, show_learners, show_instructors, show_certificates"/>
<html>
<head>
<meta charset="utf-8">
Expand All @@ -13,6 +14,7 @@
var showProblems = "true" === "${show_problems}";
var showLearners = "true" === "${show_learners}";
var showInstructors = "true" === "${show_instructors}";
var showCertificates = "true" === "${show_certificates}";
</script>
<script src="${static.url('tenant_stats/js/tenant_stats.js')}"></script>
</body>
Expand Down
3 changes: 3 additions & 0 deletions eox_nelp/stats/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"show_problems",
"show_learners",
"show_instructors",
"show_certificates",
]


Expand Down Expand Up @@ -40,6 +41,8 @@ def get_tenant_stats(request):
| show_instructors | true | Show the instructors stats |
| show_problems | true | Show the problems stats |
| show_certificates| true | Show the certificates stats |
"""
context = {query_param: "true" for query_param in STATS_QUERY_PARAMS}
context.update(request.GET.dict())
Expand Down
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"license": "ISC",
"homepage": "https://bitbucket.org/edunext/eox-nelp#readme",
"dependencies": {
"@edunext/frontend-essentials": "^1.6.1",
"@edunext/frontend-essentials": "^1.7.0",
"@edx/brand": "github:nelc/brand-openedx#ednx-release/mango.nelp",
"@edx/frontend-platform": "npm:@edunext/frontend-platform@^3.3.1",
"@edx/paragon": "npm:@edunext/paragon@^20.22.48",
Expand Down

0 comments on commit 77a6ed7

Please sign in to comment.