This PR was merged into the 1.7 branch.
Discussion
----------
| Q | A
| --------------- | -----
| Branch? | 1.7
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Related tickets | fixes#11440
| License | MIT
Commits
-------
7da61c9361 [Composer] Add conflict to doctrine/inflector ^1.4 to fix taxons
This PR was merged into the 1.8-dev branch.
Discussion
----------
The previous implementation coupled us with MySQL, which is not an option. Next iteration over the feature should fix existing problems without generating new ones.
Commits
-------
25e93dc1b3 Revert "[Backend] Feeding sales statistics graph with date from chosen period"
This PR was merged into the 1.7-dev branch.
Discussion
----------
| Q | A
| --------------- | -----
| Branch? | master <!-- see the comment below -->
| Bug fix? | no
| New feature? | yes
| BC breaks? | no
| Deprecations? | no <!-- don't forget to update the UPGRADE-*.md file -->
| License | MIT
<!--
- Bug fixes must be submitted against the 1.4, 1.5 or 1.6 branch (the lowest possible)
- Features and deprecations must be submitted against the master branch
- Make sure that the correct base branch is set
-->
This adds the possibility to define coupons in promotion fixtures.
```yaml
...
promotion:
options:
custom:
test:
name: 'Test'
coupon_based: true
coupons:
- code: 'abc'
- code: 'abcde'
expires_at: 'tomorrow'
usage_limit: 10
per_customer_usage_limit: 1
reusable_from_cancelled_orders: true
```
Commits
-------
06d9ff40f8 Added coupons to promotion fixture
ae59d656ac Extracted coupon normalization to private method
ed18fc0605 Applied suggested changes
8885092d0c [Config] Generate coupons for promotion
d998c4fa8e [Config] Generate christmas coupons for promotion
687122a1f9 Fix deprecation message + cs
This PR was merged into the 1.8-dev branch.
Discussion
----------
| Q | A
| --------------- | -----
| Branch? | master
| Bug fix? | no
| New feature? |yes
| BC breaks? | no
| Deprecations? | no
| Related tickets? | #11371
| License | MIT
<!--
- Bug fixes must be submitted against the 1.6 or 1.7 branches (the lowest possible)
- Features and deprecations must be submitted against the master branch
- Make sure that the correct base branch is set
-->
Commits
-------
0c5c9988f3 First iteration over tests statistics
c67677306a upgrade statistics provider
b526ef85f1 Improve alice fixtures and fix tests
092c6f9594 replace sql with DQL in statistic provider
d2afea71bc Add Interval Converter
This PR was merged into the 1.7 branch.
Discussion
----------
| Q | A
| --------------- | -----
| Branch? | 1.7
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Related tickets |
| License | MIT
Should resolve:
```bash
PHP Fatal error: Uncaught Psalm\Exception\TypeParseTreeException: Unterminated bracket in /home/travis/build/Sylius/Sylius/vendor/vimeo/psalm/src/Psalm/Internal/Type/ParseTree.php:571
Stack trace:
#0 /home/travis/build/Sylius/Sylius/vendor/vimeo/psalm/src/Psalm/Type.php(171): Psalm\Internal\Type\ParseTree::createFromTokens(Array)
#1 /home/travis/build/Sylius/Sylius/vendor/vimeo/psalm/src/Psalm/Internal/Visitor/ReflectorVisitor.php(2668): Psalm\Type::parseTokens(Array)
#2 /home/travis/build/Sylius/Sylius/vendor/vimeo/psalm/src/Psalm/Internal/Visitor/ReflectorVisitor.php(2207): Psalm\Internal\Visitor\ReflectorVisitor->getAssertionParts('array<array-key...', Object(PhpParser\Node\Stmt\Function_))
#3 /home/travis/build/Sylius/Sylius/vendor/vimeo/psalm/src/Psalm/Internal/Visitor/ReflectorVisitor.php(323): Psalm\Internal\Visitor\ReflectorVisitor->registerFunctionLike(Object(PhpParser\Node\Stmt\Function_))
#4 /home/travis/build/Sylius/Sylius/vendor/nikic/php-parser/lib/PhpParser/NodeTraverser.php(200): Psalm\Internal\Visitor\Reflect in /home/travis/build/Sylius/Sylius/vendor/vimeo/psalm/src/Psalm/Internal/Type/ParseTree.php on line 571
Fatal error: Uncaught Psalm\Exception\TypeParseTreeException: Unterminated bracket in /home/travis/build/Sylius/Sylius/vendor/vimeo/psalm/src/Psalm/Internal/Type/ParseTree.php:571
Stack trace:
#0 /home/travis/build/Sylius/Sylius/vendor/vimeo/psalm/src/Psalm/Type.php(171): Psalm\Internal\Type\ParseTree::createFromTokens(Array)
#1 /home/travis/build/Sylius/Sylius/vendor/vimeo/psalm/src/Psalm/Internal/Visitor/ReflectorVisitor.php(2668): Psalm\Type::parseTokens(Array)
#2 /home/travis/build/Sylius/Sylius/vendor/vimeo/psalm/src/Psalm/Internal/Visitor/ReflectorVisitor.php(2207): Psalm\Internal\Visitor\ReflectorVisitor->getAssertionParts('array<array-key...', Object(PhpParser\Node\Stmt\Function_))
#3 /home/travis/build/Sylius/Sylius/vendor/vimeo/psalm/src/Psalm/Internal/Visitor/ReflectorVisitor.php(323): Psalm\Internal\Visitor\ReflectorVisitor->registerFunctionLike(Object(PhpParser\Node\Stmt\Function_))
#4 /home/travis/build/Sylius/Sylius/vendor/nikic/php-parser/lib/PhpParser/NodeTraverser.php(200): Psalm\Internal\Visitor\Reflect in /home/travis/build/Sylius/Sylius/vendor/vimeo/psalm/src/Psalm/Internal/Type/ParseTree.php on line 571
```
Ref. https://travis-ci.org/github/Sylius/Sylius/jobs/682877325
Ref. https://github.com/amphp/amp/issues/314
<!--
- Bug fixes must be submitted against the 1.6 or 1.7 branches (the lowest possible)
- Features and deprecations must be submitted against the master branch
- Make sure that the correct base branch is set
-->
Commits
-------
f6819a26e2 [Maintenance] Upgrade psalm version
This PR was merged into the 1.8-dev branch.
Discussion
----------
| Q | A
| --------------- | -----
| Branch? | master
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Related tickets |
| License | MIT
Currently `Sylius\Component\Channel\Context\ChannelContextInterface` is aliased to `sylius.context.channel.composite`, instead of `sylius.contex.channel`, so the `sylius.context.channel.cached` is not used and it can result in a lot of extra database queries in applications that mainly use autowiring for service arguments.
It also doesn't make use of any custom application decorations of `sylius.context.channel`.
Commits
-------
8a05848185 alias Sylius\Component\Channel\Context\ChannelContextInterface to sylius.context.channel instead of sylius.context.channel.composite
761979d8c0 add note to UPGRADE.md
a859585949 Merge branch 'master' into fix-channel-context-alias
This PR was merged into the 1.8-dev branch.
Discussion
----------
| Q | A
| --------------- | -----
| Branch? | master
| Bug fix? | no
| New feature? | yes
| BC breaks? | no
| Deprecations? | no
| Related tickets | partially #11250
| License | MIT
Cover :
- [x] adding_country.feature
- [x] adding_country_with_provinces.feature
- [x] country_unique_code_validation.feature
- [x] editing_country.feature
- [x] managing_provinces_of_country.feature
- [x] province_unique_code_validation.feature
- [x] province_validation.feature
Commits
-------
45cf126d65 add country to Api Platform
92efb5eb35 adding country with provinces
97afba952c managing provinces of country
96b5d6a62c province unique code validation
7f8ee6bbd8 add routes prefix
df548bbc1e fix province name for UI behat
317232d116 province validation
e8577b44a0 merge some behat tests
afbe436554 refactor after code review
09c8665469 rebase and update after merge #113977a91353fcc use transformer of behat
This PR was merged into the 1.8-dev branch.
Discussion
----------
| Q | A
| --------------- | -----
| Branch? | master
| Bug fix? | no
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Related tickets |
| License | MIT
Final classes, which holds consts has been changed to interfaces. Therefore, still, no one is able to initialize them, while we are open to multi inheritance. This should remove the problem of adding new values to them in plugins and end applications.
<!--
- Bug fixes must be submitted against the 1.6 or 1.7 branches (the lowest possible)
- Features and deprecations must be submitted against the master branch
- Make sure that the correct base branch is set
-->
Commits
-------
69db13582b [DX] Open consts holder classes
This PR was merged into the 1.8-dev branch.
Discussion
----------
| Q | A
| --------------- | -----
| Branch? | master
| Bug fix? | no
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Related tickets |
| License | MIT
<!--
- Bug fixes must be submitted against the 1.6 or 1.7 branches (the lowest possible)
- Features and deprecations must be submitted against the master branch
- Make sure that the correct base branch is set
-->
Commits
-------
07232182a4 [Maintenance] Update release cycle
This PR was merged into the 1.7-dev branch.
Discussion
----------
| Q | A
| --------------- | -----
| Branch? | master
| Bug fix? | no
| New feature? | yes
| BC breaks? | no
| Deprecations? | no
| License | MIT
<!--
- Bug fixes must be submitted against the 1.6 or 1.7 branches (the lowest possible)
- Features and deprecations must be submitted against the master branch
- Make sure that the correct base branch is set
-->
Commits
-------
9e1cc286da Add implementation for tests
1d9ebeea67 Add fixes for tests
f2c16b2297 Expose OrderItemUnits as ShipmentUnits in API
12e7f2d983 Check shipment units products by IRIs
c1b3243eec Extract client for "by IRI" showing
This PR was merged into the 1.7 branch.
Discussion
----------
| Q | A
| --------------- | -----
| Branch? | >1.6
| Bug fix? | no
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Related tickets |
| License | MIT
SImple typo in documentation. The last `"` shouldn't be here.
Commits
-------
4c7c462e2a Typo in code block in documentation