Skip to content

Conversation

ehofesmann
Copy link
Member

Rationale

We don't explicitly call out what happens in mongo when standing up an FOE deployment (e.g. that two databases are required)

Changes

Explicitly call this out for docker compose

Checklist

  • This PR maintains parity between Docker Compose and Helm

Will need to call out something similar for helm when those docs are updated similar to the recent docker changes

Testing

Signed-off-by: Eric Hofesmann <[email protected]>
@ehofesmann ehofesmann requested a review from a team as a code owner August 13, 2025 14:06
@ehofesmann ehofesmann self-assigned this Aug 13, 2025
Copy link

coderabbitai bot commented Aug 13, 2025

Important

Review skipped

Auto incremental reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

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

Walkthrough

Updated docker/README.md prerequisites: replaced “FiftyOne Teams” with “FiftyOne Enterprise,” clarified MongoDB edition compatibility, and added a note that Enterprise requires two databases (fiftyone and fiftyone-cas) created on startup with references to env.template. No code or API changes.

Changes

Cohort / File(s) Summary of changes
Docs: Docker prerequisites update
docker/README.md
Rebranded Teams → Enterprise; specified MongoDB Community/Enterprise/Atlas compatibility; added requirement for two databases (fiftyone, fiftyone-cas) auto-created on startup with links to env.template lines.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

I twitch my whiskers, docs refined,
Two little DBs now aligned.
Enterprise hops where Teams once stood,
Mongo burrows—all understood.
With paws on keys, I sign this note:
“README nibbled, ship the boat!” 🐇

✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch dc-cas-callout

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

‼️ IMPORTANT
Auto-reply has been disabled for this repository in the CodeRabbit settings. The CodeRabbit bot will not respond to your replies unless it is explicitly tagged.

  • 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.
  • 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 the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

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.

CodeRabbit Configuration 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 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

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • 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.

@ehofesmann ehofesmann requested a review from prernadh August 13, 2025 14:06
Copy link

@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 (1)
docker/README.md (1)

87-88: MongoDB compatibility wording nit

Consider lowercasing “Editions” for consistency with the rest of the document and typical style (“editions”).

-  - FiftyOne Enterprise is compatible with MongoDB Community, Enterprise, or Atlas
-    Editions.
+  - FiftyOne Enterprise is compatible with MongoDB Community, Enterprise, or Atlas
+    editions.
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 17c1182 and 2d33637.

📒 Files selected for processing (1)
  • docker/README.md (2 hunks)
🧰 Additional context used
🪛 markdownlint-cli2 (0.17.2)
docker/README.md

96-96: Line length
Expected: 80; Actual: 461

(MD013, line-length)

⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
  • GitHub Check: pre-commit
  • GitHub Check: docker-pulls

