Commit graph

368 commits

Author SHA1 Message Date
Kamil Kokot
ab95047d3c
Apply coding standard fixes 2020-06-24 14:18:24 +02:00
Tomanhez
2a2c022d91 Add authorization test 2020-06-10 07:34:31 +02:00
Kamil Kokot
b892cb89fc
feature #11241 Toggleable product variant (LucaGallinari, mmenozzi)
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 | implement #11115 
| License         | MIT

With this PR we add an enabled/disabled status (toggleable) to the product variant as described in #11115.


Commits
-------

3760ef60bd WIP - implements toggle on Ãproduct variant
ee4231efb0 Add enabled flag on product variant migration
3fe1e5758b Allow to enable and disable product variant
758354dc08 Rename behat feature file
39709bd6aa Toggle variant status when toggling simple product status
f976615df1 Add enabled field in the product variant admin grid
b7e4744666 Use only enabled variants when sorting products by price in shop
9486058e3b Show only enabled variants on configurable product show page
48289d1bac Add enabled field to create_validation_fail_response test json file
3bc8e96c37 Use enabled variants only in DefaultProductVariantResolver
09b2f30146 Use only enabled variants in ProductVariantsPricesProvider
404fd006db Always use first variants in simple product locking listener
5dca15ea14 Fix product variants resolver spec to use getEnabledVariants
6203a634af Add behat scenario to show only enabled variants options in pdp
1ab122c9bb Add docblock to ProductInterface::getEnabledVariants method
8e3d220082 Show only available options in configurable match selection pdp
3c114b5f7c Fix DefaultAvailableProductOptionValuesResolver class name
8543add20a Fix AvailableProductOptionValuesResolverInterface return type
5cb1ed2bdc Add only_avaliable_values option to ProductOptionValueChoiceType
5440852791 Disambiguate inability to select product option value behat step
085090cc89 Remove viewing prices of not available variants behat scenarios
35bfe8c934 Add default value to variant enabled column migration
3d91820353 Revert "Add default value to variant enabled column migration"
a7d78cd881 Fix ProductVariantInterface import in spec
7f3c21007e Add statement to toggleable variant migration to enable existing
96e7e805a9 Minor refactor
5a33bcc27b Remove unused behat setup product context method
8e5735fa7c Remove unnecessary newline
b7081e1e92 Fix AvailableProductOptionValuesResolver class name
2a4cb114df Add available diagonal variant options behat scenario
ced3d30c2f Fix CS
9c93252aee Use data test attribute for variants rows in product show page
7e601a02ea Make available values resolver optional in ProductOptionValueChoiceType
359f481c46 Trigger
6d4ed52692 Add explicit null default value to ProductOptionValueChoiceType
3d26a01ffc Allow to view products with all variants disabled
0140e81b52 Prevent checking out with a disabled product variant in cart
2020-05-24 20:34:55 +02:00
Kamil Kokot
954ee15301 Fix tests 2020-05-14 16:06:07 +02:00
Kamil Kokot
f7c1d2ced7 Refactor sales data provider 2020-05-14 12:56:39 +02:00
Adam Kasperczak
38b15bb5e0 Upgrade statistic provider with refactor 2020-05-14 12:56:35 +02:00
Manuele Menozzi
48289d1bac Add enabled field to create_validation_fail_response test json file 2020-05-13 14:25:52 +02:00
Kamil Kokot
8da333996f
Apply coding standard fixes 2020-05-12 21:57:44 +02:00
Francis Hilaire
c400b69d1b Add product associations to avoid regression 2020-05-11 15:43:51 +02:00
Francis Hilaire
80221911d7 Fix ajax product search when too many products 2020-05-11 15:43:51 +02:00
Łukasz Chruściel
25e93dc1b3
Revert "[Backend] Feeding sales statistics graph with date from chosen period" 2020-05-08 12:39:41 +02:00
Adam Kasperczak
d2afea71bc Add Interval Converter 2020-05-07 09:16:38 +02:00
Adam Kasperczak
092c6f9594 replace sql with DQL in statistic provider 2020-05-06 14:40:07 +02:00
Adam Kasperczak
b526ef85f1 Improve alice fixtures and fix tests 2020-04-30 09:48:24 +02:00
Adam Kasperczak
c67677306a upgrade statistics provider 2020-04-28 09:41:52 +02:00
Adam Kasperczak
0c5c9988f3 First iteration over tests statistics 2020-04-27 14:48:25 +02:00
Kamil Kokot
b4619a40b7
Apply coding standard fixes 2020-04-14 19:25:59 +02:00
Łukasz Chruściel
71a71d9c52
[Maintenance] Bump ApiTestCase to v5.0 2020-03-28 17:44:10 +01:00
Mateusz Zalewski
e509b4371c
Introduce BC layer to DashboardController 2020-01-31 16:26:41 +01:00
Mateusz Zalewski
ff0b327fe1
Include normalizer logic in SalesSummary 2020-01-31 11:20:21 +01:00
Mateusz Zalewski
3b3bfcec83
Remove custom repository method + display empty months 2020-01-31 09:56:18 +01:00
Mateusz Zalewski
81b4b46233
Provide data only about paid orders 2020-01-31 09:56:18 +01:00
Mateusz Zalewski
ceb51dfb71
Display sales data in a proper (currency-like) format 2020-01-31 09:56:18 +01:00
Mateusz Zalewski
e4761db854
Tests for SalesDataProvider 2020-01-31 09:56:18 +01:00
Łukasz Chruściel
e8145f02b9
feature #11055 Define countries for a channel (pamil)
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
| Related tickets | fixes #9122 
| License         | MIT

Currently used only in checkout addressing to limit the list of countries. If not defined, fallbacks to the previous behaviour - all enabled countries.

