Skip to content

Commit

Permalink
fix(#392): Cannot fetch bodies for multiple entities from multiple co…
Browse files Browse the repository at this point in the history
…llections

When using multiple globally unique identifiers in single query to fetch entities where each entity is from different collection AND entity body is wanted, like so:
```
query(
  filterBy(
    attributeInSet("url", "/en/macbook-pro-13-2022", "/en/cell-phones"),
    entityLocaleEquals("en")
  ),
  require(
    entityFetch(
      attributeContent("code")
    )
  )
)
```
evitaDB returns error
```
Entity `Product` with primary key `63049` cannot be enriched because it has been already removed.
```
If both URLs would target the same collection, both entities would be returned with their bodies as expected.
  • Loading branch information
novoj committed Jan 3, 2024
1 parent 8447d07 commit bbe933e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2858,7 +2858,8 @@ void shouldReturnEntitiesFromDifferentCollectionsByEqualsToGlobalLocalizedAttrib
require(
page(1, 1),
entityFetch(
attributeContent(ATTRIBUTE_URL)
attributeContent(ATTRIBUTE_URL),
dataInLocales(Locale.ENGLISH)
)
)
)
Expand Down

0 comments on commit bbe933e

Please sign in to comment.