What are the Slack Archives?

It’s a history of our time together in the Slack Community! There’s a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.

Because this space is not active, you won’t be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..

Hi Spryker Community! I am trying to resolve a bug, but I am unable to find which function is storin

U03EDGXUTPH
U03EDGXUTPH Posts: 36 🧑🏻‍🚀 - Cadet
edited June 2022 in Help

Hi Spryker Community! I am trying to resolve a bug, but I am unable to find which function is storing the data in persistence/redis storage (Having an issue with the order the category breadcrumbs are displayed in).

In this example, it should list Alcoholic Beverages > Wine > Red Wine, but I get Alcoholic Beverages > Red Wine > Wine

I understand it is being stored into Redis via queuing, but I can’t get my debugger to break when the actual field data is being generated. Everywhere else the category order is respected (navigation menu, category listings, filters…), It is only in the product page breadcrumbs that it appears in this wrong order. If I manually change the order in the Redis chache, I get the right result.

¿How can I find where is this particular data being generated and intervene?

Redis key kv:product_abstract_category:en_GB:123:


Comments

  • giovanni.piemontese
    giovanni.piemontese Technical Lead @ Löffelhardt Spryker Solution Partner Posts: 871 🧑🏻‍🚀 - Cadet

    what category is the product assigned to?

    Are you sure that node_id 128 has node_id 2 as its parent? just based on the ids it looks right to me. That is, to me it looks like 2 -> 7 -> 128.

  • U03EDGXUTPH
    U03EDGXUTPH Posts: 36 🧑🏻‍🚀 - Cadet

    Yeah, 128's parent is 2, and 7's parent is 128. The Wine category was added after the fact (we only had a 2 depth at the beginning).

  • U03EDGXUTPH
    U03EDGXUTPH Posts: 36 🧑🏻‍🚀 - Cadet

    And product 123 is in product category 7, as you can see from spy_product_category. My guess is that the product category is being ordered by id, not parents and depth, I wanted to see where and how was the data in redis generated.

  • Valerii Trots
    Valerii Trots SRE @ Spryker Sprykee Posts: 1,654 ✨ - Novice
    edited June 2022

    We have similar or same issue to be fixed in our backlog.

    Steps to Reproduce
    Open <https://www.de.b2b.demo-spryker.com/en/rechtecktisch-vierkantrohr-1600-x-800-mm-M719>
    
    Actual Behavior
    Breadcrumbs are “Home->Office furniture->Conference Tables->Tables”.
    
    Expected Behavior
    Breadcrumbs should be “Home->Office furniture->Tables->Conference Tables”.
    

    It's circling in CR.
    Last interaction from today, so it's not abandoned.

  • U03EDGXUTPH
    U03EDGXUTPH Posts: 36 🧑🏻‍🚀 - Cadet

    ah, okey, so i’m not alone 🙂 I did try with the docker image and it seems to be working properly though.

  • Valerii Trots
    Valerii Trots SRE @ Spryker Sprykee Posts: 1,654 ✨ - Novice
  • U039B0RUXMF
    U039B0RUXMF Posts: 39 🧑🏻‍🚀 - Cadet

    Ordering is correct now, but we have a problem where the 'Home' link is pointing not to home page, but to current page 🤔