apim-apps icon indicating copy to clipboard operation
apim-apps copied to clipboard

Fix: Update service catalog documentation link to latest version

Open ranuka-laksika opened this issue 2 months ago β€’ 2 comments

Fixes wso2/api-manager#4538

Issue URL: https://github.com/wso2/api-manager/issues/4538

Problem

The documentation link in the service catalog main page of the APIM Publisher portal was pointing to an outdated URL path and version-specific documentation.

Solution

Updated the documentation URL to point to the latest version and corrected the path structure:

  • Changed base documentation URL from version-specific (4.6.0) to "latest"
  • Updated documentation path from design/create-api/create-an-api-using-a-service/ to manage-apis/design/create-api/create-an-api-using-a-service/
  • Final URL: https://apim.docs.wso2.com/en/latest/manage-apis/design/create-api/create-an-api-using-a-service/

Changes Made

  • Modified: portals/publisher/src/main/webapp/site/public/conf/settings.json
    • Updated docUrl from https://apim.docs.wso2.com/en/4.6.0/ to https://apim.docs.wso2.com/en/latest/
  • Modified: portals/publisher/src/main/webapp/source/src/app/components/ServiceCatalog/Listing/Onboarding.jsx
    • Updated documentation path to include manage-apis prefix
    • Fixed line length linting issue by properly formatting the URL concatenation

Build Information

  • Java 11 (Temurin-Hotspot 11.0.29+7)
  • Maven 3.6.3
  • Built component: Publisher portal
  • Generated artifact: publisher.war (32MB)

Artifacts Replaced

  • Frontend: Replaced publisher folder in wso2am-4.6.0/repository/deployment/server/webapps/
  • Generated new publisher.war from build and extracted to publisher folder

Testing

No testing required for frontend changes (as per workflow guidelines for apim-apps repository).

Modified wso2am Pack Download

The complete modified wso2am-4.6.0 pack is available as a GitHub Actions artifact.

πŸ”— Download from GitHub Actions

Artifact Details:

  • Name: wso2am-4.6.0-issue-56.zip
  • Size: 508MB
  • How to Download:
    1. Click the link above
    2. Scroll to "Artifacts" section
    3. Download the zip file
    4. Extract and use directly

Contents: Complete wso2am pack with all updated artifacts ready to use.

Summary by CodeRabbit

  • Documentation
    • Updated documentation links to reference the latest documentation version, ensuring users access current information
    • Corrected the "Get Started" link in the onboarding experience to direct to the appropriate learning resource

ranuka-laksika avatar Nov 10 '25 09:11 ranuka-laksika

Walkthrough

Two documentation URLs are updated: the global docUrl configuration is changed to reference the latest version instead of 4.6.0, and the Service Catalog "Get Started" link is redirected to the correct API design documentation path.

Changes

Cohort / File(s) Summary
Configuration Settings
portals/publisher/src/main/webapp/site/public/conf/settings.json
Updated docUrl endpoint from version-specific 4.6.0 to latest to point to current documentation
Component Documentation Link
portals/publisher/src/main/webapp/source/src/app/components/ServiceCatalog/Listing/Onboarding.jsx
Updated "Get Started" link destination path from design/... to manage-apis/design/... for correct API design documentation reference

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

🐰 A rabbit hops through docs so fine,
From version fixed to latest line,
The catalog now guides just right,
To manage-apis, shining bright!
Documentation trails aligned. ✨

Pre-merge checks and finishing touches

βœ… 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 accurately describes the main change: updating documentation links in the service catalog to point to the latest version.
Linked Issues check βœ… Passed The PR successfully updates the documentation URL to the exact target specified in issue #4538, changing from version-specific to latest with the correct path structure.
Out of Scope Changes check βœ… Passed All changes are directly aligned with the linked issue requirement; only documentation URLs and their paths were updated without unrelated modifications.
Docstring Coverage βœ… Passed Docstring coverage is 100.00% which is sufficient. The required threshold is 80.00%.
✨ Finishing touches
  • [ ] πŸ“ Generate docstrings
πŸ§ͺ Generate unit tests (beta)
  • [ ] Create PR with unit tests
  • [ ] Post copyable unit tests in a comment

πŸ“œ Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

πŸ“₯ Commits

Reviewing files that changed from the base of the PR and between 9eea9b0a891463e5d625b2ae02413869ef0a71aa and 8551ab20e0f0d96c8b4a6be5e92a20dfedcf862c.

πŸ“’ Files selected for processing (2)
  • portals/publisher/src/main/webapp/site/public/conf/settings.json (1 hunks)
  • portals/publisher/src/main/webapp/source/src/app/components/ServiceCatalog/Listing/Onboarding.jsx (1 hunks)
⏰ 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). (1)
  • GitHub Check: build-product
πŸ”‡ Additional comments (2)
portals/publisher/src/main/webapp/site/public/conf/settings.json (1)

45-45: Documentation URL correctly updated to latest version.

The change from version-specific 4.6.0 to latest is appropriate. The URL https://apim.docs.wso2.com/en/latest/ is the official WSO2 API Manager latest documentation, ensuring the link remains current without requiring future updates. Note: Sandbox environment restrictions prevent direct accessibility verification via curl (returns 403), but the URL format is confirmed valid through external sources. Verify accessibility in your environment if needed.

portals/publisher/src/main/webapp/source/src/app/components/ServiceCatalog/Listing/Onboarding.jsx (1)

119-120: LGTM! Documentation path correctly updated.

The path change from design/create-api/... to manage-apis/design/create-api/... aligns with the WSO2 API Manager documentation structure, and the URL splitting addresses line-length constraints. No stale references to the old path pattern exist in the codebase, and the change is isolated to a single file with consistent usage across similar documentation 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 and usage tips.

coderabbitai[bot] avatar Nov 10 '25 09:11 coderabbitai[bot]