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(openchallenges): correct the function name to trigger full text search on filters #2760

Merged
merged 4 commits into from
Aug 19, 2024

Conversation

rrchai
Copy link
Contributor

@rrchai rrchai commented Aug 16, 2024

The cause of the bug was using the wrong function name to trigger the full-text search on the corresponding filter.

Preview

Recording 2024-08-16 at 12 44 53

Copy link

@rrchai rrchai marked this pull request as ready for review August 16, 2024 17:39
Copy link
Member

@tschaffter tschaffter left a comment

Choose a reason for hiding this comment

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

The fix works but I noticed that there may be a race condition that leads the list to include incorrect results.

Screencast 1: a result with the term "SA" is left in the list of results after updating the search terms "sa" to "sage".

Recording 2024-08-16 at 13 37 24

Screencast 2: the results seem to show all the organization as if no search terms was provided, or as if the search for "sage" for ignored or overwritten.

Recording 2024-08-16 at 13 38 48

Screencast 3:

Recording 2024-08-16 at 13 40 36

@rrchai Is a race condition possible based on your knowledge of the implementation? If there's an easy fix we could package it with this PR. Otherwise, this PR contributes to increasing the quality of OC so I'm OK shipping it as is.

@tschaffter
Copy link
Member

Merging this PR despite the race condition issue because it significantly reduces the impact of the original bug.

@rrchai Please create a new ticket for the race condition issue I described above.

@tschaffter tschaffter merged commit 7c62aed into Sage-Bionetworks:main Aug 19, 2024
8 of 9 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.

[Bug] Full-text search for platforms and orgs does not work on the challenge search page
2 participants