Skip to content

Guid fields do not send back an empty list when no matching guid exists #150

@pdevito3

Description

@pdevito3

Describe the bug
When doing a filter like GuidField == 08009a84-f343-b4c5-5577-a56a23588f9d when the value exists works as expected and filters the list down to just that value, but when the value doesn't exist, it returns a full unfiltered list instead of an empty list like it usually would for a non-guid field.

To Reproduce
Steps to reproduce the behavior:

  1. Create an entity with a guid property and add the sieve filter attribute to it (e.g. id)
  2. pass a filter to your endpoint of id == 08009a84-f343-b4c5-5577-a56a23588f9d where the guid value does not exist in the dataset

Expected behavior
I would expect an empty list [] to show up like we usually see with other data types, but we get a full unfiltered list of records

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS] Windows 10
  • Browser [e.g. chrome, safari] any most recent browser
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions