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

Allow variant inventory quantity #802

Merged
merged 10 commits into from
Dec 8, 2020

Conversation

mllemango
Copy link
Contributor

@mllemango mllemango commented Nov 13, 2020

As suggested in #801, Variant'sinventory_quantity is now a read-only field, and should be readable from the object.
The PR allows inventory_quantity to be filtered in as part of Variant's attributes. The field is only filtered out once variant is saved. User's will still be able to access the inventory_quantity field as an attribute of Variant and from the json object both before and after a save.

Also removed tests that are focused on deprecated versions, as well as the allow_inventory_params? method since that was also based on deprecated versions of the API.

@mllemango mllemango marked this pull request as ready for review November 13, 2020 17:58
@mllemango mllemango requested a review from a team as a code owner November 13, 2020 17:58
test/variant_test.rb Outdated Show resolved Hide resolved
@mllemango mllemango requested a review from paulomarg December 8, 2020 15:33
@mllemango mllemango merged commit 8fd4f57 into master Dec 8, 2020
@mllemango mllemango deleted the melaniew/allow-variant-inventory-quantity branch December 8, 2020 16:30
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.

3 participants