You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A lot of these problems are caused by incorrectly creating Taxons via code rather than using the admin page, but some simple validations could prevent these issues.
Solidus Version:
all/master
Issues
A Taxonomy should have one root Taxon, but still multiple Taxon's can be created with a parent_id of nil.
You can make "duplicate" Taxons, i.e. Taxons that have the same name and parent.
These both can be fixed with simple validation.
If you have taxons with the same lft and rgt attributes, deleting one, deletes all of them. I am not really sure how this occurred on the project I am working on, but just wanted to share, while I figure out the cause.
I am working on a PR for the first and second issues
The text was updated successfully, but these errors were encountered:
A lot of these problems are caused by incorrectly creating Taxons via code rather than using the admin page, but some simple validations could prevent these issues.
Solidus Version:
all/master
Issues
A Taxonomy should have one root Taxon, but still multiple Taxon's can be created with a
parent_id
ofnil
.solidus/core/app/models/spree/taxonomy.rb
Line 10 in 2b79f72
You can make "duplicate" Taxons, i.e. Taxons that have the same
name
and parent.These both can be fixed with simple validation.
If you have taxons with the same
lft
andrgt
attributes, deleting one, deletes all of them. I am not really sure how this occurred on the project I am working on, but just wanted to share, while I figure out the cause.I am working on a PR for the first and second issues
The text was updated successfully, but these errors were encountered: