-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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: hook xblock publish, delete and duplicate openedx-events #31350
Merged
sameenfatima78
merged 6 commits into
openedx:master
from
open-craft:navin/hook-xblock-events
Feb 14, 2023
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
63de81f
feat: hook xblock publish, delete and duplicate openedx-events
navinkarkera d26ee63
docs: add events to docs
navinkarkera 605db1e
feat: published xblock events to event bus
navinkarkera 8b00576
refactor: use events test mixin to start events in isolation
navinkarkera ebc223f
fix: variable rename after rebase
navinkarkera df9f88c
refactor: send time with event explicitly
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
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
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
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.
@robrap: hello there Robert! FYI I'm currently reviewing this PR. If you have any comments, please let us know.
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.
Thanks.
Thank you. Excited to see new event bus 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.
@robrap
That would be nice, but the current way not a deal breaker. It will just require the consumers to run a process per signal/event.
Taxonomy-connector which is installed as part of course-discovery is the intended consumer here.
I am not sure if I follow, do we need to make some changes in the way we publish these events?
cc: @mariajgrimaldi
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.
@navinkarkera: I'm really excited that people are hopping on to the event bus. Thanks again for this work. I've got some additional thoughts and questions.
I updated the event design section of the how-to with a note on lifecycle events.
Thank you. That's helpful, and I realize I'd love to see what ADR(s) describe the overall decisions or design for the whole flow. Are there additional links you could provide?
I also added a warning to the how-to (section linked above), as well as a small note to the Observability section regarding maintainership for the event production. Since the 2U TNL team maintains cms, have they been reviewing ADRs/PRs as-needed, and are they aware that they will need to start monitoring this new event (if this is deployed to edx.org)?
Related, I added some tips to the Publishing a signal section of the how-to regarding adding a temporary(?) rollout toggle. We can iterate on this idea as needed, but I wanted to note it.
Lastly, what teams are involved and where is this work going? Is this OpenCraft work that is initially intended for edX.org, or for your own deployment? Is OpenCraft also working with Kafka?
Regarding my note about
time
, I tried adding a note and pointer to docs in the same Publishing a signal section. Let me know if that clears things up.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.
@mariajgrimaldi: I added my question about documenting events as being event-bus events to this other PR comment: openedx/openedx-events#80 (comment)
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.
@robrap Thanks! Updated the description.
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.
@robrap Also added current time to events explicitly.
@mariajgrimaldi Let me know if we are missing something.
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.
@robrap This work is a blended project between OpenCraft and our team (Enterprise Markhors).
@robrap Thank you for pointing that out.
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.
Thanks again. I'm not sure how work is being tracked, but maybe there could be a ticket (or tickets) for the following:
Other than that, this thread can be marked resolved from my end, as long as everyone else agrees. Thanks!
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.
Thank you @robrap, I'll run these by our team.