Skip to content
This repository has been archived by the owner on Mar 31, 2022. It is now read-only.

Change Tracker: changes of embedded value of reference entity are not properly tracked #73

Closed
Gavrilov-Ivan opened this issue Jul 14, 2021 · 1 comment
Assignees
Labels
type: bug Something isn't working
Milestone

Comments

@Gavrilov-Ivan
Copy link
Contributor

Gavrilov-Ivan commented Jul 14, 2021

Changes of embedded values are not provided by EntityChangedEvent. This leads to inability to find dependent entities to reindex.
See jmix-framework/jmix#211

Testing:

  1. Create 2 entities with one-to-many association between them (root -> reference)
  2. Reference entity should have embedded property
  3. Create index definition for root entity what includes embedded property of reference entity
  4. Create instances of root end reference entity (with filled embedded values). Link instances.
  5. Process indexing queue
  6. Make sure ES index contains document for created root entity
  7. Update some embedded value in reference entity
  8. Process indexing queue
  9. Make sure ES document has been updated
@Gavrilov-Ivan Gavrilov-Ivan added the type: bug Something isn't working label Jul 14, 2021
@Gavrilov-Ivan Gavrilov-Ivan added this to the 1.1.0 milestone Jul 14, 2021
Gavrilov-Ivan added a commit that referenced this issue Oct 20, 2021
Gavrilov-Ivan added a commit that referenced this issue Oct 20, 2021
… properly tracked (release 1.1) #73

(cherry picked from commit 51f1458)
@maistrenkoIulia
Copy link

verified

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants