Skip to content
This repository has been archived by the owner on Nov 30, 2022. It is now read-only.

Added the support for AWS EventBridge Shopify Webhook #1114

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

veed76
Copy link

@veed76 veed76 commented Apr 2, 2022

There is support for webhookSubscriptionCreate. I check in osiste/Laravel Package and there is no support for eventBridgeWebhookSubscriptionCreate GraphQL.

So I have added the support for eventBridgeWebhookSubscriptionCreate

Issue: #1113

Copy link
Collaborator

@Kyon147 Kyon147 left a comment

Choose a reason for hiding this comment

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

Great PR but some minor feedback.

Change default value to `callbackUrl` for webhook_address_type
format the code
replace double quote with single quote
@veed76
Copy link
Author

veed76 commented Apr 12, 2022

Hi @Kyon147
Can you please review the changes and merge it ASAP, so I can use this in the new version.

Thanks.

@Kyon147
Copy link
Collaborator

Kyon147 commented Apr 27, 2022

@veed76 - can you take a look at your code coverage as it has dropped a lot 80% down from 92.70%

@Kyon147 Kyon147 added the recalled Code recalled as it is not complete or fails label Apr 27, 2022
Fix spacing issue
@veed76
Copy link
Author

veed76 commented May 9, 2022

@Kyon147 Can you please tell me next what I need to do?

@shota
Copy link

shota commented May 23, 2022

@veed76
Amazing PR. This is really what we want! However, checking address type with webhook_address_type configuration variable sometimes have another problem when some user want to mix EventBridge and REST webhook handling.

How about checking webhook URL like below?

src/Services/ApiHelper.php line 370

if ($addressType === 'arn') {

To new one like ...

if (str_starts_with($payload['address'], 'arn:')) {

This implementation is much more like old version which support EventBridge URL.

@gnikyt
Copy link
Owner

gnikyt commented Sep 9, 2022

Hi @veed76
Essentially you need to edit the existing tests for ApiHelper, to ensure if someone changed the config, then the proper code is called.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
recalled Code recalled as it is not complete or fails
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants