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..

This is how we did it: ```docker/sdk console storage:delete docker/sdk console elasticsearch:index:d

U01LKKBK97T
U01LKKBK97T Posts: 287 πŸ§‘πŸ»β€πŸš€ - Cadet

This is how we did it:

docker/sdk console storage:delete
docker/sdk console elasticsearch:index:delete
docker/sdk console search:setup:sources
docker/sdk console publish:trigger-events

Redis and Search are being populated again, but suddenly prices are missing. Data in db is unchanged, so it's still all there.
Are we missing something?

Comments

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

    publish:trigger-events fills *_storage and *_search tables with data.
    Check if needed info is present there.
    If yes, please check RabbitMQ if there are any messages in errors queues.

  • U01LKKBK97T
    U01LKKBK97T Posts: 287 πŸ§‘πŸ»β€πŸš€ - Cadet

    Table data is there. I'll check for publish errors.

  • U01LKKBK97T
    U01LKKBK97T Posts: 287 πŸ§‘πŸ»β€πŸš€ - Cadet

    No publish errors in RabbitMQ. Prices are still missing.

  • U01LKKBK97T
    U01LKKBK97T Posts: 287 πŸ§‘πŸ»β€πŸš€ - Cadet

    I just picked an abstract product and debugged the retrieval of search result in CatalogController. The one that is displayed with price in frontend is exactly the same as the one with missing price.
    Is there some sort of cache that we missed out?

  • U01LE4BMBK7
    U01LE4BMBK7 Posts: 241 πŸ§‘πŸ»β€πŸš€ - Cadet

    it was a permission problem

  • U01LKKBK97T
    U01LKKBK97T Posts: 287 πŸ§‘πŸ»β€πŸš€ - Cadet

    We're one step further. Product and price data is available in redis and search, but the namespace kv:unauthenticated_customer_access doesn't get recreated in redis. Any idea how to fix this?
    Tried docker/sdk console sync:data unauthenticated_customer_access, but it didn't help.

  • U01LE4BMBK7
    U01LE4BMBK7 Posts: 241 πŸ§‘πŸ»β€πŸš€ - Cadet

    the check {% if can('SeePricePermissionPlugin') %} in src/Pyz/Yves/ShopUi/Theme/default/components/molecules/product-item/product-item.twig failed

  • U01BV4LNUKZ
    U01BV4LNUKZ Posts: 9 πŸ§‘πŸ»β€πŸš€ - Cadet

    you may try to go to zed /customer-access-gui and click "Save"

  • U01LKKBK97T
    U01LKKBK97T Posts: 287 πŸ§‘πŸ»β€πŸš€ - Cadet

    That works, but only if I change the settings. If I leave them as is and click Save, it won't republish anything.
    Apart from that I'm looking for a command, not for a manual solution.