Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Api][Cart] change quantity on cart#11695

Merged
GSadee merged 1 commit into
Sylius:masterfrom
AdamKasp:api-cart-operation-change-quantity
Aug 3, 2020
Merged

[Api][Cart] change quantity on cart#11695
GSadee merged 1 commit into
Sylius:masterfrom
AdamKasp:api-cart-operation-change-quantity

Conversation

@AdamKasp
Copy link
Copy Markdown
Contributor

Q A
Branch? master
Bug fix? no
New feature? yes
BC breaks? no
License MIT

@AdamKasp AdamKasp requested a review from a team as a code owner July 29, 2020 12:18
@probot-autolabeler probot-autolabeler Bot added the API APIs related issues and PRs. label Jul 29, 2020
* @var int
* @psalm-immutable
*/
public $newQuantity;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
public $newQuantity;
public $quantity;

Should be enough

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

i chose newQuantity because this name is visible in the request body, and IMO newQuantity is more descriptive than just quantity

Comment thread src/Sylius/Behat/Context/Api/Shop/CartContext.php Outdated
@AdamKasp AdamKasp force-pushed the api-cart-operation-change-quantity branch 2 times, most recently from 78d6cdd to bccfe0b Compare July 30, 2020 09:41
@AdamKasp AdamKasp changed the title [WIP][Api][Cart] change quantity on cart [Api][Cart] change quantity on cart Jul 30, 2020
@AdamKasp AdamKasp force-pushed the api-cart-operation-change-quantity branch 2 times, most recently from 6809df6 to 8a17de2 Compare July 30, 2020 12:16
@GSadee GSadee added the Feature New feature proposals. label Jul 31, 2020
Comment thread src/Sylius/Behat/Context/Api/Shop/CartContext.php Outdated
Comment thread src/Sylius/Behat/Context/Api/Shop/CartContext.php Outdated
@AdamKasp AdamKasp force-pushed the api-cart-operation-change-quantity branch 2 times, most recently from 6127964 to 8a0b829 Compare July 31, 2020 12:33
Comment thread src/Sylius/Behat/Context/Api/Shop/CartContext.php Outdated
@AdamKasp AdamKasp force-pushed the api-cart-operation-change-quantity branch from 8a0b829 to ecaf25c Compare July 31, 2020 14:31
@GSadee GSadee merged commit fa3c88f into Sylius:master Aug 3, 2020
@GSadee
Copy link
Copy Markdown
Member

GSadee commented Aug 3, 2020

Thank you, Adam! 🥇

@AdamKasp AdamKasp deleted the api-cart-operation-change-quantity branch July 19, 2021 06:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

API APIs related issues and PRs. Feature New feature proposals.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants