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 all, on our system the product-list feature is quite bugged. • Blacklists are not working at all

ULL0N440J
ULL0N440J Posts: 184 🧑🏻‍🚀 - Cadet

Hi all,
on our system the product-list feature is quite bugged.
• Blacklists are not working at all (you can see everything)
• Whitelists are hiding everything (no matter what you selected)
Anyone faced this before? Have the module spryker/product-list installed in version 1.5.4.
Any ideas?

Comments

  • rshopin
    rshopin Senior Solution Architect Sprykee Posts: 32 🧑🏻‍🚀 - Cadet

    Can you share more information? Maybe share elasticSearch query

  • ULL0N440J
    ULL0N440J Posts: 184 🧑🏻‍🚀 - Cadet

    @UKFTWTVJB I only changed the query to sort products by their category (warranty, extras and licenses are least relevant for example..).

    Which information do you need on this?

  • rshopin
    rshopin Senior Solution Architect Sprykee Posts: 32 🧑🏻‍🚀 - Cadet

    filters section

  • rshopin
    rshopin Senior Solution Architect Sprykee Posts: 32 🧑🏻‍🚀 - Cadet

    And can you check if product lists info was exported to ES? All queues was processed?

  • rshopin
    rshopin Senior Solution Architect Sprykee Posts: 32 🧑🏻‍🚀 - Cadet

    And one more importand thing, after you assigned some lists to customer, changes will be applied during the next customer login

  • ULL0N440J
    ULL0N440J Posts: 184 🧑🏻‍🚀 - Cadet
    edited January 2020

    Queues are probably processed properly. Seems to work (works already, but not applied correctly). I already found out the need of the logout/ login.

    Will have a closer look at ES, will keep you updated
    Thank you so far :simple_smile:

  • ULL0N440J
    ULL0N440J Posts: 184 🧑🏻‍🚀 - Cadet
    edited January 2020

    Do you have any tips on how to inspect ES? (Looking for the query)

  • rshopin
    rshopin Senior Solution Architect Sprykee Posts: 32 🧑🏻‍🚀 - Cadet

    \Spryker\Client\Search\Model\Handler\ElasticsearchSearchHandler::search

        public function search(QueryInterface $searchQuery, array $resultFormatters = [], array $requestParameters = [])
        {
            /** @var \Elastica\Query $query */
            $query = $searchQuery->getSearchQuery();
    
            $rawQuery = json_encode($query->toArray(), true);
            dd($rawQuery);
            $rawSearchResult = $this->executeQuery($query);
    
            if (!$resultFormatters) {
                return $rawSearchResult;
            }
    
            return $this->formatSearchResults($resultFormatters, $rawSearchResult, $requestParameters);
        } 
    

    Or use xdebug

  • ULL0N440J
    ULL0N440J Posts: 184 🧑🏻‍🚀 - Cadet

    seems fine to me. Should I see blacklists stored in ES too? Or should this be part of the query itself?

  • ULL0N440J
    ULL0N440J Posts: 184 🧑🏻‍🚀 - Cadet
    edited January 2020

    These two are the only collections I got in ES. Have to correct my statement, too: there is no action at all upon adding a new product-list in RMQ.
    I suppose the key "product-lists.blacklists" is required in ES

  • ULL0N440J
    ULL0N440J Posts: 184 🧑🏻‍🚀 - Cadet
    edited January 2020

    So.. Found the column "product_list" - it stays empty.. seems like there's no sync between Zed and ES at this point..

    Checked it in comparision to this tutorial: https://documentation.spryker.com/v2/docs/product-lists-feature-integration-201903