-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[Api] orders index for customer's account #11891
Conversation
AdamKasp
commented
Sep 30, 2020
Q | A |
---|---|
Branch? | master |
Bug fix? | no |
New feature? | yes |
BC breaks? | no |
Related tickets | part of #11250 |
License | MIT |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And rebase needed
src/Sylius/Bundle/ApiBundle/DataProvider/OrderCollectionDataProvider.php
Show resolved
Hide resolved
src/Sylius/Bundle/ApiBundle/spec/DataProvider/OrderCollectionDataProviderSpec.php
Outdated
Show resolved
Hide resolved
...count/customer_account/viewing_orders_history/seeing_customer_orders_placed_as_guest.feature
Outdated
Show resolved
Hide resolved
/** | ||
* @When I register with previously used :email email and :password password | ||
*/ | ||
public function iRegisterWithPreviouslyUsedEmailAndPassword(string $email, string $password): void |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couldn't it be extracted to RegistrationContext
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could be... but if I do that I get many names conflicts, so I left it here.
src/Sylius/Bundle/ApiBundle/DataProvider/OrderCollectionDataProvider.php
Outdated
Show resolved
Hide resolved
src/Sylius/Bundle/ApiBundle/DataProvider/OrderCollectionDataProvider.php
Outdated
Show resolved
Hide resolved
src/Sylius/Bundle/ApiBundle/Resources/config/api_resources/Order.xml
Outdated
Show resolved
Hide resolved
src/Sylius/Bundle/ApiBundle/spec/DataProvider/OrderCollectionDataProviderSpec.php
Outdated
Show resolved
Hide resolved
ba603e0
to
0416f17
Compare
@@ -125,4 +125,14 @@ public function findCartsNotModifiedSince(\DateTimeInterface $terminalDate): arr | |||
->getResult() | |||
; | |||
} | |||
|
|||
public function findAllExceptCarts(): array |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not convinced to that name, but for now, I have no better idea
Thanks, Adam! 🥇 |