Skip to content

Commit

Permalink
fix: add configurable help tab for at-risk and comparison dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian2012 committed Nov 14, 2024
1 parent c73d2e3 commit 35efdda
Show file tree
Hide file tree
Showing 5 changed files with 191 additions and 340 deletions.
14 changes: 7 additions & 7 deletions tutoraspects/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,6 @@
"reference/course_overview_dashboard.html)<br>"
"* [Superset Resources](https://github.com/apache/superset#resources)<br>",
),
(
"ASPECTS_INSTRUCTOR_HELP_MARKDOWN",
"## Help<br>"
"* [Aspects Reference](https://docs.openedx.org/projects/openedx-aspects/page/"
"reference/course_overview_dashboard.html)<br>"
"* [Superset Resources](https://github.com/apache/superset#resources)<br>",
),
(
"ASPECTS_LEARNER_GROUPS_HELP_MARKDOWN",
"## Help<br>"
Expand All @@ -103,6 +96,13 @@
"reference/individual_learner_dashboard.html)<br>"
"* [Superset Resources](https://github.com/apache/superset#resources)<br>",
),
(
"ASPECTS_COURSE_COMPARISON_HELP_MARKDOWN",
"## Help<br>"
"* [Aspects Reference](https://docs.openedx.org/projects/openedx-aspects/page/"
"reference/course_comparison_dashboard.html)<br>"
"* [Superset Resources](https://github.com/apache/superset#resources)<br>",
),
("ASPECTS_ENABLE_INSTRUCTOR_DASHBOARD_PLUGIN", True),
# Whether to show the link to go to Superset in the instructor dashboard tab
("SUPERSET_SHOW_INSTRUCTOR_DASHBOARD_LINK", True),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@ params:
- course_name
- expressionType: SQL
label: More details
sqlExpression: |
{% raw %}{{ get_filtered_dashboard_link('course-dashboard', 'course_run', 'w863AfFgi') }}{% endraw %}
sqlExpression: |-
{% raw %}{{ get_filtered_dashboard_link('course-dashboard', 'course_run', 'w863AfFgi') }}
{% endraw %}
metrics:
- enrollees
- active_count
Expand Down Expand Up @@ -83,8 +84,9 @@ query_context:
- course_name
- expressionType: SQL
label: More details
sqlExpression: |
{% raw %}{{ get_filtered_dashboard_link('course-dashboard', 'course_run', 'w863AfFgi') }}{% endraw %}
sqlExpression: |-
{% raw %}{{ get_filtered_dashboard_link('course-dashboard', 'course_run', 'w863AfFgi') }}
{% endraw %}
metrics:
- enrollees
- active_count
Expand All @@ -110,8 +112,9 @@ query_context:
- course_name
- expressionType: SQL
label: More details
sqlExpression: |
{% raw %}{{ get_filtered_dashboard_link('course-dashboard', 'course_run', 'w863AfFgi') }}{% endraw %}
sqlExpression: |-
{% raw %}{{ get_filtered_dashboard_link('course-dashboard', 'course_run', 'w863AfFgi') }}
{% endraw %}
custom_form_data: {}
custom_params: {}
extras:
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -989,8 +989,7 @@ position:
children: []
id: MARKDOWN-mH--KD6qFl
meta:
code: '## Help<br>* [Aspects Reference](https://docs.openedx.org/projects/openedx-aspects/page/reference/learner_groups_dashboard.html)<br>*
[Superset Resources](https://github.com/apache/superset#resources)<br>'
code: '{{ASPECTS_LEARNER_GROUPS_HELP_MARKDOWN}}'
height: 50
width: 12
parents:
Expand Down
Loading

0 comments on commit 35efdda

Please sign in to comment.