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

Missing entityLocaleEquals constraint exception should be thrown, but it is not #315

Closed
novoj opened this issue Nov 7, 2023 · 1 comment · Fixed by #358
Closed

Missing entityLocaleEquals constraint exception should be thrown, but it is not #315

novoj opened this issue Nov 7, 2023 · 1 comment · Fixed by #358
Assignees
Labels
bug Something isn't working
Milestone

Comments

@novoj
Copy link
Collaborator

novoj commented Nov 7, 2023

The query:

query(
  collection('Product'),
  filterBy(
    attributeEquals('status', 'ACTIVE'),
    userFilter(
      facetHaving(
        'groups',
        entityHaving(
          attributeEquals('code', 'sale')
        )
      )
    )
  ),
  require(
    facetSummary(
      COUNTS,      
      entityFetch(
        attributeContent('name')      
      ),
      entityGroupFetch(
        attributeContent('name')      
      )
    )
  )
)

Should return an error - we require localized name in facet summary, yet we don't specify any in the filtering part.

@novoj novoj added the bug Something isn't working label Nov 7, 2023
@novoj novoj added this to the Alpha milestone Nov 7, 2023
@novoj novoj self-assigned this Nov 7, 2023
@novoj novoj linked a pull request Dec 4, 2023 that will close this issue
@novoj
Copy link
Collaborator Author

novoj commented Dec 4, 2023

Fixed in branch #316

@novoj novoj closed this as completed Dec 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant