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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Update discount example #618

wants to merge 2 commits into from

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 3 times, most recently from 13a326b to 64bdf1a Compare May 5, 2025 17:51
@devisscher devisscher force-pushed the update-discount-example branch 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

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?

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