Fix: Update service catalog documentation link to latest version
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/tomanage-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
docUrlfromhttps://apim.docs.wso2.com/en/4.6.0/tohttps://apim.docs.wso2.com/en/latest/
- Updated
- Modified:
portals/publisher/src/main/webapp/source/src/app/components/ServiceCatalog/Listing/Onboarding.jsx- Updated documentation path to include
manage-apisprefix - Fixed line length linting issue by properly formatting the URL concatenation
- Updated documentation path to include
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
publisherfolder inwso2am-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:
- Click the link above
- Scroll to "Artifacts" section
- Download the zip file
- 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
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.0tolatestis 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/...tomanage-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.
Comment @coderabbitai help to get the list of available commands and usage tips.
Quality Gate passed
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code