If the migration source contains votes with different entity_types (eg. node and comment), only one of the types will get cache rebuilt.

Reproduce:
1. Create migration with votes for comments and nodes
2. Migrate
3. Check votingapi_cache table

Expected:
entries for both entity_types

Actual:
entries for only one of comments or nodes

Comments

spyrkob’s picture

Status: Active » Needs review
StatusFileSize
new609 bytes

Attached is possible patch - it changes postImport function to apply array_unique per each entity_type not on all importedIds.

mikeryan’s picture

Status: Needs review » Fixed

Committed, thanks.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.