Feat: Add Advanced Formula-Based Search to Friend Feed#1745
Open
rnmmr wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Explain in detail what your suggested feature would be used for.
This pull request adds support for advanced formula-based search to the Friend Feed, enabling users to execute powerful and flexible queries using a formula syntax (e.g.,
=name=Alice & type=GPS). The change is adapted from rnmmr@986d547 and includes:src/shared/utils/feedSearchFormula.js) with comprehensive unit testsusr_xxxprefix to search all feed records for a specific user=prefix; native keyword search remains fully functionalDescribe how it would look if it requires a UI.
=) and provides error feedbackExplain why people would want to use it.
Usage Examples:
=name=Alice & type=GPS- Search GPS updates for Alice=time>2024/04 & type!=Offline- Search non-offline events in April=name=[Alice,Bob,Charlie]- Search records for multiple users=world="Test World" & time=2024/04/01~2024/04/30- Search records in specific world and date range=type!=GPS- Exclude GPS type records