Skip to content

Commit

Permalink
refactor: rewrite forum payload to be sent to the event bus
Browse files Browse the repository at this point in the history
  • Loading branch information
mariajgrimaldi committed Dec 13, 2024
1 parent 1f3cac7 commit c78406c
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions openedx_events/learning/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,26 +406,26 @@ class DiscussionThreadData:
options (dict): options for the thread.
"""

anonymous = attr.ib(type=bool)
anonymous_to_peers = attr.ib(type=bool)
body = attr.ib(type=str)
category_id = attr.ib(type=int)
category_name = attr.ib(type=str)
commentable_id = attr.ib(type=str)
group_id = attr.ib(type=int)
id = attr.ib(type=int)
team_id = attr.ib(type=int)
thread_type = attr.ib(type=str)
title = attr.ib(type=str)
title_truncated = attr.ib(type=bool)
id = attr.ib(type=str)
truncated = attr.ib(type=bool)
url = attr.ib(type=str)
user = attr.ib(type=UserData)
course_id = attr.ib(type=CourseKey)
discussion = attr.ib(type=dict[str, str], factory=dict)
thread_type = attr.ib(type=str, default=None)
anonymous = attr.ib(type=bool, default=None)
anonymous_to_peers = attr.ib(type=bool, default=None)
title = attr.ib(type=str, default=None)
title_truncated = attr.ib(type=bool, default=None)
group_id = attr.ib(type=int, default=None)
team_id = attr.ib(type=int, default=None)
category_id = attr.ib(type=int, default=None)
category_name = attr.ib(type=str, default=None)
discussion = attr.ib(type=dict[str, str], default=None)
user_course_roles = attr.ib(type=List[str], factory=list)
user_forums_roles = attr.ib(type=List[str], factory=list)
options = attr.ib(type=dict[str, str], factory=dict)
options = attr.ib(type=dict[str, bool], factory=dict)


@attr.s(frozen=True)
Expand Down

0 comments on commit c78406c

Please sign in to comment.