Closed
Description
Precondition
Use GET to submit GraphQL query in order for query result to be cached. see GraphQL Caching
Steps to reproduce
- Create at least 2 products
- Create category and assign products created in step.1 and save category
- Execute the query below
- Check that products are ordered correctly
- Change products positions in the category and save changes
- Execute the query below
Query
query getProducts {
products(
filter: {
category_id:
{ eq: "<category ID>" }
}
sort:
{position:ASC}
)
{
total_count
items {
name
sku
}
page_info {
page_size
current_page
}
}
}
(x) Actual result
Products positions are not updated.
(/) Expected result
Products positions are updated.
(i) Notice
This issue is reproducible only if GraphQL query result is cached. the cache is not invalidated when products positions changed within a category. However this works with regular category page (PLP).