Skip to content

Update discount example #618

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

Merged
merged 3 commits into from
May 14, 2025
Merged

Update discount example #618

merged 3 commits into from
May 14, 2025

Conversation

devisscher
Copy link
Contributor

@devisscher devisscher commented May 5, 2025

Update the discount examples to simplify exports and renames files to match target names.

@devisscher devisscher force-pushed the update-discount-example branch 4 times, most recently from 64bdf1a to 5ca7e06 Compare May 5, 2025 17:52
@devisscher devisscher requested a review from jonathanhamel4 May 5, 2025 17:53
@Arkham
Copy link
Contributor

Arkham commented May 7, 2025

I think we might need to update https://github.com/Shopify/function-examples/blob/main/discounts/rust/discount/default/shopify.extension.toml.liquid as well with the new target name

@@ -9,14 +9,14 @@ description = "t:description"

[[extensions.targeting]]
target = "cart.lines.discounts.generate.run"
input_query = "src/generate_cart_run.graphql"
export = "generate-cart-run"
input_query = "src/cart_lines_discounts_generate_run.graphql"

Choose a reason for hiding this comment

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

I notice you didn't bump the api_version in this file. Is that an oversight?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

To unstable or 2025-07?

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 put the rust one on 2025-04 as well.

@devisscher devisscher force-pushed the update-discount-example branch from 453944a to 113321f Compare May 12, 2025 11:11
@devisscher devisscher merged commit b94376e into main May 14, 2025
4 checks passed
@devisscher devisscher deleted the update-discount-example branch May 14, 2025 18:56
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.

5 participants