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 delivery options reducer function specification #3051

Closed
wants to merge 1 commit into from

Conversation

joshua-arts
Copy link
Contributor

WHY are these changes introduced?

We're introducing a new function API type which we need to deploy via cli.

WHAT is this pull request doing?

Adds the ability to deploy delivery_options_reducer functions via cli.

How to test your changes?

Checkout this branch locally and run the following command to deploy to a spin instance.

bin/spin pnpm shopify app deploy --path <PATH_TO_APP>

Post-release steps

N/A

Measuring impact

How do we know this change was effective? Please choose one:

  • n/a - this doesn't need measurement, e.g. a linting rule or a bug-fix
  • Existing analytics will cater for this addition
  • PR includes analytics changes to measure impact

Checklist

  • I've considered possible cross-platform impacts (Mac, Linux, Windows)
  • I've considered possible documentation changes
  • I've made sure that any changes to dev or deploy have been reflected in the internal flowchart.

Copy link
Contributor

github-actions bot commented Nov 1, 2023

Coverage report

St.
Category Percentage Covered / Total
🟡 Statements
73.07% (-0.26% 🔻)
6184/8463
🟡 Branches
69.93% (-0.41% 🔻)
3026/4327
🟡 Functions
71.45% (-0.58% 🔻)
1569/2196
🟡 Lines
74.3% (-0.21% 🔻)
5871/7902
Show files with reduced coverage 🔻
St.
File Statements Branches Functions Lines
🟢
... / ui.tsx
100%
90% (-1.67% 🔻)
100% 100%
🟢
... / urls.ts
85.45% (-0.13% 🔻)
81.82% (-1.3% 🔻)
81.25%
87.5% (-0.12% 🔻)
🟡
... / build.ts
72.45% (-0.28% 🔻)
60%
69.7% (-0.89% 🔻)
71.11% (-0.32% 🔻)
🟢
... / analytics.ts
89.8% (-0.94% 🔻)
70% (+1.25% 🔼)
100%
89.8% (-0.94% 🔻)
🟢
... / git.ts
88.41% (-0.17% 🔻)
87.18%
85.71% (-0.95% 🔻)
89.71% (-0.15% 🔻)
🟡
... / output.ts
72.41%
67.19% (-0.5% 🔻)
65.12% 73.39%
🔴
... / ruby.ts
40.87% (-30.56% 🔻)
40.3% (-32.84% 🔻)
34.29% (-31.43% 🔻)
44.23% (-29.04% 🔻)

Test suite run success

1452 tests passing in 675 suites.

Report generated by 🧪jest coverage report action from 0a83859

@@ -73,6 +73,7 @@ const spec = createExtensionSpecification({
'fulfillment_constraints',
'order_routing_location_rule',
'local_pickup_delivery_option_generator',
'delivery_options_reducer',
Copy link
Contributor

Choose a reason for hiding this comment

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

This list is a legacy list for extensions that had in the toml: type: {the_api_type} like `type: ´fulfillment_constraints``

If this is a new api type, all new functions using this will have type: function right? so this shouldn't be necessary?

@joshua-arts joshua-arts closed this Dec 4, 2023
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.

4 participants