Skip to content

docs: fix broken links - #3084

Merged
omer-topal merged 1 commit into
masterfrom
fix-broken-docs-links
Aug 13, 2026
Merged

docs: fix broken links#3084
omer-topal merged 1 commit into
masterfrom
fix-broken-docs-links

Conversation

@nathan-contino

@nathan-contino nathan-contino commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Summary by CodeRabbit

  • Documentation
    • Updated API, installation, bundle operations, and FAQ links to current documentation paths.
    • Corrected setup links across Facebook Groups, Instagram, Mercury, and Notion examples.
    • Replaced a production database URI in the tracing example with a safe placeholder.

@github-actions

github-actions Bot commented Aug 12, 2026

Copy link
Copy Markdown

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

github-actions Bot added a commit that referenced this pull request Aug 12, 2026
@nathan-contino nathan-contino changed the title Fix broken links in the permify docs docs: Fix broken links Aug 12, 2026
@nathan-contino nathan-contino changed the title docs: Fix broken links docs: fix broken links Aug 12, 2026
@coderabbitai

coderabbitai Bot commented Aug 12, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

The documentation updates replace obsolete relative links with current paths and replace hardcoded PostgreSQL connection details with placeholders.

Changes

Documentation navigation updates

Layer / File(s) Summary
API reference link corrections
docs/api-reference/bundle/write-bundle.mdx, docs/operations/bundle.mdx, docs/permify-overview/faqs.mdx
Bundle and FAQ links now use current API and authorization reference paths.
Installation link corrections
docs/getting-started/examples/*.mdx
Getting-started examples now link to the current installation documentation path.
Tracing example connection details
docs/operations/tracing.mdx
The PostgreSQL URI now uses placeholder credentials and host information.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Possibly related PRs

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the primary documentation changes, which fix broken links across the Permify docs.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix-broken-docs-links

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.

@codecov

codecov Bot commented Aug 12, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 76.29%. Comparing base (31b34ea) to head (22d1001).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3084   +/-   ##
=======================================
  Coverage   76.29%   76.29%           
=======================================
  Files          83       83           
  Lines        9215     9215           
=======================================
  Hits         7030     7030           
  Misses       1635     1635           
  Partials      550      550           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@docs/operations/tracing.mdx`:
- Line 50: Update the PostgreSQL configuration example in the tracing
documentation to use the current schema with database.engine and database.uri
instead of database.write. Replace the URI placeholder with a valid database
name suffix such as /db_name, while preserving the existing placeholder host and
credentials.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 5da40db2-a755-4dc0-b6a2-9cd4119b8b93

📥 Commits

Reviewing files that changed from the base of the PR and between 31b34ea and 22d1001.

📒 Files selected for processing (8)
  • docs/api-reference/bundle/write-bundle.mdx
  • docs/getting-started/examples/facebook-groups.mdx
  • docs/getting-started/examples/instagram.mdx
  • docs/getting-started/examples/mercury.mdx
  • docs/getting-started/examples/notion.mdx
  • docs/operations/bundle.mdx
  • docs/operations/tracing.mdx
  • docs/permify-overview/faqs.mdx

connection: 'postgres'
database: 'morf-health-demo'
uri: 'postgres://postgres:SphU4Uf3QXNntT@permify.us-east-1.rds.amazonaws.com:5432'
uri: 'postgres://postgres:yourpassword@your-host.rds.amazonaws.com:5432'

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🗄️ Data Integrity & Integration | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -eu

printf '%s\n' '--- relevant files ---'
git ls-files | rg '(^|/)(configuration|config|tracing)\.(mdx?|ts|tsx|js|jsx|json|yaml|yml)$|postgres|database' | head -200

printf '%s\n' '--- documentation context ---'
sed -n '35,65p' docs/operations/tracing.mdx
sed -n '80,110p' docs/setting-up/configuration.mdx

printf '%s\n' '--- configuration symbols and PostgreSQL references ---'
rg -n -S 'morf-health-demo|postgres://|PostgreSQL|postgres|database\s*:' --glob '!node_modules' --glob '!dist' --glob '!build' . | head -300

Repository: Permify/permify

Length of output: 37025


🏁 Script executed:

#!/bin/bash
set -eu

printf '%s\n' '--- configuration definitions and loading ---'
rg -n -S 'type .*Config|type .*Database|Database struct|URI\s+string|database.*uri|NewWithSeparateURIs|conf\.Database|Database\.URI|Database\.Write' \
  --glob '*.go' --glob '!**/*_test.go' . | head -300

printf '%s\n' '--- database construction call sites ---'
rg -n -S 'postgres\.New|NewWithSeparateURIs|New\(' pkg internal --glob '*.go' | head -250

printf '%s\n' '--- candidate configuration files ---'
fd -t f -e go . | rg '(^|/)(config|configuration|options|settings)(/|\.go$)' | head -150

Repository: Permify/permify

Length of output: 36922


🏁 Script executed:

#!/bin/bash
set -eu

printf '%s\n' '--- configuration structure and defaults ---'
sed -n '130,205p' internal/config/config.go
sed -n '1,130p' internal/factories/database.go

printf '%s\n' '--- PostgreSQL constructors ---'
sed -n '1,125p' pkg/database/postgres/postgres.go

printf '%s\n' '--- configuration decoding and migration paths ---'
rg -n -S 'mapstructure|Unmarshal|ReadInConfig|SetDefault|database\.write|database\.writer|database\.reader|write:' internal pkg --glob '*.go' --glob '!**/*_test.go' | head -250

Repository: Permify/permify

Length of output: 41123


🌐 Web query:

pgx v5 pgxpool.ParseConfig PostgreSQL URI without database path default database name

💡 Result:

In pgx v5, if a PostgreSQL connection URI does not specify a database name (i.e., there is no path component after the host/port), the driver defaults to using the current operating system username as the database name [1][2]. This behavior follows the standard PostgreSQL connection logic (libpq), where the database name defaults to the user name if not explicitly provided [1][3]. When you use pgxpool.ParseConfig(connString), it internally calls pgx.ParseConfig, which applies these same resolution rules—merging default settings, environment variables, and the provided connection string [4][1][5]. If you need to change this behavior, you can manually modify the Database field in the pgxpool.Config object after calling ParseConfig but before creating the pool: config, err:= pgxpool.ParseConfig("postgres://user:password@localhost:5432/") if err!= nil { // handle error } // Manually set the default database name config.ConnConfig.Database = "my_actual_db" pool, err:= pgxpool.NewWithConfig(context.Background, config)

Citations:


🏁 Script executed:

#!/bin/bash
set -eu

printf '%s\n' '--- pgx dependency version ---'
rg -n 'jackc/pgx|pgx/v5' go.mod go.sum | head -20

printf '%s\n' '--- full database examples using the legacy write block ---'
rg -n -S -A12 -B4 'database:\s*$|write:\s*$|database:\s*['"'"'"]' docs/operations docs/docs/reference docs/setting-up --glob '*.mdx' --glob '*.md' | head -250

printf '%s\n' '--- current configuration documentation around database settings ---'
sed -n '85,125p' docs/setting-up/configuration.mdx
sed -n '420,460p' docs/setting-up/configuration.mdx

Repository: Permify/permify

Length of output: 18078


🏁 Script executed:

#!/bin/bash
set -eu

printf '%s\n' '--- configuration defaults ---'
sed -n '205,290p' internal/config/config.go
sed -n '150,215p' pkg/cmd/serve.go

printf '%s\n' '--- read-only contract probe ---'
python3 - <<'PY'
from pathlib import Path
import re

doc = Path("docs/operations/tracing.mdx").read_text()
block = doc.split("```", 2)[1]
keys = []
for line in block.splitlines():
    if line.startswith("database:"):
        in_db = True
    elif "in_db" in locals() and in_db and line and not line.startswith(" ") and not line.startswith("#"):
        break
    elif "in_db" in locals() and in_db:
        m = re.match(r"^  ([A-Za-z_][A-Za-z0-9_]*):", line)
        if m:
            keys.append(m.group(1))

config_text = Path("internal/config/config.go").read_text()
allowed = set(re.findall(r'mapstructure:"([^"]+)"', config_text))
print("database block child keys:", keys)
print("recognized config keys:", sorted(allowed & set(keys)))
print("unrecognized database block child keys:", sorted(set(keys) - allowed))
PY

Repository: Permify/permify

Length of output: 6005


Use the current PostgreSQL configuration schema.

database.write is unsupported. Use database.engine and database.uri with placeholder values. Include /db_name in the URI because pgx otherwise derives the database name from the operating-system user.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@docs/operations/tracing.mdx` at line 50, Update the PostgreSQL configuration
example in the tracing documentation to use the current schema with
database.engine and database.uri instead of database.write. Replace the URI
placeholder with a valid database name suffix such as /db_name, while preserving
the existing placeholder host and credentials.

@omer-topal omer-topal left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!

@omer-topal
omer-topal merged commit e00d052 into master Aug 13, 2026
15 of 19 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 13, 2026
@omer-topal
omer-topal deleted the fix-broken-docs-links branch August 14, 2026 14:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants