Skip to content

Commit

Permalink
fix: rebasing off main only
Browse files Browse the repository at this point in the history
  • Loading branch information
ilee2u committed Sep 21, 2023
1 parent 6424a40 commit 78cb0fa
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 37 deletions.
14 changes: 0 additions & 14 deletions openedx_events/learning/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,20 +298,6 @@ class ProgramCertificateData:
certificate_available_date = attr.ib(type=datetime, default=None)


@attr.s(frozen=True)
class CourseStaffData:
"""
Attributes defined for the Open edX Authentication function to Add Users to a role.
Arguments:
course_key (Course ID): identifier of the course where the user will have staff role assigned/removed
user (UserData): User who will have the "Course Staff" role assigned/removed
"""

course_key = attr.ib(type=str)
user = attr.ib(type=UserData)


@attr.s(frozen=True)
class ExamAttemptData:
"""
Expand Down
23 changes: 0 additions & 23 deletions openedx_events/learning/signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
CohortData,
CourseDiscussionConfigurationData,
CourseEnrollmentData,
CourseStaffData,
ExamAttemptData,
PersistentCourseGradeData,
ProgramCertificateData,
Expand Down Expand Up @@ -199,28 +198,6 @@
}
)

# .. event_type: org.openedx.learning.user.course.staff.role.added.v1
# .. event_name: COURSE_STAFF_ROLE_ADDED
# .. event_description: Emitted when the "Course Staff" role is added to a user.
# .. event_data: CourseStaffData
COURSE_STAFF_ROLE_ADDED = OpenEdxPublicSignal(
event_type="org.openedx.learning.user.course.staff.role.added.v1",
data={
"course_staff_data": CourseStaffData,
}
)

# .. event_type: org.openedx.learning.user.course.staff.role.removed.v1
# .. event_name: COURSE_STAFF_ROLE_REMOVED
# .. event_description: Emitted when the "Course Staff" role is removed from a user.
# .. event_data: CourseStaffData
COURSE_STAFF_ROLE_REMOVED = OpenEdxPublicSignal(
event_type="org.openedx.learning.user.course.staff.role.removed.v1",
data={
"course_staff_data": CourseStaffData,
}
)

# .. event_type: org.openedx.learning.exam.attempt.submitted.v1
# .. event_name: EXAM_ATTEMPT_SUBMITTED
# .. event_description: Emitted when an exam attempt is submitted by a learner.
Expand Down

0 comments on commit 78cb0fa

Please sign in to comment.