Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(#392): Cannot fetch bodies for multiple entities from multiple collections #394

Merged
merged 3 commits into from
Jan 3, 2024

Conversation

novoj
Copy link
Collaborator

@novoj novoj commented Jan 3, 2024

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.

lukashornych and others added 3 commits January 2, 2024 17:31
…re each entity is from different entity collection
…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.
@novoj novoj merged commit d7f37e1 into dev Jan 3, 2024
1 check passed
@novoj novoj deleted the bugfix-392-multiple-entities-body-error branch January 3, 2024 08:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants