voxel51 / fiftyone

The open-source tool for building high-quality datasets and computer vision models
https://fiftyone.ai
Apache License 2.0
7.93k stars 521 forks source link

Merge release/v0.24.0 #4390

Closed benjaminpkane closed 2 months ago

benjaminpkane commented 2 months ago

What changes are proposed in this pull request?

Merge release/v0.24.0 into develop

Summary by CodeRabbit

coderabbitai[bot] commented 2 months ago

Walkthrough

The updates encompass a wide array of enhancements and fixes across multiple components of the project. Key changes include modifications in the useRefresh function for better state handling, UI adjustments in various components, improvements to 3D media handling, and updates to documentation and test cases. Additionally, there are significant updates to the COCO utilities and the introduction of new methods to enhance functionality and performance.

Changes

File(s) Change Summary
app/packages/app/src/useEvents/useRefresh.ts Updated useRefresh function to handle state processing, URL resolution, and subscriptions before reloading the page.
app/packages/core/src/components/ImageContainerHeader.tsx Adjusted SliderContainer style width and padding.
app/packages/core/src/components/ViewBar/ViewBar.tsx Added top: 2px; style property to IconsContainer component.
app/packages/looker-3d/src/fo3d/Leva.tsx Added attributes to levaContainer and levaContainerHeader elements.
app/packages/looker-3d/src/fo3d/MediaTypeFo3d.tsx Updated canvasCameraProps function to handle cameraProps differently.
app/packages/operators/src/built-in-operators.ts Added LOAD_WORKSPACE_OPERATOR import and modified SetSpaces class execute method.
app/packages/spaces/src/components/Workspaces/index.tsx Changed padding-right (pr) value in Workspaces component.
docs/source/plugins/index.rst Refined plugin descriptions and introduced new plugin @voxel51/runs.
docs/source/user_guide/export_datasets.rst Updated documentation to include classes and categories parameters for export() method.
docs/source/integrations/huggingface.rst Updated dataset URL from scene_parse150 to scene_parse_150.
e2e-pw/src/oss/poms/fo3d/assets-panel/index.ts Introduced Asset3dPanelPom class with dragToToLeftCorner method.
e2e-pw/src/oss/specs/groups/modal-multi-pcd.spec.ts Modified setup of PCD paths, dataset creation, and sample addition logic.
fiftyone/core/fields.py Adjusted handling of timezones during UTC conversion for dates.
fiftyone/core/odm/database.py Modified get_async_db_conn function to check if timezone is falsy.
fiftyone/core/threed/lights.py Added name parameter to Light class and its subclasses.
fiftyone/core/threed/scene_3d.py Added update_asset_paths method to Scene3D class.
fiftyone/operators/builtin.py Modified execute method to use set_spaces method from ctx.ops.
fiftyone/operators/operations.py Added set_spaces method to class.
fiftyone/server/decorators.py Added custom JSON encoding for NumPy types and create_response function.
fiftyone/utils/coco.py Updated COCO utilities to handle classes_map and categories parameters.
fiftyone/utils/data/exporters.py Added input_to_output_paths dictionary for mapping asset paths.
fiftyone/utils/tracking/deepsort.py Refactored track method and added track_sample method in DeepSort class.
fiftyone/zoo/datasets/__init__.py Modified logic to set dataset.default_classes based on info.classes.
docs/source/teams/roles_and_permissions.rst Corrected typo for clarity in discussing user security.
tests/unittests/dataset_tests.py Introduced changes for manipulating system time within a test case.
tests/unittests/import_export_tests.py Added imports and new test cases for media export functionality.
tests/unittests/server_decorators_tests.py Introduced tests for NumPy responses using Server decorators.

🐇 In the realm of code, where changes bloom, Functions evolve, dispelling gloom. From states refreshed to lights that gleam, A coder's dream, a rabbit's scheme. With tests and docs, we pave the way, For brighter bytes, a better day. 🐇


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 - [X](https://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai) - [Mastodon](https://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai) - [Reddit](https://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai) - [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code)
Tips ### Chat There are 3 ways to chat with [CodeRabbit](https://coderabbit.ai): - Review comments: Directly reply to a review comment made by CodeRabbit. Example: - `I pushed a fix in commit .` - `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 generate interesting stats about this repository and render them as a table.` - `@coderabbitai show all the console.log statements in this repository.` - `@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.` 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 as PR comments) - `@coderabbitai pause` to pause the reviews on a PR. - `@coderabbitai resume` to resume the paused reviews. - `@coderabbitai review` to trigger a review. This is useful when automatic reviews are disabled for the repository. - `@coderabbitai resolve` resolve all the CodeRabbit review comments. - `@coderabbitai help` to get help. Additionally, you can add `@coderabbitai ignore` anywhere in the PR description to prevent this PR from being reviewed. ### CodeRabbit Configration File (`.coderabbit.yaml`) - You can programmatically configure CodeRabbit by adding a `.coderabbit.yaml` file to the root of your repository. - Please see the [configuration documentation](https://docs.coderabbit.ai/guides/configure-coderabbit) for more information. - If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: `# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json` ### Documentation and Community - Visit our [Documentation](https://coderabbit.ai/docs) for detailed information on how to use CodeRabbit. - Join our [Discord Community](https://discord.com/invite/GsXnASn26c) to get help, request features, and share feedback. - Follow us on [X/Twitter](https://twitter.com/coderabbitai) for updates and announcements.
codecov[bot] commented 2 months ago

Codecov Report

Attention: Patch coverage is 0% with 50 lines in your changes are missing coverage. Please review.

Project coverage is 16.00%. Comparing base (2753171) to head (efebf95). Report is 40 commits behind head on develop.

:exclamation: Current head efebf95 differs from pull request most recent head d1b48f2

Please upload reports for the commit d1b48f2 to get more accurate results.

Files Patch % Lines
app/packages/app/src/useEvents/useRefresh.ts 0.00% 32 Missing :warning:
app/packages/operators/src/built-in-operators.ts 0.00% 9 Missing :warning:
app/packages/looker-3d/src/fo3d/Leva.tsx 0.00% 5 Missing :warning:
...kages/core/src/components/ImageContainerHeader.tsx 0.00% 2 Missing :warning:
...p/packages/core/src/components/ViewBar/ViewBar.tsx 0.00% 1 Missing :warning:
...ackages/spaces/src/components/Workspaces/index.tsx 0.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## develop #4390 +/- ## =========================================== - Coverage 16.02% 16.00% -0.03% =========================================== Files 804 807 +3 Lines 89221 89383 +162 Branches 1340 1342 +2 =========================================== + Hits 14300 14308 +8 - Misses 74921 75075 +154 ``` | [Flag](https://app.codecov.io/gh/voxel51/fiftyone/pull/4390/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=voxel51) | Coverage Δ | | |---|---|---| | [app](https://app.codecov.io/gh/voxel51/fiftyone/pull/4390/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=voxel51) | `16.00% <0.00%> (-0.03%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=voxel51#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.