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

Partial support for EventPattern. #823

Closed
wants to merge 1 commit into from
Closed

Partial support for EventPattern. #823

wants to merge 1 commit into from

Conversation

takeda
Copy link

@takeda takeda commented May 6, 2017

Description

This is unfinished code for adding support for EventPattern, currently the handler also needs some work, I ended using the lambda_handler so I have more control of how things work.

GitHub Issues

#816

@coveralls
Copy link

coveralls commented May 6, 2017

Coverage Status

Coverage decreased (-56.6%) to 15.375% when pulling 0c54276 on takeda:EventPattern into c459f9f on Miserlou:master.

@@ -345,18 +345,18 @@ def handler(self, event, context):

# This is the result of a keep alive, recertify
# or scheduled event.
if event.get('detail-type') == u'Scheduled Event':
if 'source' in event:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you explain this change? I feel like I'm missing something here, as I don't see the change as being related to the PR.

Copy link
Author

Choose a reason for hiding this comment

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

This was submitted almost 2 years ago, so my memory is hazy.

From what I remember the event that I was looking for was handled incorrectly. I think distinguishing factor was that "source" key was set same as in "Scheduled Event" but the detail-type was different. I think this was the unfinished part where proper handling of different types supposed to be implemented. Previously the code just failed back to responding to http requests.

This PR can probably be closed, for my needs I realized that writing my own handler was actually way simpler than using a generalized module like zappa :)

@takeda takeda closed this Apr 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants