saleor / apps

A central space for Saleor Apps, integrations, and the App Store 🚀
https://apps.saleor.io
Other
114 stars 316 forks source link

Search Saleor App wrongly updates Algolia index when updating product in Saleor #1647

Open karolkarolka opened 2 weeks ago

karolkarolka commented 2 weeks ago

While using the Search Saleor App, we encountered issues with Algolia indices.

  1. When updating the products in Saleor that are used as records in indices created by Search App, the product thumbnail fields were updated by a new URLs values and often the URLs had different slug after the product update e.g. "https://fashion.eu.saleor.cloud/thumbnail/UHJvZHVjdE1lZGlhOjMwNDc=/4096/" -> "https://fashion.eu.saleor.cloud/media/thumbnails/products/3cc2e29e71974ad7864079e34752940d_b0b9bc02_thumbnail_256.jpgimwidth1920".
  2. The Algolia thumbnail for each product variant (record in Algolia) has always the same URL linking to the product thumbnail but each record should have its unique thumbnail to determine e.g. the colour variant of the product.
  3. After updating/creating new products in Saleor, some of the index current configuration was reset to the original configuration when using the Search App for the 1st time.