docker/README.md Outdated
can then use utilization metrics to make scaling decisions (up or down).
Please note that we do not support MongoDB Atlas Serverless instances
because we require Aggregations.
- A FiftyOne Enterprise deployment requires two separate databases in your MongoDB instance that are automatically created on startup (defaulting to [`fiftyone`](https://github.com/voxel51/fiftyone-teams-app-deploy/blob/17c11828f3e3d02cc7eb32543d26ba3e61ebfe77/docker/internal-auth/env.template#L52) and [`fiftyone-cas`](https://github.com/voxel51/fiftyone-teams-app-deploy/blob/17c11828f3e3d02cc7eb32543d26ba3e61ebfe77/docker/internal-auth/env.template#L64))
Copy link

Choose a reason for hiding this comment

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

💡 Verification agent

🧩 Analysis chain

Clarify when databases are auto-created; reflow to satisfy markdownlint (MD013)

  • The databases are only auto-created during initial deployment when database admin mode is enabled. Make this explicit to avoid confusion.
  • Line exceeds markdownlint’s MD013 (line-length). Reflow into a wrapped/nested list for readability and to pass lint.
  • Prefer referencing the controlling env vars (FIFTYONE_DATABASE_NAME, CAS_DATABASE_NAME, CAS_MONGODB_URI) and a relative link to env.template to reduce link rot.
  • Optional: note required MongoDB privileges to create databases/collections.

Apply this diff to clarify and reflow:

-  - A FiftyOne Enterprise deployment requires two separate databases in your MongoDB instance that are automatically created on startup (defaulting to [`fiftyone`](https://github.com/voxel51/fiftyone-teams-app-deploy/blob/17c11828f3e3d02cc7eb32543d26ba3e61ebfe77/docker/internal-auth/env.template#L52) and [`fiftyone-cas`](https://github.com/voxel51/fiftyone-teams-app-deploy/blob/17c11828f3e3d02cc7eb32543d26ba3e61ebfe77/docker/internal-auth/env.template#L64))
+  - A FiftyOne Enterprise deployment requires two MongoDB databases. They are
+    created on initial startup when `FIFTYONE_DATABASE_ADMIN=true`:
+    - App database (default: `fiftyone`) — configurable via `FIFTYONE_DATABASE_NAME`
+    - CAS database (default: `fiftyone-cas`) — configurable via `CAS_DATABASE_NAME`
+    - Optionally, CAS can use a different MongoDB URI via `CAS_MONGODB_URI`
+    - See defaults in [`internal-auth/env.template`](./internal-auth/env.template)
+    - Ensure your MongoDB user has privileges to create databases and collections

If you prefer to keep the single-line style, suppress only this lint with:

+<!-- markdownlint-disable-next-line MD013 -->
-  - A FiftyOne Enterprise deployment requires two separate databases in your MongoDB instance that are automatically created on startup (defaulting to [`fiftyone`](https://github.com/voxel51/fiftyone-teams-app-deploy/blob/17c11828f3e3d02cc7eb32543d26ba3e61ebfe77/docker/internal-auth/env.template#L52) and [`fiftyone-cas`](https://github.com/voxel51/fiftyone-teams-app-deploy/blob/17c11828f3e3d02cc7eb32543d26ba3e61ebfe77/docker/internal-auth/env.template#L64))
+  - A FiftyOne Enterprise deployment requires two separate databases in your MongoDB instance that are automatically created on startup (defaulting to [`fiftyone`](./internal-auth/env.template) and [`fiftyone-cas`](./internal-auth/env.template))
  • Confirm that the Helm documentation mirrors this clarification about the two databases and the dependency on FIFTYONE_DATABASE_ADMIN=true for auto-creation.

🏁 Script executed:

#!/bin/bash
# Search for mentions of the relevant environment variables in the Helm docs
rg -n 'FIFTYONE_DATABASE_ADMIN' -C3
rg -n 'FIFTYONE_DATABASE_NAME' -C3
rg -n 'CAS_DATABASE_NAME' -C3

# Locate Helm README files to inspect their contents
fd -t f -I README.md | grep -i helm || true

Length of output: 91304


Clarify database creation conditions and update all docs

  • The two MongoDB databases (fiftyone & fiftyone-cas) are only auto-created on initial startup when FIFTYONE_DATABASE_ADMIN=true.
  • Reflow the bullet in docker/README.md to wrap at ~80 chars, reference the env vars by name, and link relatively to internal-auth/env.template.
  • Helm chart documentation does not currently mention auto-creation of these two databases. Please add a similar note:
    helm/fiftyone-teams-app/README.md.gotmpl under Version 2.9+ Installation Changes
    helm/docs/upgrading.md (or a new Databases section)
  • Use the controlling env vars: FIFTYONE_DATABASE_NAME, CAS_DATABASE_NAME, CAS_MONGODB_URI, and note required MongoDB privileges.

Suggested diff for docker/README.md (around line 96):

-  - A FiftyOne Enterprise deployment requires two separate databases in your MongoDB instance that are automatically created on startup (defaulting to [`fiftyone`](https://github.com/voxel51/.../env.template#L52) and [`fiftyone-cas`](https://github.com/voxel51/.../env.template#L64))
+  - A FiftyOne Enterprise deployment requires two MongoDB databases. They are
+    created on initial startup when `FIFTYONE_DATABASE_ADMIN=true`:
+    - App database (default: `fiftyone`) — configurable via `FIFTYONE_DATABASE_NAME`
+    - CAS database (default: `fiftyone-cas`) — configurable via `CAS_DATABASE_NAME`
+    - Optional: override CAS URI via `CAS_MONGODB_URI`
+    - See defaults in [`internal-auth/env.template`](./internal-auth/env.template)
+    - Ensure your MongoDB user has privileges to create databases & collections

Fix documentation in:

  • docker/README.md (lines ~96–100)
  • helm/fiftyone-teams-app/README.md.gotmpl (Version 2.9+ section)
  • helm/docs/upgrading.md (add a “Databases” note)
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
- A FiftyOne Enterprise deployment requires two separate databases in your MongoDB instance that are automatically created on startup (defaulting to [`fiftyone`](https://github.com/voxel51/fiftyone-teams-app-deploy/blob/17c11828f3e3d02cc7eb32543d26ba3e61ebfe77/docker/internal-auth/env.template#L52) and [`fiftyone-cas`](https://github.com/voxel51/fiftyone-teams-app-deploy/blob/17c11828f3e3d02cc7eb32543d26ba3e61ebfe77/docker/internal-auth/env.template#L64))
- A FiftyOne Enterprise deployment requires two MongoDB databases. They are
created on initial startup when `FIFTYONE_DATABASE_ADMIN=true`:
- App database (default: `fiftyone`) — configurable via `FIFTYONE_DATABASE_NAME`
- CAS database (default: `fiftyone-cas`) — configurable via `CAS_DATABASE_NAME`
- Optional: override CAS URI via `CAS_MONGODB_URI`
- See defaults in [`internal-auth/env.template`](./internal-auth/env.template)
- Ensure your MongoDB user has privileges to create databases & collections
🧰 Tools
🪛 markdownlint-cli2 (0.17.2)

96-96: Line length
Expected: 80; Actual: 461

(MD013, line-length)

Signed-off-by: Eric Hofesmann <[email protected]>
@afoley587
Copy link
Member

Please target to release/v2.11.0

afoley587
afoley587 previously approved these changes Aug 15, 2025
@afoley587 afoley587 changed the base branch from main to release/v2.11.0 August 15, 2025 17:50
@afoley587 afoley587 dismissed their stale review August 15, 2025 17:50

The base branch was changed.

@afoley587 afoley587 self-requested a review August 15, 2025 17:50
Copy link
Member

@afoley587 afoley587 left a comment

Choose a reason for hiding this comment

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

Small suggestion

afoley587
afoley587 previously approved these changes Aug 15, 2025
@swheaton
Copy link
Contributor

@ehofesmann merge asap if you want this in v2.11.0 documentation

Base automatically changed from release/v2.11.0 to main September 4, 2025 13:32
@voxelbuildbot voxelbuildbot dismissed afoley587’s stale review September 4, 2025 13:32

The base branch was changed.

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.

3 participants