<img width="672" alt="Screenshot 2020-01-22 at 20 10 51" src="https://user-images.githubusercontent.com/1897953/72925676-65ef8f80-3d53-11ea-831c-25fad0973a83.png">



Commits
-------

2e68737703 Define countries for a channel
2020-01-23 13:22:17 +01:00
Kamil Kokot
2e68737703
Define countries for a channel 2020-01-23 10:03:42 +01:00
Łukasz Chruściel
e9ec260d2d
[Admin][Channel] Revert #10860 2020-01-22 16:14:14 +01:00
Grzegorz Sadowski
e85f134fc8
[Checkout] Add missing unit test for using deprecated different billing address flag 2020-01-17 11:24:18 +01:00
Grzegorz Sadowski
8508786553
[Checkout] Fixes for keeping BC after address type changes 2020-01-17 10:49:50 +01:00
Grzegorz Sadowski
c976ae07a5
[Checkout] Change address type event listener to keep a BC promise 2020-01-17 10:06:09 +01:00
Mateusz Zalewski
6b60714e3f
Scenarios and implementation fixes 2020-01-16 18:53:48 +01:00
Mateusz Zalewski
98e0a3eda4
Change addresses handling in Behat and PHPUnit tests 2020-01-16 18:53:47 +01:00
Mateusz Zalewski
cdfcb85e5c
[API] Expose menu taxon in Channel Admin API 2020-01-12 23:35:37 +01:00
Kamil Kokot
b6f794a764
Merge branch '1.6'
* 1.6:
  Apply coding standards fixes
  Update symfony.lock file
  Rebase YAML standards PR to Sylius 1.5
  [API] Refactoring of lazy customer loader
  Yaml standards: add empty line at the end check
  Yaml standards: add indent check
  Composer: added sspooky13/yaml-standards library to project
  [Maintenance] Remove shipping bundle from spec namespace config
  Fixed LazyCustomerLoader::loadValuesForChoices implementation
  Added LazyCustomerLoader for OrderType of SyliusAdminApiBundle
2019-12-18 13:34:01 +01:00
Kamil Kokot
3cf6cf9522
Merge branch '1.5' into 1.6
* 1.5:
  Apply coding standards fixes
  Update symfony.lock file
  Rebase YAML standards PR to Sylius 1.5
  [API] Refactoring of lazy customer loader
  Yaml standards: add empty line at the end check
  Yaml standards: add indent check
  Composer: added sspooky13/yaml-standards library to project
  [Maintenance] Remove shipping bundle from spec namespace config
  Fixed LazyCustomerLoader::loadValuesForChoices implementation
  Added LazyCustomerLoader for OrderType of SyliusAdminApiBundle
2019-12-18 13:26:48 +01:00
Peter Turek
b49854d11a
Yaml standards: add empty line at the end check
- fixed wrong files
2019-12-18 10:33:36 +01:00
Peter Turek
93409b0e55
Yaml standards: add indent check
- fixed wrong files
2019-12-18 10:33:36 +01:00
Adam Kasperczak
35a22702e6
Fixes 2019-11-21 13:30:15 +01:00
Kamil Kokot
4f34c88719
Merge branch '1.5'
* 1.5:
  Use flags macro
  Use flags macro
  Use flags macro
  Better matching of country for locale
  Add filter to get country for locale
  Skip test if HWIOAuthBundle is not installed
  Update test_services.xml
2019-07-26 13:20:44 +02:00
Kamil Kokot
3e98abf412
Merge branch '1.4' into 1.5
* 1.4:
  Use flags macro
  Use flags macro
  Use flags macro
  Better matching of country for locale
  Add filter to get country for locale
  Skip test if HWIOAuthBundle is not installed
  Update test_services.xml
2019-07-26 13:18:56 +02:00
Victor Vasiloi
4ecded0544
Skip test if HWIOAuthBundle is not installed 2019-07-20 16:51:37 +03:00
Kamil Kokot
2b0ac262dc
Merge branch '1.5'
* 1.5:
  Make test compatible with Symfony 3.4
  Downport changes from v1.6 to v1.4
  Apply coding standards fixes
  Embed test data in the test case itself
  Simplify product attribute value transformation
  Test refactoring
  Test select attribute in fixtures
  Tests against checkbox and integer attribute values
  Make it possible to set datetime attributes in fixtures
  Fixtures command test + test fixtures
2019-06-24 16:18:17 +08:00
Kamil Kokot
198a9e6bb6
Merge branch '1.4' into 1.5
* 1.4:
  Make test compatible with Symfony 3.4
  Downport changes from v1.6 to v1.4
  Apply coding standards fixes
  Embed test data in the test case itself
  Simplify product attribute value transformation
  Test refactoring
  Test select attribute in fixtures
  Tests against checkbox and integer attribute values
  Make it possible to set datetime attributes in fixtures
  Fixtures command test + test fixtures
2019-06-24 16:15:14 +08:00
Kamil Kokot
25ac67903c
Make test compatible with Symfony 3.4 2019-06-21 11:20:28 +08:00
Kamil Kokot
701265d3ad
Downport changes from v1.6 to v1.4 2019-06-20 18:26:06 +08:00
Kamil Kokot
c4f0fc785d
Apply coding standards fixes 2019-06-20 18:23:51 +08:00
Kamil Kokot
fa56d16981
Embed test data in the test case itself 2019-06-20 18:23:50 +08:00
Mateusz Zalewski
d765af3c1a
Test refactoring 2019-06-20 18:23:50 +08:00
Mateusz Zalewski
8470bdee71
Test select attribute in fixtures 2019-06-20 18:23:50 +08:00
Mateusz Zalewski
5761908195
Tests against checkbox and integer attribute values 2019-06-20 18:23:50 +08:00