Skip to content

docs: reorganize database settings for Plane AI and update environment variable documentation#241

Open
akshat5302 wants to merge 7 commits intomasterfrom
fix-db-settings-pi
Open

docs: reorganize database settings for Plane AI and update environment variable documentation#241
akshat5302 wants to merge 7 commits intomasterfrom
fix-db-settings-pi

Conversation

@akshat5302
Copy link
Member

@akshat5302 akshat5302 commented Mar 11, 2026

Description

This pull request updates documentation to clarify and reorganize how the Plane AI service handles database configuration, particularly regarding the use of a PostgreSQL read replica. The changes improve the visibility and explanation of relevant environment variables for both general environment setup and Kubernetes installation methods.

Type of Change

  • Improvement (change that would cause existing functionality to not work as expected)

Summary by CodeRabbit

  • Documentation
    • Reorganized self-hosting configuration docs to consolidate Plane AI database settings into dedicated sections, moving related environment variables into a Plane AI Database subsection.
    • Added Kubernetes deployment documentation for Plane AI, including a new PostgreSQL read-replica connection parameter to support offloading read-heavy operations from the primary database.

@vercel
Copy link

vercel bot commented Mar 11, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
developer-docs Ready Ready Preview, Comment Mar 11, 2026 8:27am

Request Review

@coderabbitai
Copy link

coderabbitai bot commented Mar 11, 2026

Warning

Rate limit exceeded

@akshat5302 has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 5 minutes and 34 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: f677d9d2-0dd6-4186-a9d5-57ac3b33ebc4

📥 Commits

Reviewing files that changed from the base of the PR and between e329a21 and 69dc1b9.

📒 Files selected for processing (3)
  • docs/self-hosting/govern/environment-variables.md
  • docs/self-hosting/methods/install-methods-commercial/kubernetes.md
  • docs/self-hosting/methods/kubernetes.md
📝 Walkthrough

Walkthrough

Moved two Plane AI database environment variables from general Database settings into a new Plane AI Database subsection and added documentation for a follower PostgreSQL URI environment variable for Kubernetes Plane AI deployments (read-replica connection string).

Changes

Cohort / File(s) Summary
Environment Variables Reorganization
docs/self-hosting/govern/environment-variables.md
Removed FOLLOWER_POSTGRES_URI and PLANE_PI_DATABASE_URL from the general Database settings and added a new "Plane AI Database settings" subsection that declares both variables with descriptions and defaults.
Kubernetes Deployment Documentation
docs/self-hosting/methods/install-methods-commercial/kubernetes.md, docs/self-hosting/methods/kubernetes.md
Added env.pi_envs.follower_postgres_uri to Plane AI Kubernetes environment variables, describing it as a PostgreSQL read-replica connection string to offload read-heavy operations from the primary DB.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

🐇 I nibble on configs by moonlight,

Follower URIs hop into sight.
Read replicas take the strain,
Primary rests while queries wane.
Docs polished, the meadow bright.

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main changes: reorganizing database settings for Plane AI and updating environment variable documentation across multiple files.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix-db-settings-pi

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

Comment @coderabbitai help to get the list of available commands and usage tips.

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: 6

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@docs/self-hosting/govern/environment-variables.md`:
- Around line 176-181: The new "#### Database settings" table block is not
Prettier-formatted; run Prettier (or your project's formatting script) on the
Markdown file to fix spacing/alignment issues and ensure the table under the
"#### Database settings" header and rows for FOLLOWER_POSTGRES_URI and
PLANE_PI_DATABASE_URL conform to the repo's Markdown formatting rules so CI
passes.
- Around line 178-181: The table's FOLLOWER_POSTGRES_URI description is
ambiguous next to PLANE_PI_DATABASE_URL; update its Description to explicitly
state that FOLLOWER_POSTGRES_URI is a read-replica of the primary Plane app
database and mirrors the main DATABASE_URL (not the PLANE_PI_DATABASE_URL). Edit
the row for FOLLOWER_POSTGRES_URI so the Description reads something like:
"Connection string for a PostgreSQL read replica of the primary Plane app
database (same value as DATABASE_URL) — used for read-heavy operations to reduce
load on the primary database," leaving PLANE_PI_DATABASE_URL unchanged.

In `@docs/self-hosting/methods/install-methods-commercial/kubernetes.md`:
- Line 458: The docs add env.pi_envs.follower_postgres_uri but do not document
its secret-backed name in the pi_api_env_existingSecret table; add a new row
alongside the PLANE_PI_DATABASE_URL entry mapping FOLLOWER_POSTGRES_URI to the
same secret-backed path convention (e.g., the external secret key used for the
follower DB connection string) so external-secrets users can supply
follower_postgres_uri via a secret rather than values.yaml; update the
pi_api_env_existingSecret table to include FOLLOWER_POSTGRES_URI with a clear
description and example secret key to match PLANE_PI_DATABASE_URL.
- Line 458: The new Markdown table row for env.pi_envs.follower_postgres_uri is
misformatted for Prettier; run Prettier (or your repo's formatting command) on
docs/self-hosting/methods/install-methods-commercial/kubernetes.md to reflow the
table so the pipe alignment and spacing match the surrounding table rows,
ensuring the row text "env.pi_envs.follower_postgres_uri | Same as Plane
DATABASE_URL | No | Connection string for a Plane PostgreSQL DB read replica.
Used for read-heavy operations to reduce load on the primary database." is
properly padded and wrapped to pass the repo Prettier check.

In `@docs/self-hosting/methods/kubernetes.md`:
- Line 456: Add documentation for the external-secret mapping for the Plane
read-replica by adding an entry to the pi_api_env_existingSecret table that
corresponds to env.pi_envs.follower_postgres_uri; specify the values.yaml key
(env.pi_envs.follower_postgres_uri) and show the expected external-secret
path/secret name and secret key users must set (the secret name used by
external-secrets and the key containing the replica DATABASE_URL), and ensure
the text explains this is the connection string for the Plane PostgreSQL read
replica used for read-heavy operations.
- Line 456: The Markdown table row for env.pi_envs.follower_postgres_uri is
hand-aligned and contains extra spacing/trailing whitespace causing Prettier
failures; fix it by rewriting that single row as a minimal pipe-separated entry
(no manual column alignment or trailing spaces) e.g. "|
env.pi_envs.follower_postgres_uri | Same as Plane DATABASE_URL | No | Connection
string for a Plane PostgreSQL DB read replica. Used for read-heavy operations to
reduce load on the primary database. |", ensure the line stays under 120 chars,
then run the project's Prettier (with the repo config: 120 char width, 2-space
indent, semicolons, double quotes) to reformat and commit.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 437ffd5f-3762-4ddb-a407-dd16049dc61a

📥 Commits

Reviewing files that changed from the base of the PR and between 224c2c0 and 45825f2.

📒 Files selected for processing (3)
  • docs/self-hosting/govern/environment-variables.md
  • docs/self-hosting/methods/install-methods-commercial/kubernetes.md
  • docs/self-hosting/methods/kubernetes.md

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.

♻️ Duplicate comments (2)
docs/self-hosting/govern/environment-variables.md (2)

188-191: ⚠️ Potential issue | 🟡 Minor

Run Prettier on this new table block before merge.

CI is already failing on formatting, and this subsection is part of the modified Markdown table content. Please reformat the table so the file passes the style check. As per coding guidelines, **/*.{ts,tsx,js,jsx,vue,json,md,mts}: "Prettier formatting checks must pass in CI, with 120 character line width, 2-space indent, semicolons, double quotes, and ES5 trailing commas".

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@docs/self-hosting/govern/environment-variables.md` around lines 188 - 191,
The new Markdown table block containing the FOLLOWER_POSTGRES_URI and
PLANE_PI_DATABASE_URL rows is not Prettier-formatted; run the project's Prettier
with the repo config (120 char line width, 2-space indent, double quotes,
semicolons/ES5 trailing commas) against the modified Markdown and reformat the
table so column alignment and wrapping conform to Prettier, then stage and
commit the updated file so CI formatting checks pass.

190-190: ⚠️ Potential issue | 🟡 Minor

Clarify that FOLLOWER_POSTGRES_URI points to the main Plane app database replica.

Line 190 still reads generically next to PLANE_PI_DATABASE_URL, so it's easy to interpret this as a replica of the PI database. Make the description explicit that this is the read replica for the primary Plane app database / DATABASE_URL.

Suggested wording
-| **FOLLOWER_POSTGRES_URI** | Connection string for a PostgreSQL read replica. Used for read-heavy operations to reduce load on the primary database.                                                    | Same as DATABASE_URL                |
+| **FOLLOWER_POSTGRES_URI** | Connection string for a PostgreSQL read replica of the primary Plane app database. Same as `DATABASE_URL`; used for read-heavy operations to reduce load on the primary database. | Same as DATABASE_URL                |
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@docs/self-hosting/govern/environment-variables.md` at line 190, The doc entry
for FOLLOWER_POSTGRES_URI is ambiguous; update its description to explicitly
state that FOLLOWER_POSTGRES_URI is the connection string for the PostgreSQL
read-replica of the primary Plane application database (the same database
referenced by DATABASE_URL), not a replica of PLANE_PI_DATABASE_URL; change the
table cell text for FOLLOWER_POSTGRES_URI to something like “Connection string
for the PostgreSQL read-replica of the primary Plane app database (used for
read-heavy operations to reduce load on DATABASE_URL)” and, if present,
disambiguate any neighboring PLANE_PI_DATABASE_URL text to avoid implying the
follower is for the PI DB.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Duplicate comments:
In `@docs/self-hosting/govern/environment-variables.md`:
- Around line 188-191: The new Markdown table block containing the
FOLLOWER_POSTGRES_URI and PLANE_PI_DATABASE_URL rows is not Prettier-formatted;
run the project's Prettier with the repo config (120 char line width, 2-space
indent, double quotes, semicolons/ES5 trailing commas) against the modified
Markdown and reformat the table so column alignment and wrapping conform to
Prettier, then stage and commit the updated file so CI formatting checks pass.
- Line 190: The doc entry for FOLLOWER_POSTGRES_URI is ambiguous; update its
description to explicitly state that FOLLOWER_POSTGRES_URI is the connection
string for the PostgreSQL read-replica of the primary Plane application database
(the same database referenced by DATABASE_URL), not a replica of
PLANE_PI_DATABASE_URL; change the table cell text for FOLLOWER_POSTGRES_URI to
something like “Connection string for the PostgreSQL read-replica of the primary
Plane app database (used for read-heavy operations to reduce load on
DATABASE_URL)” and, if present, disambiguate any neighboring
PLANE_PI_DATABASE_URL text to avoid implying the follower is for the PI DB.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 033bc469-30f6-4dd4-8b45-ad78b1084fb2

📥 Commits

Reviewing files that changed from the base of the PR and between 45825f2 and e329a21.

📒 Files selected for processing (1)
  • docs/self-hosting/govern/environment-variables.md

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.

1 participant