Skip to content
This repository has been archived by the owner on May 30, 2019. It is now read-only.

Usage of new elcodi related purchasable service #627

Merged
merged 1 commit into from
Nov 16, 2015

Conversation

mmoreram
Copy link
Contributor

@mmoreram mmoreram commented Nov 9, 2015

  • Using related products as subrequests, using new service
  • Deprecated ProductCollectionProvider in favor of new elcodi/elcodi implementation
  • Fixed some finish translations (only format)

{% include "@StoreTemplate/Modules/_product-related.html.twig" with {'products' : related_products} %}
{{ render(url('store_product_related', {
'id': product.id
})) }}
Copy link
Member

Choose a reason for hiding this comment

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

I'm not fully sure about this change, the render adds an overhead, is this necessary?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, sure, is the way to really uncouple both features :)

Copy link
Member

Choose a reason for hiding this comment

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

ok, than the only change could be replacing url with path, but this doesn't change so much

Copy link
Contributor Author

Choose a reason for hiding this comment

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

why path?

Copy link
Member

Choose a reason for hiding this comment

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

I usually don't use the url function at all to prevent requests problems when switching from render to render_hinclude.
Anyway probably this isn't a related case.

@EmanueleMinotto
Copy link
Member

Tests are actually green on master, any idea why they aren't passing for this PR?

@mmoreram
Copy link
Contributor Author

mmoreram commented Nov 9, 2015

@EmanueleMinotto in faxr, master is failing as well. This requires new version of elcodi/elcodi and some tests are crashing (final events make some tests crash because of invalid mocking).

Needs to be fixed.
I'm on it ^^

* Using related products as subrequests, using new service
* Deprecated ProductCollectionProvider in favor of new elcodi/elcodi implementation
* Fixed some finish translations (only format)

Also : Removed logic from listener

* This change is because of new final events
* Placed this logic into a service
* Fixed tests (listeners shouln't have tests. Now service is tested)
@mmoreram mmoreram force-pushed the feature/new-related-purchasables-usage branch from 015089c to f8c77f2 Compare November 15, 2015 23:14
mmoreram added a commit that referenced this pull request Nov 16, 2015
…usage

Usage of new elcodi related purchasable service
@mmoreram mmoreram merged commit 95c895d into master Nov 16, 2015
@mmoreram mmoreram deleted the feature/new-related-purchasables-usage branch November 16, 2015 00:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants