Skip to content

Commit

Permalink
refactor: drop trigger path for more maintainable approach
Browse files Browse the repository at this point in the history
  • Loading branch information
mariajgrimaldi committed Jan 15, 2025
1 parent 9917ede commit 693efa6
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 57 deletions.
1 change: 0 additions & 1 deletion openedx_events/analytics/signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
# .. event_description: emitted when a tracking log is created.
# .. event_data: TrackingLogData
# .. event_trigger_repository: openedx/event-tracking
# .. event_trigger_path: eventtracking/backends/event_bus.py
TRACKING_EVENT_EMITTED = OpenEdxPublicSignal(
event_type="org.openedx.analytics.tracking.event.emitted.v1",
data={
Expand Down
17 changes: 0 additions & 17 deletions openedx_events/content_authoring/signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
# .. event_description: Fired when a course changes in Studio in a way that is relevant for catalog consumers.
# .. event_data: CourseCatalogData
# .. event_trigger_repository: openedx/edx-platform
# .. event_trigger_path: cms/djangoapps/contentstore/signals/handlers.py
COURSE_CATALOG_INFO_CHANGED = OpenEdxPublicSignal(
event_type="org.openedx.content_authoring.course.catalog_info.changed.v1",
data={
Expand All @@ -41,7 +40,6 @@
# .. event_description: Fired when an XBlock is created.
# .. event_data: XBlockData
# .. event_trigger_repository: openedx/edx-platform
# .. event_trigger_path: xmodule/modulestore/mixed.py
XBLOCK_CREATED = OpenEdxPublicSignal(
event_type="org.openedx.content_authoring.xblock.created.v1",
data={
Expand All @@ -55,7 +53,6 @@
# .. event_description: Fired when an XBlock is updated.
# .. event_data: XBlockData
# .. event_trigger_repository: openedx/edx-platform
# .. event_trigger_path: xmodule/modulestore/mixed.py
XBLOCK_UPDATED = OpenEdxPublicSignal(
event_type="org.openedx.content_authoring.xblock.updated.v1",
data={
Expand All @@ -74,7 +71,6 @@
# `XBlockData(usage_key="section-usage-key", block_type="chapter")`
# .. event_data: XBlockData
# .. event_trigger_repository: openedx/edx-platform
# .. event_trigger_path: xmodule/modulestore/mixed.py
XBLOCK_PUBLISHED = OpenEdxPublicSignal(
event_type="org.openedx.content_authoring.xblock.published.v1",
data={
Expand All @@ -89,7 +85,6 @@
# .. event_description: Fired when an XBlock is deleted.
# .. event_data: XBlockData
# .. event_trigger_repository: openedx/edx-platform
# .. event_trigger_path: xmodule/modulestore/mixed.py
XBLOCK_DELETED = OpenEdxPublicSignal(
event_type="org.openedx.content_authoring.xblock.deleted.v1",
data={
Expand All @@ -104,7 +99,6 @@
# .. event_description: Fired when an XBlock is duplicated in Studio.
# .. event_data: DuplicatedXBlockData
# .. event_trigger_repository: openedx/edx-platform
# .. event_trigger_path: xmodule/modulestore/mixed.py
XBLOCK_DUPLICATED = OpenEdxPublicSignal(
event_type="org.openedx.content_authoring.xblock.duplicated.v1",
data={
Expand Down Expand Up @@ -142,7 +136,6 @@
# .. event_description: emitted when a course is created
# .. event_data: CourseData
# .. event_trigger_repository: openedx/edx-platform
# .. event_trigger_path: xmodule/modulestore/mixed.py
COURSE_CREATED = OpenEdxPublicSignal(
event_type="org.openedx.content_authoring.course.created.v1",
data={
Expand All @@ -155,7 +148,6 @@
# .. event_description: emitted when a content library is created
# .. event_data: ContentLibraryData
# .. event_trigger_repository: openedx/edx-platform
# .. event_trigger_path: openedx/core/djangoapps/content_libraries/api.py
CONTENT_LIBRARY_CREATED = OpenEdxPublicSignal(
event_type="org.openedx.content_authoring.content_library.created.v1",
data={
Expand All @@ -168,7 +160,6 @@
# .. event_description: emitted when a content library is updated
# .. event_data: ContentLibraryData
# .. event_trigger_repository: openedx/edx-platform
# .. event_trigger_path: openedx/core/djangoapps/content_libraries/api.py
CONTENT_LIBRARY_UPDATED = OpenEdxPublicSignal(
event_type="org.openedx.content_authoring.content_library.updated.v1",
data={
Expand All @@ -181,7 +172,6 @@
# .. event_description: emitted when a content library is deleted
# .. event_data: ContentLibraryData
# .. event_trigger_repository: openedx/edx-platform
# .. event_trigger_path: openedx/core/djangoapps/content_libraries/api.py
CONTENT_LIBRARY_DELETED = OpenEdxPublicSignal(
event_type="org.openedx.content_authoring.content_library.deleted.v1",
data={
Expand All @@ -194,7 +184,6 @@
# .. event_description: emitted when a library block is created
# .. event_data: LibraryBlockData
# .. event_trigger_repository: openedx/edx-platform
# .. event_trigger_path: openedx/core/djangoapps/content_libraries/api.py
LIBRARY_BLOCK_CREATED = OpenEdxPublicSignal(
event_type="org.openedx.content_authoring.library_block.created.v1",
data={
Expand All @@ -207,7 +196,6 @@
# .. event_description: emitted when a library block is updated
# .. event_data: LibraryBlockData
# .. event_trigger_repository: openedx/edx-platform
# .. event_trigger_path: openedx/core/djangoapps/content_libraries/library_context.py
LIBRARY_BLOCK_UPDATED = OpenEdxPublicSignal(
event_type="org.openedx.content_authoring.library_block.updated.v1",
data={
Expand All @@ -220,7 +208,6 @@
# .. event_description: emitted when a library block is deleted
# .. event_data: LibraryBlockData
# .. event_trigger_repository: openedx/edx-platform
# .. event_trigger_path: openedx/core/djangoapps/content_libraries/api.py
LIBRARY_BLOCK_DELETED = OpenEdxPublicSignal(
event_type="org.openedx.content_authoring.library_block.deleted.v1",
data={
Expand All @@ -233,7 +220,6 @@
# .. event_description: emitted when an object's associations are changed, e.g tags, collections
# .. event_data: ContentObjectData
# .. event_trigger_repository: openedx/edx-platform
# .. event_trigger_path: openedx/core/djangoapps/content_tagging/api.py
CONTENT_OBJECT_ASSOCIATIONS_CHANGED = OpenEdxPublicSignal(
event_type="org.openedx.content_authoring.content.object.associations.changed.v1",
data={
Expand All @@ -258,7 +244,6 @@
# .. event_description: emitted when a content library collection is created
# .. event_data: LibraryCollectionData
# .. event_trigger_repository: openedx/edx-platform
# .. event_trigger_path: openedx/core/djangoapps/content_libraries/signal_handlers.py
LIBRARY_COLLECTION_CREATED = OpenEdxPublicSignal(
event_type="org.openedx.content_authoring.content_library.collection.created.v1",
data={
Expand All @@ -271,7 +256,6 @@
# .. event_description: emitted when when a content library collection is updated
# .. event_data: LibraryCollectionData
# .. event_trigger_repository: openedx/edx-platform
# .. event_trigger_path: openedx/core/djangoapps/content_libraries/signal_handlers.py
LIBRARY_COLLECTION_UPDATED = OpenEdxPublicSignal(
event_type="org.openedx.content_authoring.content_library.collection.updated.v1",
data={
Expand All @@ -284,7 +268,6 @@
# .. event_description: emitted when an when a content library collection is deleted
# .. event_data: LibraryCollectionData
# .. event_trigger_repository: openedx/edx-platform
# .. event_trigger_path: openedx/core/djangoapps/content_libraries/signal_handlers.py
LIBRARY_COLLECTION_DELETED = OpenEdxPublicSignal(
event_type="org.openedx.content_authoring.content_library.collection.deleted.v1",
data={
Expand Down
5 changes: 0 additions & 5 deletions openedx_events/enterprise/signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
# See: https://github.com/openedx/openedx-ledger/tree/main/docs/decisions
# .. event_data: LedgerTransaction
# .. event_trigger_repository: openedx/enterprise-subsidy
# .. event_trigger_path: enterprise_subsidy/apps/core/event_bus.py
LEDGER_TRANSACTION_CREATED = OpenEdxPublicSignal(
event_type="org.openedx.enterprise.subsidy_ledger_transaction.created.v1",
data={
Expand All @@ -55,7 +54,6 @@
# See: https://github.com/openedx/openedx-ledger/tree/main/docs/decisions
# .. event_data: LedgerTransaction
# .. event_trigger_repository: openedx/enterprise-subsidy
# .. event_trigger_path: enterprise_subsidy/apps/core/event_bus.py
LEDGER_TRANSACTION_COMMITTED = OpenEdxPublicSignal(
event_type="org.openedx.enterprise.subsidy_ledger_transaction.committed.v1",
data={
Expand All @@ -70,7 +68,6 @@
# See: https://github.com/openedx/openedx-ledger/tree/main/docs/decisions
# .. event_data: LedgerTransaction
# .. event_trigger_repository: openedx/enterprise-subsidy
# .. event_trigger_path: enterprise_subsidy/apps/core/event_bus.py
LEDGER_TRANSACTION_FAILED = OpenEdxPublicSignal(
event_type="org.openedx.enterprise.subsidy_ledger_transaction.failed.v1",
data={
Expand All @@ -85,7 +82,6 @@
# See: https://github.com/openedx/openedx-ledger/tree/main/docs/decisions
# .. event_data: LedgerTransaction
# .. event_trigger_repository: openedx/enterprise-subsidy
# .. event_trigger_path: enterprise_subsidy/apps/core/event_bus.py
LEDGER_TRANSACTION_REVERSED = OpenEdxPublicSignal(
event_type="org.openedx.enterprise.subsidy_ledger_transaction.reversed.v1",
data={
Expand All @@ -100,7 +96,6 @@
# an enterprise learner unenrolls from a course which was LC-subsidized.
# .. event_data: LearnerCreditEnterpriseCourseEnrollment
# .. event_trigger_repository: openedx/edx-enterprise
# .. event_trigger_path: enterprise/event_bus.py
LEARNER_CREDIT_COURSE_ENROLLMENT_REVOKED = OpenEdxPublicSignal(
event_type="org.openedx.enterprise.learner_credit_course_enrollment.revoked.v1",
data={
Expand Down
Loading

0 comments on commit 693efa6

Please sign in to comment.