Giter Club home page Giter Club logo

Comments (10)

chuckyuee avatar chuckyuee commented on June 2, 2024 2

It's awesome! Has been successfully updated to the latest version.

from spree.

damianlegawiec avatar damianlegawiec commented on June 2, 2024

Thanks for reporting, I see this DB migration is to blame:

add_index :spree_taxon_translations, [:locale, :permalink], unique: true, name: 'unique_permalink_per_locale', if_not_exists: true

this should be a combined index onpermalink, locale, parent_idandtaxonomy_id`

from spree.

pkatek avatar pkatek commented on June 2, 2024

We are creating a shop for a client and there is a big problem with taxonomies.
We have a product store and there are products intended for the Slovak market, others for the Czech market and still others for the German market, and there are common products. Now, if we want to separate products using stores, we must have separate taxa, although they are already assigned and I do not see the need to separate them, and if I change/add new ones or items only for the German language, the names of the taxa are not visible in the rest of the products and this can be standardized. Is it possible to quickly fix this error? I wouldn't want the client to change the platform or wonder why there is a loophole in this topic.

Do you have another idea to solve the problem mentioned in this thread?

from spree.

pkatek avatar pkatek commented on June 2, 2024

@damianlegawiec I am definitely in favor of taxonomies being applied to all stores. Then the products will not show errors or holes in their names after changing the store.

from spree.

chuckyuee avatar chuckyuee commented on June 2, 2024

Thanks for reporting, I see this DB migration is to blame:

add_index :spree_taxon_translations, [:locale, :permalink], unique: true, name: 'unique_permalink_per_locale', if_not_exists: true

this should be a combined index onpermalink, locale, parent_idandtaxonomy_id`

@damianlegawiec and @rafalcymerys parent_id and taxonomy_id not in table spree_taxon_translations. This table only store for mobility's translate column content. Can I remove these unique constraint?

table: spree_product_translations

  • REMOVE unique_slug_per_locale

table: spree_taxon_translations

  • REMOVE unique_permalink_per_locale

table: spree_taxons

  • REMOVE index_spree_taxons_on_name_and_parent_id_and_taxonomy_id
  • REMOVE index_spree_taxons_on_permalink_and_parent_id_and_taxonomy_id

table: spree_products

  • REMOVE index_spree_products_on_slug

from spree.

pkatek avatar pkatek commented on June 2, 2024

Please, do it xD i need this for my Client.

from spree.

pkatek avatar pkatek commented on June 2, 2024

@damianlegawiec What are the possibilities for a fix to be released soon?

from spree.

damianlegawiec avatar damianlegawiec commented on June 2, 2024

@pkatek

@damianlegawiec What are the possibilities for a fix to be released soon?

we're planning to fix this with v4.8 releasing this week/early next week, we're also reviewing other translation migrations

from spree.

chuckyuee avatar chuckyuee commented on June 2, 2024

@damianlegawiec Thanks

from spree.

pkatek avatar pkatek commented on June 2, 2024

Hello!

What are our chances of completing this task?

from spree.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.