This PR was merged into the 1.13 branch.
Discussion
----------
| Q | A |
|-----------------|--------------------------------------------------------------|
| Branch? | 1.13 <!-- 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 |
This data response format is designed to facilitate chart generation. The following example is specifically for the annual sales summary with monthly intervals; other configurations will be added in future PRs.
This data format is intended for the Chart.js library, but it should also be easy to integrate with Google Charts.
It has built-in support for handling multiple datasets.
```json
{
"salesChart": {
"labels": [
"2023-01-01",
"2023-02-01",
"2023-03-01",
"2023-04-01",
"2023-05-01",
"2023-06-01",
"2023-07-01",
"2023-08-01",
"2023-09-01",
"2023-10-01",
"2023-11-01",
"2023-12-01"
],
"datasets": {
"sales": [
97043,
17740,
125045,
54611,
85021,
78858,
104452,
45415,
50234,
29463,
0,
0
] // If necessary, additional datasets could be included
}
},
"businessActivitySummary": {
"totalSales": 687882,
"newOrdersCount": 14,
"newCustomersCount": 21,
"averageOrderValue": 49134
},
"intervalType": "month"
}
```
Commits
-------
da36901219 [Behat][API] Implement sales statistics scenarios
441aed53a3 [Behat] Launch the SharedStorageChannelContext class
a8b9c54e2c [PHPStan] Specify return types in the StatisticsDataProviderInterface service
37ad43e0de [ApiBundle] Implement Sales Statistics feature
3ab9268b0b [Swagger] Update Documentation for Sales Statistics API
d16a0e28e1 [CoreBundle] Introduce Sales Value Objects
71b836a6db [Core] Introduce Sales-Related Providers
bfe0777ddd [Core] Introduce SalesPeriodMapper service
e17e767f41 [ApiBundle] Refactor Sales Statistics implementation
7177037cdf [Unit] Update sales statistics response
7141ce072f [Behat] Remove the SharedStorageChannelContext class
a847aae5be [Unit] Add more tests for sales statistics
7439fb3940 [ApiBundle] Make accessing sales statistics stateless
5d55323cba [Swagger] Improve Documentation for Sales Statistics API
d369cfbbba [Refactor] Rename all SalesStatistics entries into Statistics
4f1d3ba857 [Core] Introduce the Chart concept and make adjustment to the related code
8669851c0e [Refactor] Change the GetStatistics query namespace
3f77c08104 [Statistics] Remove custom Period object in favor of native \DatePeriod
496a6ac474 [Unit] Add tests for validating sales statistics request parameters
bd77f55756 [Behat] Dashboard implementation improvements
33bf3648a5 [Behat] Remove unnecessary javascript tags
0c3bed5195 [Core] Add new method to OrderRepository
398961f31f [ApiBundle] Add validation for requesting statistics
6e71fe259f [Behat] Add API tags for statistics scenarios
2296ce7db9 [ApiBundle] Extract validation logic from GetStatisticsAction controller
fb21237891 Remove specs for unexisting classes and add existing ones
e3e9b33937 fix behat tests
fcf725812c Apply changes from comments and improve outdated StatisticsModifier
a0f2ecfc4b fix unit test
1199cef9dd Change new orders name to paid orders to not mix up names
1e196e2136 [Statistics] Refactor GetStatisticsAction
2109c1716b [DX] Update OrderRepository
This PR was merged into the 1.13 branch.
Discussion
----------
| Q | A |
|-----------------|--------------------------------------------------------------|
| Branch? | 1.13 <!-- see the comment below --> |
| Bug fix? | yes |
| New feature? | no |
| BC breaks? | not anymore |
| Related tickets | https://github.com/Sylius/Sylius/pull/15275#discussion_r1341257295 |
| License | MIT |
Commits
-------
[Upgrade] Note ZoneRepository addition and ZoneMatcher constructor changes
[Addressing] Support BC for ZoneMatcher
[ECS] Apply ecs fixes
This PR was merged into the 1.13 branch.
Discussion
----------
| Q | A |
|-----------------|--------------------------------------------------------------|
| Branch? | 1.13 <!-- 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.12 branch
- Features and deprecations must be submitted against the 1.13 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
-->
Commits
-------
Cover handling order shipment
Cover accessing order from payments and shipments
Cover preventing to view customers cart from the orders resource
Remove no more valid scenarios
Use SectionProvider in OrderExtension
Move applyToCollection logic to private method and use in both cases
Rename fulfilled_order file to fulfilled
Add parameter for order state to filter out and fix the OrdrerExtension logic
This PR was merged into the 1.13 branch.
Discussion
----------
| Q | A |
|-----------------|--------------------------------------------------------------|
| Branch? | 1.13
| Bug fix? | no
| New feature? | yes
| BC breaks? | no
| Deprecations? | no
| Related tickets | N/A
| License | MIT
Commits
-------
[ApiBundle][Address] Add address log entries operation
[ApiBundle][Address] Rename GetAddressLogEntryAction to GetAddressLogEntryCollectionAction
This PR was merged into the 1.13 branch.
Discussion
----------
| Q | A |
|-----------------|--------------------------------------------------------------|
| Branch? | 1.13
| Bug fix? | no
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Related tickets | n/a
| License | MIT
Commits
-------
Add missing @no-api tags in editing_product_review.feature
Add missing @api tags in recalculating_product_average_rating.feature
Cover scenarios in sorting_product_variants_within_product_by_position.feature
Cover scenarios in filtering_product_reviews.feature
Provide post-CR fixes
Remove duplicated step
[Behat][API] Minor improvements in managing variants contexts
[Behat][API] Refactor scenarios of sorting variants to have the same for UI and API contexts
[Behat] Fix scenario of browsing accepted reviews for case-sensitive PostreSQL
This PR was merged into the 1.13 branch.
Discussion
----------
| Q | A |
|-----------------|--------------------------------------------------------------|
| Branch? | 1.13
| Bug fix? | no
| New feature? | yes
| BC breaks? | no
| Deprecations? | no
| Related tickets | N/A
| License | MIT
Commits
-------
e530c7d9ca [PromotionBundle] Add parameters validation groups for promotion action and promotion rule
235c7e0dd5 [PromotionBundle] Move logic from PromotionActionGroupValidator to PromotionActionValidator
53c31aa420 [PromotionBundle] Move logic from PromotionRuleGroupValidator to PromotionRuleValidator
36d2a5ac08 [PromotionBundle] Remove constraints from FormType to avoid double constraints
d56ce734c6 Update upgrade file
c021e3e3a1 Add prefix sylius_ to validation groups
99a94b92a3 [PromotionBundle] Split PromotionActionValidator to PromotionActionGroupValidator and PromotionActionTypeValidator
de77a13d2d [PromotionBundle] Split PromotionRuleValidator to PromotionRuleGroupValidator and PromotionRuleTypeValidator
eb4a50c92b Update upgrade file
dd50a6f3a6 [PromotionBundle][PromotionAction] Add available type to validation message
633cf30ab3 [PromotionBundle][PromotionRule] Add available type to validation message
1494fce8fe [PromotionBundle] Add prefix to validation groups for promotion action/rule