VirtoCommerce / vc-platform

Virto Commerce B2B Innovation Platform
https://virtocommerce.com
Other
1.23k stars 845 forks source link

In customer module, newly created user does not appear in Accounts widget on customer blade #1091

Open asvishnyakov opened 7 years ago

asvishnyakov commented 7 years ago

Version info:

Expected behavior

When you create user for contact/employee in Customer module, user must appear in Accounts widget after creation, customer model must be invalidated and Save button enabled.

Actual behavior

Newly created user does not appear in Accounts widget.

Steps to reproduce

  1. Go to Contacts tab in menu
  2. Create new contact or employee
  3. Go to Accounts widget and click Add
  4. Add new user to newly created customer
  5. Click to Create

New blade for newly created user appear, but user does not appear in Accounts widget and customer model is not invalidated.

asvishnyakov commented 7 years ago

Research result: The reason is why member has outdated list of security accounts is cache. When we create new security account, we have MemberId, but we not invalidate this member.

asvishnyakov commented 7 years ago

@tatarincev Make review on PR, please

tatarincev commented 7 years ago

Could we postpone this PR, because we have other promising cache invalidation technology based on event consistency?

asvishnyakov commented 7 years ago

@tatarincev Depend on when we can implement this new technology. I prefer to merge PR, because otherwise members data is inconsistent: you may have situation, when there is no member with this specified user, but you can't register user with the same name, because it's already exist. UPD. But if we may implement this new cache invalidation very soon, may be we must postone. Because as I can see, there is no customers for which this problem appear.

asvishnyakov commented 6 years ago

@tatarincev Update status, please, possible resolved