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

[API] Modifying placed order billing & shipping addresses #15532

Merged
merged 20 commits into from Nov 23, 2023

Conversation

Rafikooo
Copy link
Contributor

@Rafikooo Rafikooo commented Nov 14, 2023

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

This PR introduces API coverage for managing order addresses. However, it also includes some scenarios and UI improvements. Additionally, it introduces a new method for building headers within contract tests.

image

@Rafikooo Rafikooo added the Feature New feature proposals. label Nov 14, 2023
@Rafikooo Rafikooo requested a review from a team as a code owner November 14, 2023 21:35
@probot-autolabeler probot-autolabeler bot added the API APIs related issues and PRs. label Nov 14, 2023
Copy link

github-actions bot commented Nov 14, 2023

Bunnyshell Preview Environment deleted

Available commands:

  • /bns:deploy to redeploy the environment

tests/Api/Utils/HeadersBuilder.php Outdated Show resolved Hide resolved
tests/Api/Admin/OrdersTest.php Outdated Show resolved Hide resolved
tests/Api/Admin/OrdersTest.php Outdated Show resolved Hide resolved
tests/Api/Utils/HeadersBuilder.php Outdated Show resolved Hide resolved
tests/Api/Utils/HeadersBuilder.php Outdated Show resolved Hide resolved
tests/Api/Utils/HeadersBuilder.php Outdated Show resolved Hide resolved
@Rafikooo Rafikooo force-pushed the SYL-3224/api-placed-order-address-edit branch from fc59875 to a61985b Compare November 15, 2023 14:32
@Rafikooo Rafikooo changed the title [API] Modifying placed order billing address [WIP] [API] Modifying placed order billing address Nov 15, 2023
@Rafikooo Rafikooo force-pushed the SYL-3224/api-placed-order-address-edit branch 3 times, most recently from f30cede to fb081ae Compare November 16, 2023 23:46
@Rafikooo Rafikooo changed the title [WIP] [API] Modifying placed order billing address [API] Modifying placed order billing address Nov 16, 2023
@Rafikooo Rafikooo changed the title [API] Modifying placed order billing address [API] Modifying placed order billing & shipping addresses Nov 16, 2023
@Rafikooo Rafikooo force-pushed the SYL-3224/api-placed-order-address-edit branch 3 times, most recently from a475903 to d1988c0 Compare November 17, 2023 15:18
Wojdylak
Wojdylak previously approved these changes Nov 20, 2023
tests/Api/Admin/OrdersTest.php Outdated Show resolved Hide resolved
@Rafikooo Rafikooo force-pushed the SYL-3224/api-placed-order-address-edit branch 2 times, most recently from d176c3e to 37a657c Compare November 20, 2023 20:51
Wojdylak
Wojdylak previously approved these changes Nov 21, 2023
SzymonFilipek
SzymonFilipek previously approved these changes Nov 21, 2023
Copy link

@SzymonFilipek SzymonFilipek left a comment

Choose a reason for hiding this comment

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

Changes passed QA check

diimpp
diimpp previously approved these changes Nov 21, 2023
tests/Api/Shop/CheckoutCompletionTest.php Outdated Show resolved Hide resolved
tests/Api/Shop/CheckoutCompletionTest.php Outdated Show resolved Hide resolved
tests/Api/Shop/CheckoutCompletionTest.php Show resolved Hide resolved
jakubtobiasz
jakubtobiasz previously approved these changes Nov 21, 2023
@@ -48,7 +48,7 @@ public function __construct(
}

/**
* @Given the store ships everything for free within the :zone zone
Copy link
Member

Choose a reason for hiding this comment

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

why?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

https://github.com/Sylius/Sylius/blob/1.13/features/order/managing_orders/order_details/seeing_order_item_taxes.feature#L13

It turned out that IDE IntelliSense is case-sensitive and was considering the step as not implemented.

Copy link
Member

Choose a reason for hiding this comment

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

So I guess we should change the scenario's step 🤔. "Free" with an uppercased letter looks silly here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

#13786

I think that was changed on purpose

@Rafikooo Rafikooo force-pushed the SYL-3224/api-placed-order-address-edit branch from 20d7349 to e0fcbb3 Compare November 22, 2023 12:36
@Rafikooo Rafikooo force-pushed the SYL-3224/api-placed-order-address-edit branch from e0fcbb3 to df6ae15 Compare November 22, 2023 12:38
@Rafikooo Rafikooo force-pushed the SYL-3224/api-placed-order-address-edit branch from df6ae15 to da27211 Compare November 22, 2023 14:36
@GSadee GSadee merged commit 10b1b64 into Sylius:1.13 Nov 23, 2023
25 checks passed
@GSadee
Copy link
Member

GSadee commented Nov 23, 2023

Thanks, Rafał! 🥇

NoResponseMate added a commit that referenced this pull request Dec 5, 2023
…ment Fixes For the New Code (Rafikooo)

This PR was merged into the 1.13 branch.

Discussion
----------

| Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         | 1.13 <!-- see the comment below -->                  |
| Bug fix?        | no                                                      |
| New feature?    | no                                                      |
| BC breaks?      | no                                                      |
| Deprecations?   | no<!-- don't forget to update the UPGRADE-*.md file --> |
| Related tickets |  #15532 (comment)                     |
| License         | MIT                                                          |

To save developers' effort during the code review, we added coding standards checks into the unit tests directory as well.

Commits
-------
  [ECS] Add checking in the tests directory
  [ECS] Apply ecs fixes in the tests directory
  [ECS] Apply ecs fixes
  [ECS] Apply another ecs fixes
  [Behat][UI] Add strong typing in the CartContext class
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.

None yet

6 participants