Skip to content
This repository has been archived by the owner on Apr 9, 2021. It is now read-only.

Upgrade demoshop to beta4 version #27

Merged
merged 19 commits into from
Dec 17, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
1d3c9ec
updated Docker configuration
grossmannmartin Dec 6, 2018
b0c404e
renamed Database tests to Functional tests
grossmannmartin Dec 6, 2018
f0a1fee
phpUnit: Remove unsupported syntaxCheckAttribute
grossmannmartin Dec 7, 2018
9022393
unnecessary files in docker are now ignored
grossmannmartin Dec 7, 2018
1dd60d1
content-test directory is used instead of content during the test
grossmannmartin Dec 7, 2018
f87ed07
updated coding standards and applied
grossmannmartin Dec 7, 2018
4b5739d
dependencies on shopsys packages updated to beta3 version
grossmannmartin Dec 7, 2018
1c357cd
domains URLs are auto-configured during "composer install"
grossmannmartin Dec 7, 2018
4299471
new form types are now registered
grossmannmartin Dec 7, 2018
040a25a
phing targets: create-domains-data is now dependent on create-domains…
grossmannmartin Dec 7, 2018
353a87a
phing: improve db-fixtures targets (dependency order, remove obsolete…
grossmannmartin Dec 7, 2018
c6a54c6
OrderFormType in Admin is now properly extended
grossmannmartin Dec 11, 2018
b5c7377
fixed tests related with price calculation removal
grossmannmartin Dec 11, 2018
3560e7a
changed Shopsys\Environment class for consistent env setting during c…
grossmannmartin Dec 11, 2018
c477436
dependencies on shopsys packages updated to beta4 version
grossmannmartin Dec 11, 2018
7bd9248
block loading of original data fixtures, if overridden
grossmannmartin Dec 13, 2018
60e06b7
webserver container now starts after php-fpm is started
grossmannmartin Dec 14, 2018
0d3358c
fixed wrong links in mail template data fixtures
grossmannmartin Dec 14, 2018
8d77412
updated changelog with beta4 upgrade informations
grossmannmartin Dec 14, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# ignore .git (can be volume-mounted in development environment)
.git

# ignore directories with meta-data
.idea
nbproject

# ignore directories that should be created and filled during the image build
node_modules
var
!var/.gitkeep
web/assets/scripts
web/bundles
web/components
web/content
vendor

# ignore kubernetes manifests
kubernetes

# ignore docker configs for other images than php-fpm, and the php-fpm's Dockerfile itself
docker
!docker/php-fpm
docker/php-fpm/Dockerfile
12 changes: 11 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,19 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- [#19 - Table tags and inline styles can be used in ckEditor for email templates](https://github.com/shopsys/demoshop/pull/19)
- `ivory_ck_editor.yml` is updated so email templates wysiwyg can parse table tags and inline styles for all elements
- datafixtures for email templates are added so demoshop has now customized emails
- [#27 - Upgrade to shopsys framework 7.0.0-beta4](https://github.com/shopsys/demoshop/pull/27)
- renamed Database tests to Functional tests
- content-test directory is used instead of content during the test
- updated coding standards and applied
- registered new form types (OrderItemsType, DisplayOnlyCustomerType)
- OrderFormType in Admin is extended on a class level. No need to extend twig template anymore
- block loading of original data fixtures, if overridden
- Shopsys\FrameworkBundle\DataFixtures\Demo\MailTemplateDataFixture blocked from loading, because its overridden in ShopBundle
- Shopsys\FrameworkBundle\DataFixtures\Demo\MultidomainMailTemplateDataFixture blocked from loading, because its overridden in ShopBundle
- fixed wrong links in mail template data fixtures

### Fixed
- [#8 - Category now has second description attribute that is displayed on the product list page above the product list](https://github.com/shopsys/demoshop/pull/8)
- GoogleFeedItemFactory: removed unused imports

[@LukasHeinz]:(https://github.com/LukasHeinz)
[@LukasHeinz]:(https://github.com/LukasHeinz)
11 changes: 5 additions & 6 deletions app/Environment.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,11 @@ public static function checkEnvironment(Event $event)
$io = $event->getIO();
/* @var $io \Composer\IO\IOInterface */
$environmentFileSetting = self::getEnvironmentFileSetting();
if ($io->isInteractive() && !$environmentFileSetting->isAnyEnvironmentSet()) {
if ($io->askConfirmation('Build in production environment? (Y/n): ', true)) {
$environmentFileSetting->createFileForEnvironment(EnvironmentType::PRODUCTION);
} else {
$environmentFileSetting->createFileForEnvironment(EnvironmentType::DEVELOPMENT);
}
if (!$environmentFileSetting->isAnyEnvironmentSet()) {
$environment = $event->isDevMode() ? EnvironmentType::DEVELOPMENT : EnvironmentType::PRODUCTION;
$environmentFileSetting->createFileForEnvironment($environment);
$environmentFilePath = $environmentFileSetting->getEnvironmentFilePath($environment);
$io->write(sprintf('Created a file "%s" to set the application environment!', $environmentFilePath));
}
self::printEnvironmentInfo($io);
}
Expand Down

This file was deleted.

2 changes: 2 additions & 0 deletions app/config/packages/twig.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ twig:
- '@ShopsysFramework/Admin/Form/fileuploadFields.html.twig'
- '@ShopsysFramework/Admin/Form/imageuploadFields.html.twig'
- '@ShopsysFramework/Admin/Form/pricetableFields.html.twig'
- '@ShopsysFramework/Admin/Form/orderItems.html.twig'
grossmannmartin marked this conversation as resolved.
Show resolved Hide resolved
- '@ShopsysFramework/Admin/Form/orderlistFields.html.twig'
- '@ShopsysShop/Admin/Form/displayOnlyCustomer.html.twig'
- '@ShopsysFramework/Admin/Form/displayOnlyDomainIconFields.html.twig'
- '@ShopsysFramework/Admin/Form/displayOnlyFields.html.twig'
- '@ShopsysShop/Admin/Form/companyUsers.html.twig'
Expand Down
2 changes: 2 additions & 0 deletions app/config/parameters_test.yml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ parameters:
test_mailer_host: smtp-server
test_mailer_user: ~
test_mailer_password: ~

shopsys.content_dir_name: 'content-test'
19 changes: 10 additions & 9 deletions app/config/paths.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,34 @@
parameters:
shopsys.content_dir_name: 'content'
shopsys.css_version_filepath: '%shopsys.web_dir%/assets/cssVersion'
shopsys.data_fixtures.resource_customers_filepath: '%shopsys.data_fixtures.resources_dir%/demo-data-customers.csv'
shopsys.data_fixtures.resource_products_filepath: '%shopsys.data_fixtures.resources_dir%/demo-data-products.csv'
shopsys.data_fixtures.resources_dir: '%shopsys.framework.root_dir%/src/DataFixtures/resources'
shopsys.default_db_schema_filepath: '%shopsys.framework.resources_dir%/database/schema.sql'
shopsys.domain_config_filepath: '%kernel.root_dir%/config/domains.yml'
shopsys.domain_images_dir: '/web%shopsys.domain_images_url_prefix%'
shopsys.domain_images_url_prefix: /content/admin/images/domain
shopsys.domain_images_url_prefix: '/%shopsys.content_dir_name%/admin/images/domain'
shopsys.domain_urls_config_filepath: '%kernel.root_dir%/config/domains_urls.yml'
shopsys.error_pages_dir: '%shopsys.root_dir%/var/errorPages/'
shopsys.feed_dir: '/web%shopsys.feed_url_prefix%'
shopsys.feed_url_prefix: /content/feeds/
shopsys.feed_url_prefix: '/%shopsys.content_dir_name%/feeds/'
shopsys.filemanager_upload_dir: '%shopsys.web_dir%/%shopsys.filemanager_upload_web_dir%'
shopsys.filemanager_upload_web_dir: content/wysiwyg
shopsys.filemanager_upload_web_dir: '%shopsys.content_dir_name%/wysiwyg'
shopsys.framework.root_dir: '%shopsys.root_dir%/vendor/shopsys/framework'
shopsys.front_design_image_url_prefix: /assets/frontend/images/
shopsys.front_design_image_url_prefix: '/assets/frontend/images/'
shopsys.image_config_filepath: '%shopsys.root_dir%/src/Shopsys/ShopBundle/Resources/config/images.yml'
shopsys.image_dir: '/web%shopsys.image_url_prefix%'
shopsys.image_url_prefix: /content/images/
shopsys.image_url_prefix: '/%shopsys.content_dir_name%/images/'
shopsys.javascript_sources_dir: '%shopsys.resources_dir%/scripts'
shopsys.javascript_url_prefix: /assets/scripts/
shopsys.log_stream: /tmp/log-pipe
shopsys.javascript_url_prefix: '/assets/scripts/'
vitek-rostislav marked this conversation as resolved.
Show resolved Hide resolved
shopsys.log_stream: '/tmp/log-pipe'
shopsys.resources_dir: '%shopsys.root_dir%/src/Shopsys/ShopBundle/Resources'
shopsys.root_dir: '%kernel.root_dir%/..'
shopsys.sitemaps_dir: '/web%shopsys.sitemaps_url_prefix%'
shopsys.sitemaps_url_prefix: /content/sitemaps
shopsys.sitemaps_url_prefix: '/%shopsys.content_dir_name%/sitemaps'
shopsys.uploaded_file_config_filepath: '%shopsys.root_dir%/src/Shopsys/ShopBundle/Resources/config/uploaded_files.yml'
shopsys.uploaded_file_dir: '/web%shopsys.uploaded_file_url_prefix%'
shopsys.uploaded_file_url_prefix: /content/uploadedFiles/
shopsys.uploaded_file_url_prefix: '/%shopsys.content_dir_name%/uploadedFiles/'
shopsys.web_dir: '%shopsys.root_dir%/web'
shopsys.vendor_dir: '%kernel.root_dir%/../vendor'
shopsys.js_form_validator_output_vendor_dir: '../vendor'
Expand Down
Loading