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

feat(alexaSkill): add alexaSkill event type #20

Merged
merged 3 commits into from
May 10, 2018

Conversation

coreylight
Copy link
Contributor

  • Adds support for Alexa Intent, and Alexa Start/End Session event types.
  • Adds idx dev dependency for terse yet performant event-type check
  • Adds flat dep for capturing unanticipated object key/values
  • A few style changes, push least-anticipated event types further in the event check

fix #17

Adds support for Alexa Intent, and Alexa Start/End Session event types. Adds idx dev dependency for
terse yet performant event-type check

fix iopipe#17
Copy link
Contributor

@kolanos kolanos left a comment

Choose a reason for hiding this comment

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

Need some context for this one. How would I use this skill? (I have an Echo)

Don't think this was on the roadmap, but like the idea all the same.

kolanos
kolanos previously approved these changes Apr 25, 2018
Copy link
Contributor

@ewindisch ewindisch left a comment

Choose a reason for hiding this comment

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

Thanks Corey this was fast! Catching up on reviews post-conference.

Just making sure I know what data's being collected here. If it's all the event records being logged I'll look into if there's any that might be sensitive data for users.


function plugin(event, log) {
const obj = flatten(event);
Object.keys(obj).forEach(key => {
Copy link
Contributor

Choose a reason for hiding this comment

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

so we're logging all of the keys?

Copy link
Contributor

@ewindisch ewindisch Apr 28, 2018

Choose a reason for hiding this comment

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

It looks like keys we don't want capture (at least):

@iopipe/event-info.alexaSkill.context.System.apiAccessToken
@iopipe/event-info.alexaSkill.context.System.user.accessToken
@iopipe/event-info.alexaSkill.context.System.user.permissions.consentToken

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I can blacklist those, thanks @ewindisch makes it easy to update!

@coreylight
Copy link
Contributor Author

@ewindisch @kolanos back in review, added blacklisted keys requested by @ewindisch

@kolanos
Copy link
Contributor

kolanos commented May 1, 2018

@coreylight @ewindisch Made equivalent updates here: iopipe/iopipe-python#218

kolanos
kolanos previously approved these changes May 1, 2018
Copy link
Contributor

@ewindisch ewindisch left a comment

Choose a reason for hiding this comment

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

Could we update the readme? Everything else looks great.

Signed-off-by: Michael Lavers <kolanos@gmail.com>
@kolanos kolanos merged commit 44f0bfb into iopipe:master May 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support Alexa Skills Kit events
3 participants