-
Notifications
You must be signed in to change notification settings - Fork 17
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
Switch to using a single event type #23
Comments
Comment by marcoguerri I have given some thought to this, so dropping here some initial notes. The current state of the database is the following (excluding the Some considerations before discussing the translation into relational schema:
The requirements we need to capture with this rework I think are the following:
I would maintain the collapsing of the relationship with
|
Comment by dimkup does it worth to include value of reflect.TypeOf(payload).String() as a field to the event table? It would allow to query events, with payload of certain type and have sort of guarantee that the payload can be deserialised to the structure.. |
Issue by marcoguerri
Wednesday Jun 17, 2020 at 09:09 GMT
Originally opened as https://github.com/facebookincubator/contest/issues/123
At the moment we have two type of events,
testevents
andframeworkevents
. The former are meant to be used when emitted by aStep
, the latter from anywhere in the framework outside of aStep
. The intention was to enforce non-null on most of the fields of theStep
.Eventually we settled on the fact that this is too restrictive.
FrameworkEvents
are barely used, and lots of places of the framework need to emit events that include a subset of the information oftestevents
.So, we agree on deprecating
frameworkevents
, and using one single concept ofevent
, where fields might be null. In addition, this event should be associated to a "source" in the header (most likely split intoSourceType
andSourceName
), which will indicate who emitted the event.The text was updated successfully, but these errors were encountered: