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

Add AIPs search (#335) #336

Merged
merged 1 commit into from
Aug 8, 2024
Merged

Add AIPs search (#335) #336

merged 1 commit into from
Aug 8, 2024

Conversation

mcantelon
Copy link
Member

@mcantelon mcantelon commented Jul 3, 2024

  • Added text search to AIPs page
  • Cleaned up AIP paging test

@mcantelon mcantelon marked this pull request as draft July 3, 2024 04:35
@mcantelon mcantelon force-pushed the dev/aips-search branch 4 times, most recently from fc15784 to 493d1a4 Compare July 3, 2024 06:27
@mcantelon mcantelon force-pushed the dev/aips-search branch 2 times, most recently from f663885 to 3a802db Compare August 8, 2024 00:44
* Added text search to AIPs page
* Cleaned up aip paging test
@mcantelon mcantelon marked this pull request as ready for review August 8, 2024 01:49
Comment on lines +111 to 115
aips = aips.filter(
AIP.uuid.like(f"%{query}%")
| AIP.transfer_name.like(f"%{query}%")
| AIP.create_date.like(f"%{query}%")
)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This guarantees a full table scan, it won't be very efficient. I guess that's ok for now?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, this is just to get something in place to replace functionality that seemingly once existed (a client had made their own documentation of it with screenshots), yet weirdly doesn't seem to exist in the code (I scoured the commit history and could find any trade). Very weird!

If it's slow for them I might re-implement it with Typesense.

@mcantelon
Copy link
Member Author

Thanks @sevein !

@mcantelon mcantelon merged commit c8592bd into main Aug 8, 2024
6 checks passed
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