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: AS-385 notes for mongo 8 #5373

Merged
merged 5 commits into from
Jan 13, 2025
Merged

Conversation

afoley587
Copy link
Member

@afoley587 afoley587 commented Jan 10, 2025

What changes are proposed in this pull request?

This PR allowed fiftyone to natively spawn a mongodb instance on ubuntu 24. Prior to that, a hack had to be used to set the openssl version.
This PR aims to document the migration from a mongodb 7 instance to a mongodb 8 instance.

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

bash docs/generate-docs.sh

Leads to:

Screenshot 2025-01-10 at 3 56 53 PM

and

Screenshot 2025-01-10 at 3 58 15 PM

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.)

The installed mongodb binary packaged with fiftyone[db] was upgraded fro Mongodb 7.0.4 to Mongodb 8.0.4 in order to comply with Mongodb's version matrix. Users who previously installed Fiftyone on ubuntu 24 should follow the migration guide in the documentation.

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
    • Added installation guidance for FiftyOne users on Ubuntu 24 with version 1.2.0 or lower, including a note on upgrading MongoDB binaries.
    • Introduced a new section on upgrading MongoDB binaries, emphasizing the importance of database backups.
    • Provided detailed step-by-step instructions for upgrading from MongoDB version 7 to version 8, tailored for both Mac/Linux and Windows users.

@afoley587 afoley587 requested a review from thesteve0 January 10, 2025 21:00
Copy link
Contributor

coderabbitai bot commented Jan 10, 2025

Walkthrough

This pull request enhances documentation for FiftyOne users, specifically addressing MongoDB binary upgrade requirements for users running version 1.2.0 or lower on Ubuntu 24. A new documentation section has been added to upgrading-mongodb.rst that provides comprehensive, step-by-step instructions for upgrading MongoDB from version 7 to version 8, with detailed guidance for different operating systems.

Changes

File Change Summary
docs/source/getting_started/install.rst Added a note for FiftyOne users on Ubuntu 24 about MongoDB binary upgrade requirements
docs/source/getting_started/upgrading-mongodb.rst Created new section "Upgrading MongoDB Binaries" with detailed upgrade instructions for MongoDB 7 to 8

Sequence Diagram

sequenceDiagram
    participant User
    participant FiftyOne
    participant MongoDB
    
    User->>FiftyOne: Requires upgrade
    FiftyOne->>MongoDB: Stop current instance
    User->>FiftyOne: Upgrade FiftyOne and Fiftyone-db
    FiftyOne->>MongoDB: Restart with new version
    User->>MongoDB: Connect and set feature compatibility
Loading

Possibly related PRs

Suggested Labels

documentation

Suggested Reviewers

  • findtopher
  • brimoor

Poem

🐰 Hop, hop, upgrade with care,
MongoDB's version needs repair!
From seven to eight, a smooth transition,
Ubuntu's call, a tech rendition!
Binaries dance, documentation's might,
FiftyOne leaps to a new height! 🚀


📜 Recent review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 969f712 and 4dae4e4.

📒 Files selected for processing (1)
  • docs/source/getting_started/upgrading-mongodb.rst (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • docs/source/getting_started/upgrading-mongodb.rst
⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: build

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 generate docstrings to generate docstrings for this PR. (Beta)
  • @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: 1

🧹 Nitpick comments (4)
docs/source/getting_started/upgrading-mongodb.rst (3)

5-6: Add specific backup instructions

While the documentation emphasizes the importance of database backups, it would be helpful to include specific instructions or link to MongoDB's official backup documentation.

Consider adding:

 Voxel51 advises performing database backups of your mongodb
 data directory whenever performing a database upgrade.
+
+To backup your data, you can use the following command:
+
+.. code-block:: shell
+
+    mongodump --uri="$YOUR_MONGODB_URI" --out=/path/to/backup

43-43: Specify mongosh version requirements

The mongosh installation step should specify the minimum required version for MongoDB 8 compatibility.

-4. `Install mongosh <https://www.mongodb.com/docs/mongodb-shell/install/>`_
+4. `Install mongosh 2.1.1 or later <https://www.mongodb.com/docs/mongodb-shell/install/>`_

65-65: Clarify MongoDB URI format

The placeholder $URI_FROM_ABOVE needs more context about the expected format.

-        mongosh "$URI_FROM_ABOVE"
+        # The URI format should be: mongodb://localhost:PORT
+        # Replace PORT with the port number found in step 5
+        mongosh "mongodb://localhost:PORT"
docs/source/getting_started/install.rst (1)

211-216: Add version specifics to the upgrade note

The note should explicitly mention the MongoDB versions involved in the upgrade.

 .. note::
 
   If you are a FiftyOne 1.2.0 or lower user with an Ubuntu 24 operating system, 
   you will need to 
-  :ref:`upgrade your mongodb binaries <mongodb-7-to-8>`.
+  :ref:`upgrade your MongoDB binaries from version 7.0.4 to 8.0.4 <mongodb-7-to-8>`.
📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between a2e4c57 and c247202.

📒 Files selected for processing (2)
  • docs/source/getting_started/install.rst (1 hunks)
  • docs/source/getting_started/upgrading-mongodb.rst (1 hunks)

Copy link
Contributor

@thesteve0 thesteve0 left a comment

Choose a reason for hiding this comment

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

One minor suggestion other than that - good to go

@afoley587 afoley587 requested a review from thesteve0 January 11, 2025 12:15
afoley587 and others added 2 commits January 13, 2025 09:51
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
@thesteve0 thesteve0 merged commit f19e90a into develop Jan 13, 2025
10 checks passed
@thesteve0 thesteve0 deleted the afoley/AS-385-notes-for-mongo-8 branch January 13, 2025 23:22
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