Closed (fixed)
Project:
Commerce Wishlist
Version:
8.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
10 Jan 2019 at 12:40 UTC
Updated:
12 Feb 2019 at 18:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
czigor commentedNot sure what the rule is here, but since "keep purchased" is not an adjective (like "public"), i went with getKeepPurchased() instead of isKeepPurchased().
Comment #3
czigor commentedUpdate hook missing.
Comment #4
czigor commentedComment #5
bojanz commentedThere is a wishlist kernel test that we need to extend.
"Keep after purchased" should be "Keep after purchase".
"A boolean indicating" is too technical, replace with "Indicates"
Comment #6
czigor commentedDone.
Comment #7
bojanz commentedI don't see the extended wishlist kernel test in #6.
The definitions weren't updated like the base field definitions were (Keep after purchased -> Keep after purchase, the descriptions).
$update_manager is inconsistent with previous update functions ($definition_update_manager).
Returns should be Gets, the verb should match the one in the method name.
I propose "Gets whether items should be kept in the wishlist after puchase."
Comment #8
czigor commentedAdded the test and fixed the above.
Comment #9
czigor commentedFix typo.
Comment #12
czigor commentedComment #13
bojanz commentedAlmost there.
It's odd to see a ternary here. Feels unclean. (bool) $keep_purchased was a better option.
Same feedback from #7 applies to this method. You want "Gets whether the wishlist is public."
Comment #14
czigor commentedFixed. Also renamed the field name from keep_purchased to keep_after_purchase.
Comment #15
bojanz commentedWe bikeshedded the naming a bit. Updating.
Comment #17
bojanz commentedForgot to push this. Up now.