Skip to content

Orders page > All Open Orders grid content cache #125

@borisde

Description

@borisde

Summary
Doctrine caches All Open Orders grid content and doesn't update it after Administrator role is assigned.

Steps to reproduce
This issue can be reproduced on https://demo.orocommerce.com

  1. Create two Customer Users with Buyer roles - Buyer1(Branda Sanborn) and Buyer2(Amanda Cole)
  2. Login to the frontstore under Buyer1, go to the Orders page (customer/order/). ALL OPEN ORDERS grid is empty.
    1
  3. Login to the frontstore under Buyer2, add product to Shopping cart, proceed to Checkout. Don't place the order.
    2
  4. Go to Admin panel, assign an Administrator role to Buyer1.
    3
  5. Login to the frontstore under Buyer1, go to the Orders page. As Administrator, I expect here to see Buyer2 open orders, but grid is empty.
  6. Stay logged-in as Buyer1, add product to Shopping cart, proceed to Checkout. Don't place the order. Return to the Orders page. ALL OPEN ORDERS grid contains all Customer Users checkouts now.
    4
  7. Delete you own Checkout, grid will be updated, and become empty again.
    6

Actual Result
Manual deleting of doctrine query cache solves this issue, but cache is not updated automatically when new roles is assigned.

Details about your environment
OroCommerce, B2B, versions 3, 4

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions