Repository navigation
Updating to latest Shopify Partner API Version - #12768
michelle0927 merged 4 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
|
@ctrlaltdylan is attempting to deploy a commit to the Pipedreamers Team on Vercel. A member of the Team first needs to authorize it. |
WalkthroughThis update focuses on refining the Shopify Partner component. Key changes include version increments, description updates, and format adjustments for better readability and logging. Notably, a new constant Changes
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
There was a problem hiding this comment.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (5)
- components/shopify_partner/package.json (1 hunks)
- components/shopify_partner/shopify_partner.app.mjs (3 hunks)
- components/shopify_partner/sources/new-app-charges/new-app-charges.mjs (3 hunks)
- components/shopify_partner/sources/new-app-installs/new-app-installs.mjs (2 hunks)
- components/shopify_partner/sources/new-app-relationship-events/new-app-relationship-events.mjs (3 hunks)
Files skipped from review due to trivial changes (2)
- components/shopify_partner/package.json
- components/shopify_partner/sources/new-app-installs/new-app-installs.mjs
Additional comments not posted (7)
components/shopify_partner/sources/new-app-charges/new-app-charges.mjs (2)
8-8: Version Update ApprovedThe version update from "0.0.17" to "0.1.3" is appropriate and aligns with the PR objectives.
52-54: Logging Refactor ApprovedThe refactored logging for transaction IDs improves visibility and is correctly implemented.
components/shopify_partner/sources/new-app-relationship-events/new-app-relationship-events.mjs (2)
10-10: Version Update ApprovedThe version update from "0.1.2" to "0.1.3" is appropriate and aligns with the PR objectives.
11-12: Description Update ApprovedThe description update improves clarity and is correct.
components/shopify_partner/shopify_partner.app.mjs (3)
4-4: New Constant Introduction ApprovedThe introduction of the new constant
PARTNER_API_VERSIONwith the value "2024-10" is appropriate and aligns with the PR objectives.
12-13: Description Update ApprovedThe description updates improve clarity and are correct.
Also applies to: 51-52
81-81: Dynamic Endpoint ApprovedThe dynamic endpoint correctly uses the new constant
PARTNER_API_VERSION, improving maintainability.Ensure all references to the endpoint are updated to use the new constant.
Verification successful
Dynamic Endpoint Approved
The dynamic endpoint correctly uses the new constant
PARTNER_API_VERSION, improving maintainability.No other references to variations of the endpoint URL were found in the codebase.
Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify all references to the endpoint use the new constant. # Test: Search for endpoint references. Expect: Only occurances using the new constant. rg --type js -A 5 $'partners.shopify.com/${this.$auth.organization_id}/api/${PARTNER_API_VERSION}/graphql.json'Length of output: 308
Script:
#!/bin/bash # Description: Verify all references to the endpoint use the new constant. # Test: Search for endpoint references. Expect: Only occurrences using the new constant. rg --type js -A 5 'partners\.shopify\.com/\$\{this\.\$auth\.organization_id\}/api/\$\{PARTNER_API_VERSION\}/graphql\.json'Length of output: 124
Script:
#!/bin/bash # Description: Verify all references to the endpoint, checking for any variations that might not use the constant. # Test: Search for endpoint references with potential variations. rg --type js -A 5 'partners\.shopify\.com/.*/api/.*/graphql\.json'Length of output: 68
michelle0927
left a comment
There was a problem hiding this comment.
Looks good, but you need to update the versions of verify-webhook and new-app-uninstalls.
|
Thanks @michelle0927 , updated those two component versions |
There was a problem hiding this comment.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (2)
- components/shopify_partner/actions/verify-webhook/verify-webhook.mjs (1 hunks)
- components/shopify_partner/sources/new-app-uninstalls/new-app-uninstalls.mjs (2 hunks)
Files skipped from review due to trivial changes (2)
- components/shopify_partner/actions/verify-webhook/verify-webhook.mjs
- components/shopify_partner/sources/new-app-uninstalls/new-app-uninstalls.mjs
|
Hi everyone, all test cases are passed! Ready for release! |
luancazarine
left a comment
There was a problem hiding this comment.
Hi @ctrlaltdylan, there are some versions that I'm not sure are correct, could you check please?
…ok.mjs Co-authored-by: Luan Cazarine <luanhc@gmail.com>
|
@luancazarine the skipping of versions was intentional. It was just easier for me to maintain when all versions were synced. But not a problem, I applied your suggestions. |
There was a problem hiding this comment.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- components/shopify_partner/actions/verify-webhook/verify-webhook.mjs (1 hunks)
Files skipped from review as they are similar to previous changes (1)
- components/shopify_partner/actions/verify-webhook/verify-webhook.mjs
…rges.mjs Co-authored-by: Luan Cazarine <luanhc@gmail.com>
There was a problem hiding this comment.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- components/shopify_partner/sources/new-app-charges/new-app-charges.mjs (3 hunks)
Files skipped from review as they are similar to previous changes (1)
- components/shopify_partner/sources/new-app-charges/new-app-charges.mjs
|
Hi everyone, all test cases are passed! Ready for release! |
|
Merging on behalf of @ctrlaltdylan |
WHY
Shopify Partner API's version has deprecated
2024-01and needs to be updated in order to continue to function.I've updated these components to use
2024-10the latest version.Summary by CodeRabbit
New Features
Enhancements
Version Updates
@pipedream/shopify_partnerto 0.1.3.verify-webhookaction to 0.1.3.