Commit graph

1468 commits

Author SHA1 Message Date
Michał Pysiak
5e2e9c6586
[API] Add APIP3 configuration and fix contract tests 2024-07-25 08:52:49 +02:00
Michał Pysiak
f98814ed3f
[API] Enable disabled contract tests 2024-07-25 08:52:49 +02:00
Michał Pysiak
5360aeea3a
[API] Promotion Create and Update (#16624)
| Q               | A
|-----------------|-----
| Branch?         | api-platform-3 <!-- see the comment below -->
| Bug fix?        | no
| New feature?    | yes
| BC breaks?      | no
| Deprecations? | no <!-- don't forget to update the UPGRADE-*.md file
-->
| Related tickets | continuation of
https://github.com/Sylius/Sylius/pull/16613, related to
https://github.com/Sylius/Sylius/pull/16622
| License         | MIT

<!--
 - Bug fixes must be submitted against the 1.13 branch
 - Features and deprecations must be submitted against the 1.14 branch
- Features, removing deprecations and BC breaks must be submitted
against the 2.0 branch
 - Make sure that the correct base branch is set

To be sure you are not breaking any Backward Compatibilities, check the
documentation:

https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html
-->

Current endpoints state:
<img width="695" alt="image"
src="https://github.com/user-attachments/assets/b0a0c92e-f56a-435e-85d1-3a2dcc6ff9ca">
2024-07-25 08:40:17 +02:00
Rafikooo
abcac1a672
[Unit] Adjust promotion updating response 2024-07-25 08:22:46 +02:00
Rafikooo
09551d7a45
[Unit] Restore promotion updating tests 2024-07-25 08:22:46 +02:00
Rafikooo
4ce9660fee
[Unit] Adjust promotion creation response 2024-07-25 08:22:45 +02:00
Rafikooo
af0208dbc7
[Unit] Restore promotion creating tests 2024-07-25 08:22:45 +02:00
Kamil Grygierzec
fa2bda7202
minor review fixes 2024-07-24 14:58:19 +02:00
Jan Goralski
0b0b77757b
[API] Cover admin side of shipments 2024-07-24 14:02:27 +02:00
Wojdylak
74b24bf672
[Api][Zone] Enable unit tests 2024-07-24 12:50:10 +02:00
Kamil Grygierzec
0a013d546b
minor formatting fix 2024-07-24 10:44:59 +02:00
Rafikooo
1846011931
[Unit] Adjust archive and restore promotion responses 2024-07-24 10:44:17 +02:00
Rafikooo
a321c7281a
[Unit] Restore promotion archiving and restoring tests 2024-07-24 10:44:16 +02:00
Kamil Grygierzec
0b79bc3e91
enable tests 2024-07-24 08:30:36 +02:00
Rafikooo
0b450ce892
[API] Change promotion translations url template 2024-07-23 10:48:55 +02:00
Rafikooo
c950deb641
[Unit] Restore promotion removal tests 2024-07-23 10:45:08 +02:00
Rafikooo
8937030572
[Unit] Restore get promotion test 2024-07-22 14:12:29 +02:00
Jan Goralski
aca6bf70af [API] Cover tax rate 2024-07-19 10:22:28 +02:00
Jan Goralski
3c70db1f31 [API] Cover tax category 2024-07-19 10:22:28 +02:00
Jan Goralski
3573861454 [API][Admin] Wrap all match types in quotes 2024-07-19 07:57:00 +02:00
Jan Goralski
f4d629c5f8 [API][Shop] Wrap all match types in quotes 2024-07-19 07:57:00 +02:00
Jan Goralski
b17c5b3b9c [API][Admin] Fix avatar image contract tests 2024-07-19 07:57:00 +02:00
Wojdylak
7111a9a2a4
Resolve conflicts between 2.0 and api-platform-3 2024-07-18 08:39:51 +02:00
Rafikooo
a5e63c3946 [ECS] Apply ecs fixes 2024-07-17 13:27:00 +02:00
Grzegorz Sadowski
0e4c8ef95f
Merge branch '1.14' into 2.0
* 1.14:
  [API] Add note about disabling adjustment GET endpoint to UPGRADE file
  [API] Remove unnecessarily added HeadersBuilder class
  Add phpunit test
  Disable adjustments shop API endpoint
2024-07-17 08:58:49 +02:00
Grzegorz Sadowski
88081528e3
Merge branch '1.12' into 1.13
* 1.12:
  [API] Add note about disabling adjustment GET endpoint to UPGRADE file
  [API] Remove unnecessarily added HeadersBuilder class
  Add phpunit test
  Disable adjustments shop API endpoint
2024-07-17 08:56:19 +02:00
Grzegorz Sadowski
61c984228a
[API] Remove unnecessarily added HeadersBuilder class 2024-07-17 08:06:56 +02:00
Grzegorz Sadowski
fc639aed35
[API] Fix GET endpoint for Shipping Method Translation resource 2024-07-17 08:01:18 +02:00
Grzegorz Sadowski
f764d7d5ec
[API][Shop] Convert state provider to query extensions for Shipping Method resource 2024-07-16 13:26:33 +02:00
Michał Pysiak
37f812d825
Add phpunit test 2024-07-16 09:43:52 +02:00
Grzegorz Sadowski
7eca3bfb18
[API] Implement Shipping Method shop endpoints 2024-07-16 09:41:19 +02:00
Grzegorz Sadowski
7b9e04f624
[API] Implement Shipping Method admin endpoints 2024-07-16 09:41:18 +02:00
Grzegorz Sadowski
a1ce45fcfc
[API] Enable contract tests for Shipping Method resource 2024-07-16 09:41:18 +02:00
Grzegorz Sadowski
9138cc4a1a
Merge branch '2.0' into api-platform-3
* 2.0:
  [Behat] Add tests for filtering and sorting customer groups
  [Behat] Enable customer group browsing and deleting scenarios
  [Behat] Remove redundant at sign
  UserDropdownComponent - fix return type
  Remove unnecessary function
  [Admin][Locale] Fix path to form's template
  [Admin][Locale] Minor improvements
  [Admin][Locale] Add filtering tests
  [Admin][Locale] Remove update action
  [Admin][Locale] Enable behat tests
  [Admin][Locale] Add create/update page
  [Core] Remove LocaleTypeExtension
  [Admin] Change the name of the service to provide the logged in admin user
  [Admin] Extract logged in admin user providing
  [Admin] Fix 404 page when there is no route for url
  [Admin] Remove icon from existing avatar
2024-07-09 12:25:52 +02:00
Grzegorz Sadowski
9dac700de9 [Admin] Change the way of checking shop not found page in unit tests 2024-07-09 12:14:00 +02:00
Jan Goralski
1f7a038afc [Admin] Fix 404 page when there is no route for url 2024-07-09 07:06:44 +02:00
Grzegorz Sadowski
1109c4100e
Merge branch '2.0' into api-platform-3
* 2.0: (22 commits)
  [CS][DX] Refactor
  Fix error template finders specs and the way logged in admin user is checked
  [Behat] Fix """unexistent"""
  [Shop][Admin] Fix error pages location
  Slight cleanup
  Fix the build and improve a bit the failed step erros messages
  Move Error renderer to UiBundle
  Redirect to login page if the reset password token is wrong
  Decouple TwigErrorRenderer from AdminBundle
  Add tests
  Exclude ErrorRenderer and FlattenException from composer require checker
  Separate exact templates for Admin and Shop
  Separate the rendering of the error templates for Shop and Admin
  Create and add a 404 page for the Admin Panel using twig hooks
  Customer create edit page fixes
  Remove deprecated statistics
  Use interface for a response checker dependency
  [Admin][Taxon] Minor improvements
  [Admin][Taxon] Add info about component inside template
  [Admin][Taxon] Remove unnecessary lines
  ...
2024-07-04 06:56:56 +02:00
Michał Pysiak
87350f21fa Remove deprecated statistics 2024-07-03 14:54:44 +02:00
Grzegorz Sadowski
fc64919101
[API] Minor improvements of OrderItem and OrderItemUnit contract tests 2024-07-02 08:07:18 +02:00
Grzegorz Sadowski
e3822b5f6b
[API] Implement Order Item Unit endpoints 2024-07-02 07:01:06 +02:00
Grzegorz Sadowski
fb2f15563d
[API] Enable contract tests for Order Item Unit resource 2024-07-02 07:01:06 +02:00
Grzegorz Sadowski
34dbb9e6a2
[API] Implement Order Item endpoints 2024-07-02 07:01:06 +02:00
Grzegorz Sadowski
09456e2d63
[API] Enable contract tests for Order Item resource 2024-07-02 07:01:05 +02:00
Wojdylak
b11d74c370 [API][CategoryGroup] Enable unit tests 2024-07-02 06:58:27 +02:00
Wojdylak
4e7c1824ab [API][ShippingCategory] Enable unit tests 2024-07-02 06:46:24 +02:00
Rafikooo
88f3de1c75 [ECS] Apply ecs fixes 2024-06-19 13:28:00 +02:00
Kamil Grygierzec
29affee4cb enable tests 2024-06-18 13:52:37 +02:00
Michał Pysiak
724caa1c2e Fix products collection associations endpoint 2024-06-14 14:29:56 +02:00
Michał Pysiak
1b1f5f491a Disable non product scenarios 2024-06-14 14:29:56 +02:00
Michał Pysiak
ad39fa6c6c Enable resolvers 2024-06-14 14:29:56 +02:00