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

[Docs] Query performance sidebar #5167

Merged
merged 7 commits into from
Nov 21, 2024
Merged

Conversation

benjaminpkane
Copy link
Contributor

@benjaminpkane benjaminpkane commented Nov 20, 2024

What changes are proposed in this pull request?

Query performance will be the default sidebar mode going forward. This PR updates the main sidebar documentation and imagery to reflect that

  • Consolidates Leveraging indexes while filtering and Query Performance mode sections into a single Optimizing query performance section
  • Removes Sidebar mode section
  • Updates sidebar documentation GIFs

What areas of FiftyOne does this PR affect?

  • App: FiftyOne application changes
  • Build: Build and test infrastructure changes
  • Core: Core fiftyone Python library changes
  • Documentation: FiftyOne documentation changes
  • Other

Summary by CodeRabbit

Release Notes

  • New Features

    • Introduced a new TimelineView for creating custom animations.
    • Added new models to the Model Zoo, including SAM 2.1 and YOLO11.
  • Improvements

    • Enhanced query performance with optimized filtering and sidebar functionality.
    • Streamlined documentation for configuring the app and using datasets.
    • Improved handling of dataset media types and summary fields.
  • Bug Fixes

    • Resolved issues related to overlay z-index, panel overflow, and timeline name forwarding.

@benjaminpkane benjaminpkane added the documentation Documentation work label Nov 20, 2024
Copy link
Contributor

coderabbitai bot commented Nov 20, 2024

Important

Review skipped

Review was skipped due to path filters

⛔ Files ignored due to path filters (1)
  • docs/source/images/app/app-granular.gif is excluded by !**/*.gif, !**/*.gif

CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including **/dist/** will override the default block on the dist directory, by removing the pattern from both the lists.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Walkthrough

The changes in this pull request primarily focus on the FieldLabelAndInfo component, where the QueryPerformance component has been removed, leading to a simplification of the code structure. The internal logic of the FieldLabelAndInfo component has been modified to improve state handling and hover behavior. Additionally, the documentation across several files has been updated to reflect new features, such as enhancements in query performance, configuration options, and dataset usage, ensuring clarity and usability for users.

Changes

File Path Change Summary
app/packages/core/src/components/FieldLabelAndInfo/index.tsx Removed QueryPerformance component; updated props and internal logic of FieldLabelAndInfo; refined hover state handling.
docs/source/release-notes.rst Updated release notes for FiftyOne, detailing new models, bug fixes, and performance improvements.
docs/source/user_guide/app.rst Removed "Leveraging indexes while filtering"; added "Optimizing query performance"; expanded "Sidebar groups".
docs/source/user_guide/config.rst Expanded configuration options with a detailed table; clarified methods for viewing and modifying config.
docs/source/user_guide/using_datasets.rst Removed "Sidebar mode"; updated "Sidebar groups" and "Summary fields" sections for clarity.

Possibly related PRs

Suggested reviewers

  • brimoor
  • minhtuev

🐰 In the fields where data flows,
A label stands, and knowledge grows.
With queries swift and info bright,
We hop along, in pure delight!
So here’s to change, both big and small,
In FiftyOne, we’ll conquer all! 🥕


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?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

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)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Outside diff range and nitpick comments (4)
docs/source/user_guide/app.rst (4)

410-411: Fix typos and redundant words

There are two minor text issues to fix:

  1. "comphrensive" should be "comprehensive"
  2. Remove the duplicate "the" in "the the"
-widgets are shown that include comphrensive counts. Granular filters can be
-toggled for a dataset via the settings "Gear" or the the
+widgets are shown that include comprehensive counts. Granular filters can be
+toggled for a dataset via the settings "Gear" or the

403-407: Consider adding a note about index creation timing

The section explains index usage well but could benefit from emphasizing that creating indexes before adding samples is more efficient.

Consider adding a note like:

+.. note::
+
+    For optimal performance, it's recommended to create indexes before adding samples
+    to your dataset. This avoids the need to rebuild indexes after data insertion.

587-588: Enhance persistence behavior documentation

While the note explains that changes persist between sessions, it would be helpful to clarify where this data is stored and any size limitations.

Consider expanding the note to include storage details:

-    Any changes you make to a dataset's sidebar groups in the App are saved on
-    the dataset and will persist between sessions.
+    Any changes you make to a dataset's sidebar groups in the App are saved in
+    the dataset's metadata in the database and will persist between sessions.
+    These changes are also synchronized across different processes accessing
+    the same dataset.

627-630: Add performance consideration note

For large datasets with many fields, it would be helpful to mention any performance implications of dynamic field assignment.

Consider adding:

    property, these fields will be dynamically assigned to default groups in
-    the App at runtime.
+    the App at runtime. For datasets with a large number of fields, consider
+    explicitly defining sidebar groups to optimize the App's initialization time.
📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL

📥 Commits

Reviewing files that changed from the base of the PR and between 0a0ff31 and 9c4b306.

⛔ Files ignored due to path filters (5)
  • docs/source/images/app/app-field-tooltips.gif is excluded by !**/*.gif, !**/*.gif
  • docs/source/images/app/app-fields.gif is excluded by !**/*.gif, !**/*.gif
  • docs/source/images/app/app-filters.gif is excluded by !**/*.gif, !**/*.gif
  • docs/source/images/app/app-query-performance-mode.gif is excluded by !**/*.gif, !**/*.gif
  • docs/source/images/app/app-sidebar-mode.gif is excluded by !**/*.gif, !**/*.gif
📒 Files selected for processing (5)
  • app/packages/core/src/components/FieldLabelAndInfo/index.tsx (0 hunks)
  • docs/source/release-notes.rst (1 hunks)
  • docs/source/user_guide/app.rst (4 hunks)
  • docs/source/user_guide/config.rst (1 hunks)
  • docs/source/user_guide/using_datasets.rst (2 hunks)
💤 Files with no reviewable changes (1)
  • app/packages/core/src/components/FieldLabelAndInfo/index.tsx
🔇 Additional comments (6)
docs/source/user_guide/config.rst (3)

672-674: LGTM: Clear documentation for default query performance setting.

The documentation clearly explains the default query performance configuration option and appropriately references the detailed section.


675-677: LGTM: Well-documented frame filtering configuration.

The documentation effectively explains the frame filtering disable option and includes a helpful reference to the detailed section.


678-680: LGTM: Clear documentation for query performance toggle.

The documentation clearly explains the query performance toggle configuration and includes an appropriate reference to the detailed section.

docs/source/user_guide/using_datasets.rst (2)

1648-1650: LGTM! Clear performance guidance added.

The added text provides valuable guidance about query performance limitations when working with frame-level fields.


1751-1753: LGTM! Clear explanation of summary field indexing.

The added text effectively explains how summary fields are indexed by default and can be leveraged by the App for performant filtering.

docs/source/release-notes.rst (1)

2228-2230: LGTM! Documentation update clearly explains the performance optimization.

The added text effectively communicates that sidebar filters can leverage indexes for improved performance, and includes a helpful reference link for more details.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Outside diff range and nitpick comments (2)
docs/source/user_guide/app.rst (2)

403-407: Consider adding a note about index creation timing

While the documentation clearly explains how filters use indexes, it would be helpful to add a note that creating indexes after adding data to a collection can be time-consuming for large datasets. This could help users make informed decisions about when to create indexes.

By default, the sidebar filters are optimized to use indexes when no view is
present. Filters that do have an index are highlighted with the lightning bolt
icon. Query performance can be disabled by default via
`default_query_performance` in your
:ref:`App config <configuring-fiftyone-app>`.
+
+.. note::
+
+    Creating indexes after adding data to a collection can be time-consuming
+    for large datasets. For optimal performance, consider declaring indexes
+    before adding samples to your dataset.

569-570: Consider adding performance considerations

While the documentation clearly explains how to customize sidebar groups, it would be helpful to add a note about performance implications when working with large numbers of fields and groups. This could help users make informed decisions about group organization.

You can customize the layout of the App's sidebar by creating/renaming/deleting
groups and dragging fields between groups directly in the App:

.. note::

    Any changes you make to a dataset's sidebar groups in the App are saved on
    the dataset and will persist between sessions.
+
+    For datasets with a large number of fields, consider organizing fields
+    into a moderate number of groups to maintain optimal sidebar performance
+    and usability.

Also applies to: 585-588

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL

📥 Commits

Reviewing files that changed from the base of the PR and between 9c4b306 and 24da287.

📒 Files selected for processing (1)
  • docs/source/user_guide/app.rst (4 hunks)

CamronStaley
CamronStaley previously approved these changes Nov 20, 2024
minhtuev
minhtuev previously approved these changes Nov 20, 2024
@benjaminpkane benjaminpkane dismissed stale reviews from minhtuev and CamronStaley via 47b026a November 21, 2024 15:58
@benjaminpkane benjaminpkane merged commit 69acc3a into release/v1.1.0 Nov 21, 2024
11 checks passed
@benjaminpkane benjaminpkane deleted the docs/qp-sidebar branch November 21, 2024 16:16
This was referenced Dec 2, 2024
@coderabbitai coderabbitai bot mentioned this pull request Dec 19, 2024
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Documentation work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants