Skip to content

Commit

Permalink
refactor: rename XBlockDuplicatedData to DuplicatedXBlockData
Browse files Browse the repository at this point in the history
  • Loading branch information
navinkarkera committed Nov 21, 2022
1 parent 8fbafe0 commit 12918cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion openedx_events/content_authoring/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class XBlockData:


@attr.s(frozen=True)
class XBlockDuplicatedData(XBlockData):
class DuplicatedXBlockData(XBlockData):
"""
Data about duplicated XBlock.
Expand Down
6 changes: 3 additions & 3 deletions openedx_events/content_authoring/signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
docs/decisions/0003-events-payload.rst
"""

from openedx_events.content_authoring.data import CourseCatalogData, XBlockData, XBlockDuplicatedData
from openedx_events.content_authoring.data import CourseCatalogData, XBlockData, DuplicatedXBlockData
from openedx_events.tooling import OpenEdxPublicSignal

# .. event_type: org.openedx.content_authoring.course.catalog_info.changed.v1
Expand Down Expand Up @@ -50,10 +50,10 @@
# .. event_type: org.openedx.content_authoring.xblock.duplicated.v1
# .. event_name: XBLOCK_DUPLICATED
# .. event_description: Fired when an XBlock is duplicated in Studio.
# .. event_data: XBlockDuplicatedData
# .. event_data: DuplicatedXBlockData
XBLOCK_DUPLICATED = OpenEdxPublicSignal(
event_type="org.openedx.content_authoring.xblock.duplicated.v1",
data={
"xblock_info": XBlockDuplicatedData,
"xblock_info": DuplicatedXBlockData,
}
)

0 comments on commit 12918cb

Please sign in to comment.