Skip to content

Scope SQL Server docs to the 'next' API Gateway version only#315

Open
AnuGayan wants to merge 1 commit into
wso2:mainfrom
AnuGayan:scope-sqlserver-to-next
Open

Scope SQL Server docs to the 'next' API Gateway version only#315
AnuGayan wants to merge 1 commit into
wso2:mainfrom
AnuGayan:scope-sqlserver-to-next

Conversation

@AnuGayan

@AnuGayan AnuGayan commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Purpose

Scope the SQL Server deployment documentation (originally from #306) to the in-development next version only for API Gateway.

After the component-versioning restructuring (#314), the SQL Server content ended up duplicated into all three API Gateway versions (1.0.0, 1.1.0, and next). SQL Server support is an upcoming-release feature, so it should appear only in the next docs, not in the already-released 1.0.0 / 1.1.0.

Changes

Reverts the five SQL-Server-affected files in 1.0.0 and 1.1.0 to their pre-SQL-Server state, leaving next untouched:

  • deployment/deployment-modes/kubernetes/overview.md
  • deployment/high-availability-production-deployment.md
  • deployment/production-deployment/database-configuration.md
  • overview.md
  • setup/storage-and-backends.md

The revert restores exactly the pre-SQL-Server content (verified: the only remaining differences vs. the original are the relative-link-depth adjustments required by the version folder layout). No other content in the released versions changes.

Result

Version SQL Server content
1.0.0 removed
1.1.0 removed
next retained

Testing

  • cd en && python -m mkdocs build0 warnings.

🤖 Generated with Claude Code

The SQL Server deployment content was present in all three API Gateway
versions after the version restructuring. Revert the five affected files in
1.0.0 and 1.1.0 to their pre-SQL-Server state, keeping the SQL Server docs
only in the in-development 'next' version. Released versions are unchanged
except for this content.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 1, 2026 09:57
@coderabbitai

coderabbitai Bot commented Jul 1, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Scoped the SQL Server deployment documentation back to the in-development next API Gateway version by removing SQL Server references from the released 1.0.0 and 1.1.0 docs.

Updated the affected deployment and configuration pages to describe PostgreSQL only, including high-availability, database configuration, overview, and storage/backend documentation. This also simplified related examples and wording to match the PostgreSQL-only flow.

The next documentation remains unchanged.

Walkthrough

Documentation across both the 1.0.0 and 1.1.0 API Gateway versions was updated to standardize on PostgreSQL as the exclusive database backend for Gateway Controller deployments, removing all references to SQL Server as an alternative. Affected pages include overview docs, Kubernetes deployment mode overviews, high-availability production deployment guides, database-configuration guides, and storage-and-backends setup pages. Database-configuration guides were restructured to provide PostgreSQL-only steps for database creation, secret naming, chart configuration, and DSN setup, and a new Connection Pool Tuning section was added. The 1.0.0 storage-and-backends page also gained a new Redis section for distributed rate limiting.

Sequence Diagram(s)

sequenceDiagram
  participant Replica01 as Gateway Controller Replica 01
  participant Postgres as PostgreSQL Database
  participant Replica02 as Gateway Controller Replica 02
  Replica01->>Postgres: Store deployment state
  Replica02->>Postgres: Read deployment state
  Postgres-->>Replica02: Return shared configuration
Loading

Suggested reviewers: lasanthaS

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning It covers purpose, changes, result, and testing, but omits most template sections such as Checklist, Goals, Approach, Release note, and Security checks. Add the missing template sections or mark them N/A where applicable, especially Checklist, Goals, Approach, Release note, Documentation, Security checks, and Test environment.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title matches the main change: restricting SQL Server docs to the next API Gateway version.
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
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

@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: 2

🧹 Nitpick comments (1)
en/docs/api-gateway/1.1.0/setup/storage-and-backends.md (1)

17-17: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value

Fix heading level to resolve lint warning and improve document structure.

The ### PostgreSQL (Gateway Controller) heading skips h2 after the h1 title, triggering an MD001 heading-increment warning. Change to ## PostgreSQL (Gateway Controller) (and similarly ## Redis (Gateway Runtime — Distributed Rate Limiting) at line 35) to maintain proper heading hierarchy.

🤖 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 `@en/docs/api-gateway/1.1.0/setup/storage-and-backends.md` at line 17, The
document headings are skipping a level and triggering the markdown lint warning.
Update the “PostgreSQL (Gateway Controller)” heading to the next proper level
after the page title, and apply the same correction to “Redis (Gateway Runtime —
Distributed Rate Limiting)” so the structure stays consistent. Use the existing
heading text in the storage-and-backends doc and make sure both sections follow
the same h1-to-h2 hierarchy.
🤖 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 `@en/docs/api-gateway/1.0.0/setup/storage-and-backends.md`:
- Line 35: The Redis section heading under the storage/backends docs is skipping
a hierarchy level after the page title. Update the markdown heading in the Redis
subsection from the current level to the next higher section level so it matches
the surrounding document structure and keeps the page outline consistent.
- Line 17: The document outline has heading levels that skip directly from the
page title to third-level headings, which breaks hierarchy. Update the
PostgreSQL section heading and the Redis section heading in this markdown file
from third-level to second-level so they sit directly under the page title and
keep the structure consistent.

---

Nitpick comments:
In `@en/docs/api-gateway/1.1.0/setup/storage-and-backends.md`:
- Line 17: The document headings are skipping a level and triggering the
markdown lint warning. Update the “PostgreSQL (Gateway Controller)” heading to
the next proper level after the page title, and apply the same correction to
“Redis (Gateway Runtime — Distributed Rate Limiting)” so the structure stays
consistent. Use the existing heading text in the storage-and-backends doc and
make sure both sections follow the same h1-to-h2 hierarchy.
🪄 Autofix (Beta)

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: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: ef3f291e-cf4f-474d-b1f9-40a70fd45087

📥 Commits

Reviewing files that changed from the base of the PR and between 823959e and 0438f03.

📒 Files selected for processing (10)
  • en/docs/api-gateway/1.0.0/deployment/deployment-modes/kubernetes/overview.md
  • en/docs/api-gateway/1.0.0/deployment/high-availability-production-deployment.md
  • en/docs/api-gateway/1.0.0/deployment/production-deployment/database-configuration.md
  • en/docs/api-gateway/1.0.0/overview.md
  • en/docs/api-gateway/1.0.0/setup/storage-and-backends.md
  • en/docs/api-gateway/1.1.0/deployment/deployment-modes/kubernetes/overview.md
  • en/docs/api-gateway/1.1.0/deployment/high-availability-production-deployment.md
  • en/docs/api-gateway/1.1.0/deployment/production-deployment/database-configuration.md
  • en/docs/api-gateway/1.1.0/overview.md
  • en/docs/api-gateway/1.1.0/setup/storage-and-backends.md

# Configuring External Storage and Backends

### External Database (Gateway Controller)
### PostgreSQL (Gateway Controller)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Fix heading level increment.

The ### PostgreSQL (Gateway Controller) heading skips a level after the page title. Change to ## PostgreSQL (Gateway Controller) to maintain proper document outline.

- ### PostgreSQL (Gateway Controller)
+ ## PostgreSQL (Gateway Controller)

Likewise, the ### Redis (Gateway Runtime — Distributed Rate Limiting) heading at Line 35 should become ## Redis (Gateway Runtime — Distributed Rate Limiting).

🧰 Tools
🪛 markdownlint-cli2 (0.22.1)

[warning] 17-17: Heading levels should only increment by one level at a time
Expected: h2; Actual: h3

(MD001, heading-increment)

🤖 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 `@en/docs/api-gateway/1.0.0/setup/storage-and-backends.md` at line 17, The
document outline has heading levels that skip directly from the page title to
third-level headings, which breaks hierarchy. Update the PostgreSQL section
heading and the Redis section heading in this markdown file from third-level to
second-level so they sit directly under the page title and keep the structure
consistent.

Source: Linters/SAST tools

For the full list of storage configuration options for both databases, refer to the [config template](https://github.com/wso2/api-platform/blob/main/gateway/configs/config-template.toml).
For the full list of PostgreSQL configuration options, refer to the [config template](https://github.com/wso2/api-platform/blob/main/gateway/configs/config-template.toml).

### Redis (Gateway Runtime — Distributed Rate Limiting)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Fix heading level increment.

The ### Redis (Gateway Runtime — Distributed Rate Limiting) heading also skips a level after the page title. Change to ## Redis (Gateway Runtime — Distributed Rate Limiting).

- ### Redis (Gateway Runtime — Distributed Rate Limiting)
+ ## Redis (Gateway Runtime — Distributed Rate Limiting)
📝 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
### Redis (Gateway Runtime — Distributed Rate Limiting)
## Redis (Gateway Runtime — Distributed Rate Limiting)
🤖 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 `@en/docs/api-gateway/1.0.0/setup/storage-and-backends.md` at line 35, The
Redis section heading under the storage/backends docs is skipping a hierarchy
level after the page title. Update the markdown heading in the Redis subsection
from the current level to the next higher section level so it matches the
surrounding document structure and keeps the page outline consistent.

Source: Linters/SAST tools

Copilot AI 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.

Pull request overview

This PR scopes SQL Server deployment documentation to the in-development next version of API Gateway by reverting SQL Server-related content from the already-released 1.0.0 and 1.1.0 docs, keeping those versions PostgreSQL-only.

Changes:

  • Removed SQL Server mentions and configuration examples from api-gateway/1.0.0 docs.
  • Removed SQL Server mentions and configuration examples from api-gateway/1.1.0 docs.
  • Updated related wording/metadata in the affected pages so the released versions describe PostgreSQL-only HA/production setups.

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated no comments.

Show a summary per file
File Description
en/docs/api-gateway/1.1.0/setup/storage-and-backends.md Removes SQL Server references; keeps PostgreSQL + Redis guidance for 1.1.0.
en/docs/api-gateway/1.1.0/overview.md Updates HA overview text to PostgreSQL-only for 1.1.0.
en/docs/api-gateway/1.1.0/deployment/production-deployment/database-configuration.md Removes SQL Server path and leaves PostgreSQL-only DB configuration steps for 1.1.0 HA deployments.
en/docs/api-gateway/1.1.0/deployment/high-availability-production-deployment.md Updates HA production deployment narrative to PostgreSQL-only for 1.1.0.
en/docs/api-gateway/1.1.0/deployment/deployment-modes/kubernetes/overview.md Adjusts Kubernetes deployment mode overview bullet to PostgreSQL-only for 1.1.0.
en/docs/api-gateway/1.0.0/setup/storage-and-backends.md Removes SQL Server references; keeps PostgreSQL + Redis guidance for 1.0.0.
en/docs/api-gateway/1.0.0/overview.md Updates HA overview text to PostgreSQL-only for 1.0.0.
en/docs/api-gateway/1.0.0/deployment/production-deployment/database-configuration.md Removes SQL Server path and leaves PostgreSQL-only DB configuration steps for 1.0.0 HA deployments.
en/docs/api-gateway/1.0.0/deployment/high-availability-production-deployment.md Updates HA production deployment narrative to PostgreSQL-only for 1.0.0.
en/docs/api-gateway/1.0.0/deployment/deployment-modes/kubernetes/overview.md Adjusts Kubernetes deployment mode overview bullet to PostgreSQL-only for 1.0.0.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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