-
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
[CloudEvents] Field ce_time for event bus events #159
Comments
There are a variety of times related to event production:
For the purposes of the rest of this discussion, we will ignore any times related to consuming the event. Any consumer can call According to the OEP, we must implement a "time" field that could be either As the OEP states, using the created_at time is ideal for the consumer for a variety of reasons. However, it is more challenging to implement. Note: maybe this is no big deal for legacy event and I just need to better understand? My main concern is holding up the ability to pass along any of these times, being blocked on how long it would take to implement the Separately, confluent-kafka offers a tuple for its timestamp that provides both the time and a type of the time. We could consider enhancing the |
As an example of implementing the production timestamp, here is the code where we get the course for the event bus event data: https://github.com/openedx/edx-platform/blob/0b68c84286fe53c32b6b8c1e01ce30845bb8496c/cms/djangoapps/contentstore/signals/handlers.py#L85. I don't see how to get the db dates for that course. Maybe others know? Or, do we think making that data available (here and in all cases) should be a blocker to sending any new event? I'm not certain of the answer, which is why I am open to punting on this and instead using a specifically named and easily implemented field that comes from |
UPDATE: @ormsbee and I discussed and he provided me with a solution for the DB time of this event: |
This is a continuation of #77, where we decided to defer the CloudEvent field ce_time, as defined in OEP-41.
The text was updated successfully, but these errors were encountered: