-
Notifications
You must be signed in to change notification settings - Fork 2
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
fix: publishReply has incorrect Event in reply #141
Conversation
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.
Added some minor comments/questions.
Looking at the code, it is very confusing with everything on the event stored as Event._data
. I am not sure why, but it would be better to just have them defined as as e.g. Event.source and remove the useless getData method.
Co-authored-by: Lucas Stålner Correia <lucas.correia@ftrack.com>
@lucaas Thanks for the comments. Everything has been addressed. regarding the structure of |
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.
Nice job!
* Changed tests to TypeScript and updated typings. * fix: review changes
* Changed tests to TypeScript and updated typings. * fix: review changes
Changes
The shape of the data in the Event sent by
publishReply
was incorrect since the TypeScript refactoring.target
andinReplyToEvent
ended up insideEvent._data.data
instead ofEvent._data
This broke the ability to register actions. Another issue, where thesource
was incorrectly written over inpublish
was also fixed.I also added tests for the
Event
creation, and a test to ensure the shape of the event data is correct inpublishReply
Test
After linking the repo to an ftrack instance, you can create a dummy action with
Make sure it shows up in actions.