Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ThemeBundle] fixed assets re-installation #5628

Merged
merged 1 commit into from
Aug 2, 2016

Conversation

takeit
Copy link
Contributor

@takeit takeit commented Jul 28, 2016

Q A
Bug fix? yes
New feature? no
BC breaks? no
License MIT

This PR fixes an issue when you want to update your assets once they were already installed at least one time. Let's say I have installed assets, I edit one of the asset files in my theme and run sylius:theme:assets:install command again - the updated asset file won't be copied over to the web directory, thus I still get the old version.

@@ -1 +1 @@
Vanilla asset
Theme asset
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These test were passing, "Vanilla asset" is used here to detect issues with theme assets loading. If we're using a theme and "Vanilla asset" shows, then something is wrong with the codebase, not with tests.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or just tests were wrong and in fact only the RELATIVE_SYMLINK was used so they were passing because of that. If so, AssetsInstaller needs a fix.

Copy link
Contributor Author

@takeit takeit Jul 28, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hey, I should have made that WIP :) and yeah you are right.

@takeit takeit changed the title [ThemeBundle] fixed assets re-installation [WIP][ThemeBundle] fixed assets re-installation Jul 28, 2016
fixed tests

fixed assets re-installation and added more tests
@takeit takeit changed the title [WIP][ThemeBundle] fixed assets re-installation [ThemeBundle] fixed assets re-installation Jul 31, 2016
@pjedrzejewski pjedrzejewski merged commit 733651d into Sylius:master Aug 2, 2016
@pjedrzejewski
Copy link
Member

Thanks Rafał! :)

@takeit takeit deleted the assets_installer branch August 2, 2016 09:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants