vc-platform icon indicating copy to clipboard operation
vc-platform copied to clipboard

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

Open asvishnyakov opened this issue 7 years ago • 5 comments

Version info:

  • Browser version: Chrome 59
  • Platform version: 2.13.11/2.13.12
  • Module version: 2.14.2

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 avatar Jul 27 '17 14:07 asvishnyakov

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 avatar Jul 28 '17 11:07 asvishnyakov

@tatarincev Make review on PR, please

asvishnyakov avatar Aug 24 '17 12:08 asvishnyakov

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

tatarincev avatar Aug 24 '17 15:08 tatarincev

@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 avatar Aug 24 '17 15:08 asvishnyakov

@tatarincev Update status, please, possible resolved

asvishnyakov avatar Oct 04 '18 13:10 asvishnyakov