Skip to content
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

Add event hooks to client #1

Merged

Conversation

nmuldavin
Copy link
Collaborator

  • Add init hook, exposed through postmate model. Must be called by parent after handshake with app context data before all other operations may proceed.
  • Add exec hook, exposed through postmate model, for the parent to send events to the child.
  • Add on event handler subscription method, with subscribe and unsubscribe logic
  • Add checks in exec handler verifying that the user installation includes the capabilities necessary to recieve an event of the given type. If not, a debug error is logged and the subscribed handler is not executed.

@nmuldavin nmuldavin force-pushed the noah.muldavin/verify-required-capability-installation branch 2 times, most recently from 7d58127 to 1036a7f Compare October 7, 2020 15:46
@nmuldavin nmuldavin marked this pull request as ready for review October 7, 2020 15:48
    * Add init hook, exposed through postmate model. Must be called by parent after handshake with app context data before all other operations may proceed.
    * Add exec hook, exposed through postmate model, for the parent to send events to the child.
    * Add `on` event handler subscription method, with subscribe and unsubscribe logic
    * Add checks in `exec` handler verifying that the user installation includes the capabilities necessary to recieve an event of the given type. If not, a debug error is logged and the subscribed handler is not executed.
@nmuldavin nmuldavin force-pushed the noah.muldavin/verify-required-capability-installation branch from 1036a7f to 6f09aaa Compare October 7, 2020 15:49
Copy link
Collaborator

@enbashi enbashi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks great! The sandboxing is super helpful.

@nmuldavin nmuldavin force-pushed the noah.muldavin/verify-required-capability-installation branch from 6351efd to 6640de3 Compare October 8, 2020 15:02
@nmuldavin nmuldavin merged commit 4107824 into master Oct 8, 2020
@nmuldavin nmuldavin deleted the noah.muldavin/verify-required-capability-installation branch October 8, 2020 15:04
joneshf-dd pushed a commit that referenced this pull request Dec 10, 2021
@github-actions
Copy link
Contributor

github-actions bot commented Dec 14, 2021

Ignore this

There was an issue when setting up auto, the message is not correct.


🚀 PR was released in @datadog/ui-extensions-sdk@0.24.1 🚀

@github-actions github-actions bot added the released This issue/pull request has been released. label Dec 14, 2021
@github-actions
Copy link
Contributor

github-actions bot commented Dec 14, 2021

Ignore this

There was an issue when setting up auto, the message is not correct.


🚀 PR was released in @datadog/ui-extensions-sdk@0.24.1 🚀

nmuldavin added a commit that referenced this pull request Dec 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
released This issue/pull request has been released.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants