commercetools / commercetools-sunrise-java

The next generation shop framework by commercetools
https://demo.commercetools.com
Apache License 2.0
46 stars 35 forks source link

Use of ViewModels in session is not transparent #682

Open selo-ecube opened 6 years ago

selo-ecube commented 6 years ago
lauraluiz commented 6 years ago

@selo-ecube I just re-read the last line and realized that you may have needed some action to fix this for your project. Sorry! I understood the issues as just feedback to fix in next releases (which we are working on at the moment). Do you still need help with that? Regarding the topic itself, we are getting rid of ViewModels, specially in Session, so we are working in the right direction.

selo-ecube commented 6 years ago

Sorry for the late reply. Yes, we need help with that, but it's ok to wait until you fixed it. Thanks for getting back!

lauraluiz commented 6 years ago

Unfortunately we are working on that in the 1.0.0-RC1 version which is completely different from the v0.x.x, so I don't think we could painlessly provide a fix for the latter version. But these are the key changes involved:

In your case you told me in another issue that you didn't want to go the cache solution, but it's the only solution that will solve this I'm afraid. So for your version I can either point you to the v1.0.0-RC1 development branch files so that you can copy them to your project and drop the Session classes from v0.x.x, or we can discuss which would be the best way for me to integrate them in v0.x.x so that it can help your case.