-
Notifications
You must be signed in to change notification settings - Fork 590
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
ObjectId Sidebar Filter Fixes #5415
base: develop
Are you sure you want to change the base?
Conversation
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
@@ -423,6 +425,23 @@ async def _do_distinct_pipeline( | |||
return values | |||
|
|||
|
|||
def _add_search(query: DistinctQuery): | |||
# strip chars after 24 |
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.
Does this mean sidebar only filters by first 24 chars? So long file path filters could potentially not include the file name?
What's the purpose of limiting to the first 24
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.
Good comment. I refactored this incorrectly. It should only apply to ObjectId fields
I think I will add frontend validation to omit these queries completely. That is a more holistic approach.
An object id is always a 24 char hexadecimal string. The search results can be omitted when the search does not comply
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.
I will undraft when I'm happy with the solution
What changes are proposed in this pull request?
Allow invalid ObjectId searches
Allow > 24 hexadecimal character searches
Allow non-hexadecimal character searches
Fixes cursor matching for id fields in embedded lists, e.g.
ground_truth.detections.id
How is this patch tested? If it is not, please explain why.
GraphQL tests
Release Notes
What areas of FiftyOne does this PR affect?
fiftyone
Python library changes