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

Skip to content

[API] Do not allow to address empty cart#13154

Merged
GSadee merged 2 commits into
Sylius:1.9from
Zales0123:bug-address-empty-cart
Sep 30, 2021
Merged

[API] Do not allow to address empty cart#13154
GSadee merged 2 commits into
Sylius:1.9from
Zales0123:bug-address-empty-cart

Conversation

@Zales0123
Copy link
Copy Markdown
Contributor

Q A
Branch? 1.9
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Related tickets
License MIT

After addressing the empty cart and adding an item to it, there is a cart with some products but payment_skipped as payment state 💃 In theory, it's not a problem, as after completion payment state is correct (awaiting payment), but if anything happens about payment before checkout completion, it can lead to some nasty errors. And, conceptually, addressing empty cart does not seems as something correct 🚀

@Zales0123 Zales0123 added API APIs related issues and PRs. Bug Confirmed bugs or bugfixes. labels Sep 30, 2021
@Zales0123 Zales0123 requested a review from a team as a code owner September 30, 2021 05:08
@Zales0123 Zales0123 force-pushed the bug-address-empty-cart branch from 5c26959 to 724ac5b Compare September 30, 2021 05:34
And the visitor try to specify the incorrect billing address as "Ankh Morpork", "Frost Alley", "90210", "United Russia" for "Jon Snow"
And the visitor complete the addressing step
Then I should be notified that "United Russia" country does not exist
Then they should be notified that "United Russia" country does not exist
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.

Why they? When the context changed from singular to plural?

Copy link
Copy Markdown
Contributor Author

@Zales0123 Zales0123 Sep 30, 2021

Choose a reason for hiding this comment

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

It's singular they 💃 But in fact it should be "I" everywhere, as the feature is written from the Visitor's perspective

Copy link
Copy Markdown
Member

@GSadee GSadee left a comment

Choose a reason for hiding this comment

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

But the steps in these scenarios should be refactored from the visitor to I perspective

@GSadee GSadee merged commit 767c1ce into Sylius:1.9 Sep 30, 2021
@GSadee
Copy link
Copy Markdown
Member

GSadee commented Sep 30, 2021

Thanks, Mateusz! 🎉

@Zales0123 Zales0123 deleted the bug-address-empty-cart branch September 30, 2021 11:08
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. Bug Confirmed bugs or bugfixes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants