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 documentation error #4963

Merged
merged 1 commit into from
Oct 22, 2024
Merged

Fix documentation error #4963

merged 1 commit into from
Oct 22, 2024

Conversation

orvisevans
Copy link
Contributor

@orvisevans orvisevans commented Oct 22, 2024

What changes are proposed in this pull request?

A single-character change to documentation to make a "decrement" function subtract instead of add.

How is this patch tested? If it is not, please explain why.

No tests required.

Release Notes

Is this a user-facing change that should be mentioned in the release notes?

  • No. You can skip the rest of this section.
  • Yes. Give a description of this change to be included in the release
    notes for FiftyOne users.

(Details in 1-2 sentences. You can just refer to another PR with a description
if this PR is part of a larger change.)

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

  • Documentation
    • Restructured and enhanced the guide on developing plugins for the FiftyOne platform.
    • Expanded sections on plugin types, panels, operators, and components with examples and detailed descriptions.
    • Clarified development setup instructions for Python and JavaScript plugins.
    • Introduced new sections on the anatomy of a plugin, publishing plugins, and advanced usage.
    • Added quick examples and common patterns to assist developers in plugin creation.

Copy link
Contributor

coderabbitai bot commented Oct 22, 2024

Walkthrough

The pull request introduces significant enhancements to the developing_plugins.rst document, providing a comprehensive guide for developing plugins for the FiftyOne platform. Key updates include an expanded introduction, clarified design overview, detailed categorization of plugin types, and enriched sections on panels, operators, and components. Additionally, the document now includes setup instructions, a new section on the anatomy of a plugin, detailed requirements for the fiftyone.yml file, and guidelines for publishing plugins. New examples and advanced usage sections have also been added to support developers.

Changes

File Path Change Summary
docs/source/plugins/developing_plugins.rst Restructured and enhanced content including introduction, design overview, plugin types, panels, operators, components, development setup, anatomy of a plugin, fiftyone.yml requirements, publishing plugins, examples, and advanced usage.

Possibly related PRs

  • link to hello world js plugin #4952: This PR directly modifies the developing_plugins.rst file, which is the same document that the main PR enhances, focusing on plugin development for the FiftyOne platform.

Suggested reviewers

  • ritch

🐰 In the garden of code, we hop and play,
With plugins to build, brightening the day.
From panels to operators, all in a row,
Crafting with joy, watch our projects grow!
So gather your tools, let’s start the fun,
In FiftyOne’s world, there’s work for everyone! 🌼


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 (8)
docs/source/plugins/developing_plugins.rst (8)

Line range hint 1-71: Consider enhancing the introduction with a clearer distinction between Python and JS plugins.

While the introduction effectively explains the plugin system, consider adding a brief comparison table or bullet points early in the section to highlight the key differences and use cases for Python versus JavaScript plugins. This would help developers choose the right approach from the start.


Line range hint 72-186: Consider adding real-world use cases for each component type.

The section effectively explains each component type, but it would be even more valuable with concrete examples of real-world scenarios where each component type is most appropriate. For example:

  • Panels: Data visualization dashboards, custom annotation interfaces
  • Operators: Batch processing tasks, model inference pipelines
  • Components: Custom form inputs, specialized data renderers

Line range hint 187-219: Consider adding a troubleshooting subsection.

The setup instructions are clear, but common development issues and their solutions would be valuable. Consider adding:

  • Common installation errors and their solutions
  • Environment setup verification steps
  • Development tools recommendations (e.g., IDE plugins, linters)

Line range hint 220-401: Consider adding configuration validation examples.

The configuration documentation is comprehensive, but it would be helpful to include:

  • Examples of invalid configurations and their error messages
  • Best practices for versioning plugins
  • Configuration validation tools or scripts

Line range hint 402-1089: Consider expanding error handling examples.

While the operator development documentation is thorough, consider adding:

  • Examples of graceful error handling in operators
  • Best practices for error reporting to users
  • Common operator failure scenarios and recovery strategies

Line range hint 1090-2263: Consider adding panel testing guidance.

The panel development documentation is comprehensive, but would benefit from:

  • Unit testing examples for panels
  • Integration testing strategies
  • Performance testing considerations

Line range hint 2264-2721: Consider adding TypeScript examples.

While the JS plugin development documentation is solid, consider enhancing it with:

  • TypeScript interface definitions for plugin components
  • Type-safe state management examples
  • TypeScript configuration guidance

Line range hint 2722-3024: Consider adding more complex advanced usage examples.

The advanced usage section would benefit from:

  • Multi-step workflow examples
  • Complex data persistence patterns
  • Integration examples with external services
📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL

📥 Commits

Files that changed from the base of the PR and between 26431e2 and 6967cff.

📒 Files selected for processing (1)
  • docs/source/plugins/developing_plugins.rst (1 hunks)
🧰 Additional context used

Copy link
Contributor

@swheaton swheaton left a comment

Choose a reason for hiding this comment

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

thank you for the contribution!

Copy link

codecov bot commented Oct 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.19%. Comparing base (bac2d2a) to head (6967cff).
Report is 307 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #4963      +/-   ##
===========================================
+ Coverage    99.17%   99.19%   +0.01%     
===========================================
  Files           49       50       +1     
  Lines        17785    18099     +314     
===========================================
+ Hits         17639    17953     +314     
  Misses         146      146              
Flag Coverage Δ
python 99.19% <ø> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@swheaton swheaton merged commit 1f94345 into voxel51:develop Oct 22, 2024
12 of 13 checks passed
@coderabbitai coderabbitai bot mentioned this pull request Oct 24, 2024
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.

2 participants