Skip to content

Commit b98e41e

Browse files
feat: add v2 REST API endpoints for instructor dashboard data downloads (#37984)
1 parent 8dd99de commit b98e41e

4 files changed

Lines changed: 1091 additions & 8 deletions

File tree

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,29 @@
11
"""
22
Constants used by Instructor.
33
"""
4+
from enum import StrEnum
45

56
# this is the UserPreference key for the user's recipient invoice copy
67
INVOICE_KEY = 'pref-invoice-copy'
78

89
# external plugins (if any) will use this constant to return context to instructor dashboard
910
INSTRUCTOR_DASHBOARD_PLUGIN_VIEW_NAME = 'instructor_dashboard'
11+
12+
13+
class ReportType(StrEnum):
14+
"""
15+
Enum for report types used in the instructor dashboard downloads API.
16+
These are the user-facing report type identifiers.
17+
"""
18+
ENROLLED_STUDENTS = "enrolled_students"
19+
PENDING_ENROLLMENTS = "pending_enrollments"
20+
PENDING_ACTIVATIONS = "pending_activations"
21+
ANONYMIZED_STUDENT_IDS = "anonymized_student_ids"
22+
GRADE = "grade"
23+
PROBLEM_GRADE = "problem_grade"
24+
PROBLEM_RESPONSES = "problem_responses"
25+
ORA2_SUMMARY = "ora2_summary"
26+
ORA2_DATA = "ora2_data"
27+
ORA2_SUBMISSION_FILES = "ora2_submission_files"
28+
ISSUED_CERTIFICATES = "issued_certificates"
29+
UNKNOWN = "unknown"

0 commit comments

Comments
 (0)