You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Searched existing issues to see if your issue is a duplicate. (If you’ve found a duplicate issue, feel free to add additional information in a comment on it.)
In which of these areas are you experiencing a problem?
Function
Expected behavior
The ideal behavior here would be that cart inputs aren't taken into consideration for enforcing function execution limitations as long as they aren't custom attributes that have been attached by the developer.
Actual behavior
It's possible to increase the calculated usage of instructions by simply increasing the amount of line items in cart.
This is the function code we used for testing this:
Result after doubling the amount of line items in input.json:
The ideal behavior here would be that cart inputs aren't taken into consideration for enforcing function execution limitations as long as they aren't custom attributes that have been attached by the developer.
Operating System
Manjaro Linux
Shopify CLI version (check your project's package.json if you're not sure)
3.50.2
Shell
No response
Node version (run node -v if you're not sure)
No response
What language and version are you using in your application?
No response
The text was updated successfully, but these errors were encountered:
Hahlh
changed the title
[Bug]: Cart JSON of input is wrongfully taken into account for calculation of instructions during test run via function runner
[Bug]: Cart input shouldn't be taken into account for calculation of instruction usage
Nov 15, 2023
Please confirm that you have:
In which of these areas are you experiencing a problem?
Function
Expected behavior
The ideal behavior here would be that cart inputs aren't taken into consideration for enforcing function execution limitations as long as they aren't custom attributes that have been attached by the developer.
Actual behavior
It's possible to increase the calculated usage of instructions by simply increasing the amount of line items in cart.
This is the function code we used for testing this:
Result before:
Result after doubling the amount of line items in
input.json
:The ideal behavior here would be that cart inputs aren't taken into consideration for enforcing function execution limitations as long as they aren't custom attributes that have been attached by the developer.
Operating System
Manjaro Linux
Shopify CLI version (check your project's
package.json
if you're not sure)3.50.2
Shell
No response
Node version (run
node -v
if you're not sure)No response
What language and version are you using in your application?
No response
The text was updated successfully, but these errors were encountered: