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

[RFC] (root) Taxon with children taxons behavior in listing #6604

Closed
gabiudrescu opened this issue Nov 1, 2016 · 13 comments · Fixed by #6886 or #9621
Closed

[RFC] (root) Taxon with children taxons behavior in listing #6604

gabiudrescu opened this issue Nov 1, 2016 · 13 comments · Fixed by #6886 or #9621
Labels
Feature New feature proposals. RFC Discussions about potential changes or new features.

Comments

@gabiudrescu
Copy link
Contributor

gabiudrescu commented Nov 1, 2016

⚠️ 🛣 This issue is a part of the Sylius Public Roadmap 🛣 ⚠️

Preconditions:

  • I have 3 taxons like this:
    • TShirts
      • Men
      • Women
  • I have 4 products where Men taxon is assigned
  • I have 8 products where Women taxon is assigned

Steps to reproduce:

What happens:

  • there is no product

What I think it should happen:

  • see all the 12 products assigned to the children taxons of T-Shirts

image

image


We have implemented such a behavior here, based on ElasticSearch:

@gabiudrescu
Copy link
Contributor Author

@pjedrzejewski isn't this supposed to be already available for testing on http://demo.sylius.org/ ? how often do you deploy?

@michalmarcinkowski
Copy link
Contributor

The demo will be updated tomorrow to the 1.0.0-beta release 🎉 . After that we will deploy on each release.

@teohhanhui
Copy link
Contributor

I believe this was not fixed the right way. Any product listing of a parent taxon must automatically include products from all its children. It is counter-intuitive and error prone for the user to have to manually add products from child taxons directly to the parent taxon. And it's especially problematic when you have a more nested hierarchy.

@teohhanhui
Copy link
Contributor

teohhanhui commented Jul 4, 2018

And putting the / in the taxon slug is an ugly hack that is again very error prone. Imagine you have tens or hundreds of child taxons, and if you rename or change the slug of the parent taxon, you'll have to then make sure to update the slug for each child taxon?

@pamil pamil reopened this Jul 5, 2018
@pamil pamil added Feature New feature proposals. RFC Discussions about potential changes or new features. labels Jul 5, 2018
@pamil
Copy link
Contributor

pamil commented Jul 5, 2018

I agree with @teohhanhui as the current behaviour has always been counterintuitive to me and AFAIK all Sylius' ElasticSearch plugins on the market solve this problem.

I'm reopening this issue and tagging it as a feature, because the current behaviour has existed for so long that fixing it to show nested products could be a BC break for some.

As for the second comment, could you make a separate issue for that?

@teohhanhui
Copy link
Contributor

To me, the two comments are about the same issue.

@gabiudrescu
Copy link
Contributor Author

is it available for testing on demo.sylius.org?

@lchrusciel
Copy link
Member

Not yet, you should probably need to wait for the next release.

@pamil
Copy link
Contributor

pamil commented Aug 16, 2018

Would be great to have a demo preview of master branch though :)

@gabiudrescu
Copy link
Contributor Author

@pamil yes, I agree #9229 👍

@lchrusciel
Copy link
Member

I totally agree too, I just don't have a time for it right now :)

@lchrusciel
Copy link
Member

lchrusciel commented Aug 17, 2018

Brace yourself, @bartoszpietrzak1994 saved the day with a PR to our demo :D Sylius/SyliusDemo#49

@lchrusciel
Copy link
Member

And it is done :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New feature proposals. RFC Discussions about potential changes or new features.
Projects
None yet
6 participants