-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Add Content Library Collections signals [FC-0062] #386
Merged
navinkarkera
merged 9 commits into
openedx:main
from
open-craft:yusuf-musleh/content-library-collections-signals
Sep 6, 2024
Merged
Changes from 1 commit
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
8101eb4
feat: Add Content Library Collections signals
yusuf-musleh dc8c283
Merge branch 'main' into yusuf-musleh/content-library-collections-sig…
pomegranited 60ef0a3
fix: use collection_key (str) instead of id (int)
pomegranited b6ab399
docs: update CHANGELOG
pomegranited 65701f1
feat: Deprecates CONTENT_OBJECT_TAGS_CHANGED in favor of CONTENT_OBJE…
pomegranited 18a3544
Merge remote-tracking branch 'origin/main' into yusuf-musleh/content-…
pomegranited b4e6e76
fix: fix conflicts in CHANGELOG
pomegranited 5e89cbe
fix: use content_library subdomain for new events
pomegranited 1399908
fix: add library collection events to changelog
navinkarkera File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,4 @@ | |
more information about the project. | ||
""" | ||
|
||
__version__ = "9.12.0" | ||
__version__ = "9.13.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
...s/schemas/org+openedx+content_authoring+content+library+collection+created+v1_schema.avsc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"name": "CloudEvent", | ||
"type": "record", | ||
"doc": "Avro Event Format for CloudEvents created with openedx_events/schema", | ||
"fields": [ | ||
{ | ||
"name": "library_collection", | ||
"type": { | ||
"name": "LibraryCollectionData", | ||
"type": "record", | ||
"fields": [ | ||
{ | ||
"name": "library_key", | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "collection_id", | ||
"type": "long" | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"namespace": "org.openedx.content_authoring.content.library.collection.created.v1" | ||
} |
25 changes: 25 additions & 0 deletions
25
...s/schemas/org+openedx+content_authoring+content+library+collection+deleted+v1_schema.avsc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"name": "CloudEvent", | ||
"type": "record", | ||
"doc": "Avro Event Format for CloudEvents created with openedx_events/schema", | ||
"fields": [ | ||
{ | ||
"name": "library_collection", | ||
"type": { | ||
"name": "LibraryCollectionData", | ||
"type": "record", | ||
"fields": [ | ||
{ | ||
"name": "library_key", | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "collection_id", | ||
"type": "long" | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"namespace": "org.openedx.content_authoring.content.library.collection.deleted.v1" | ||
} |
25 changes: 25 additions & 0 deletions
25
...s/schemas/org+openedx+content_authoring+content+library+collection+updated+v1_schema.avsc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"name": "CloudEvent", | ||
"type": "record", | ||
"doc": "Avro Event Format for CloudEvents created with openedx_events/schema", | ||
"fields": [ | ||
{ | ||
"name": "library_collection", | ||
"type": { | ||
"name": "LibraryCollectionData", | ||
"type": "record", | ||
"fields": [ | ||
{ | ||
"name": "library_key", | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "collection_id", | ||
"type": "long" | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"namespace": "org.openedx.content_authoring.content.library.collection.updated.v1" | ||
} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bradenmacdonald Are we allowed to put new signals in this repo? Or are we supposed to put them in https://github.com/openedx/openedx-events ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm actually not sure. Maybe @mariajgrimaldi can answer? What's the difference between this
signals.py
and thatsignals.py
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure I follow. This repo es
openedx-events
and both signals.py files are the same.You are definitely allowed to propose new signal definitions in this repository and the location is correct. The idea of having the signal here instead of in the edx-platform code is that plugins that will listen for the signal can include this lightweight library in their dependencies instead of requiring edx-platform all the time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lol whoops, please ignore my confusion. I thought this was edx-platform :/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No worries. Happy to address this in depth. As before, if you are planning to add a signal into edx-platform, then it would be better to write it here so plugins can use that without the large import.
However, other pattern we have seen is when a plugin defines a new signal and uses it in its own code. In that case if reuse of said signal is not a goal from the devs, then the definition can be left in the plugin as you could import that plugin as a library if you are writing a second level library/plugin.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My apologies for the noise! I could have sworn there was a signals.py file in openedx-learning, but it's not there now, so not sure what I was on about :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, it was here in this closed PR! signals.py. I'm not going nuts.. 😊