-
Notifications
You must be signed in to change notification settings - Fork 133
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
Entities search #2643
Entities search #2643
Conversation
519840f
to
42a08dc
Compare
@kelvin-muchiri this is working as expected |
if search: | ||
queryset = queryset.filter(Q(json__iregex=search) | Q(uuid=search)) | ||
|
||
queryset = queryset.order_by("id") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the order by
necessary? Is it likely to be a performance bottleneck?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ukanga Even if we choose not to order by default but it will still be required if pagination is applied
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kelvin-muchiri we fetch this data paginated
Changes / Features implemented
Add search filter support for Entities
Steps taken to verify this change does what is intended
Before submitting this PR for review, please make sure you have: