Calling Developers!
We are reenergizing our code contribution process! Learn More

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 Everyone! We have recently discovered potential flaw in our system regarding collector storage&am

Options
U0278GB5KN2
U0278GB5KN2 Posts: 2 🧑🏻‍🚀 - Cadet

Hi Everyone!
We have recently discovered potential flaw in our system regarding collector storage&search export mechanism. We noticed that if we disable our product by deactivating it through Zed->ProductManagement->Communication->Controller->VariantController, it can be still ordered on Yves until collector job removes it from storage. Since that job can take a while until it finishes, we can possibly have a time gap from 1 to few minutes, and in that time customers will see and order products which are not available on Zed, and exception will occur.
Did anyone experience similar issues, and if yes, how did you solve it?
We are thinking between 2 possible solutions:
• Affect on storage and search manually as soon as product is deactivated, so we don’t need to wait for sync to do that for us
• Allow customer to order inactive product (that is still ‘active’ and visible for them on client side), and customize Zed logic when trying to get data of inactive product (that is where we are currently experiencing exception)
Thanks!

Comments

  • U01LKKBK97T
    U01LKKBK97T Posts: 287 🧑🏻‍🚀 - Cadet
    Options

    How about creating a separate Jenkins job which will update stocks every minute?

  • U0278GB5KN2
    U0278GB5KN2 Posts: 2 🧑🏻‍🚀 - Cadet
    Options

    We already have jenkins updating product data, but in our use case it’s more complex, we import json attributes of multiple products at the time, and sync operation that runs every minute can take a while to export all those products data to search and storage.
    I am thinking more in direction of either directly updating storage and search for this case only or allowing customer to order product, no matter it is unavailable on Zed