-
-
Notifications
You must be signed in to change notification settings - Fork 730
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
Remove gem awesome_nested_set #11636
Comments
Can I work on this? |
Sure thanks @HillaryOkello , go ahead 🙂 |
I created a PR for this issue but I'm having an issue with the tests, I'm working on fixing them. I would appreciate some help #11808 |
Yes, thank you @HillaryOkello |
Thank you for the response @sigmundpetersen |
Hello @sigmundpetersen, Sorry, I've taken too long on this issue. I took a break and I'm back now. Is it okay if I pick another issue to work on? |
Hey @HillaryOkello |
Thank you for your efforts on this one and thanks for the feedback! |
hey @sigmundpetersen I want to take over this one to warm up. WDYTH? |
Sure thanks @thebigw4lrus , go ahead! 🎉 Thank you |
hey @sigmundpetersen , as I started digging into this issue, I got a few questions:
The way I see it there are two ways to move forward:
2.1. The above (remove the gem), but keep Taxonomy-Taxon 1.N Relationship, meaning, we should adjust the UI in the scope of this ticket for a single taxonony to have several taxons. I can do any way, but I am asking this to reassure on the ticket scope, as if we go for the path number 2, It would imply changes in several controllers outside of the taxon controller itself. Thanks! |
Thanks @thebigw4lrus . |
Very good analysis, thank you!
It's the other way round. Taxons are referenced by products and they contain important data. The taxonomy is a group of taxons and not used anywhere. It can be removed, I believe. All the taxon fields relating to the tree structure can also be removed. We may need to keep the position for ordering, I'm not sure.
Yes, this is part of the scope. It can be a complete rewrite and it can be super simple like a standard Rails view to edit the taxon model (index, create, update). Possibly with positioning, not sure. Does this give you a clear path forward? |
It does @mkllnk , starting my engines then 🚀 .. Thanks tons! |
Hi @thebigw4lrus hope everything is fine 🙂 |
I would love to work on this one. |
Great, I assigned you, @wandji20. |
What we should change and why (this is tech debt)
It's providing a tree structure for Spree::Taxon but we don't use the tree structure. I think that the UI is actually not saving it when you try. If we ever wanted a tree structure in the future, it would be better to use ancestry for it's simpler design and better update performance.
There are several related issues that may be resolved at the same time:
jquery.jstree
from the taxonomy page #9677Context
Impact and timeline
No significant impact at the moment. But simplifying code always reduces maintenance and performance.
The text was updated successfully, but these errors were encountered: