Skip to content

Prevent AWS resource names request for API Products#1370

Open
fiend365gdsv wants to merge 1 commit into
wso2:mainfrom
fiend365gdsv:fix-skip-amzn-resource-names-for-api-products
Open

Prevent AWS resource names request for API Products#1370
fiend365gdsv wants to merge 1 commit into
wso2:mainfrom
fiend365gdsv:fix-skip-amzn-resource-names-for-api-products

Conversation

@fiend365gdsv

Copy link
Copy Markdown

Fixes wso2/api-manager#5091

This PR prevents the Publisher UI from calling the AWS resource names endpoint for API Products.

API Products do not use AWS Lambda ARN resource mapping, so calling API.getAmznResourceNames(apiId) for API Products creates an unnecessary request.

The fix adds an API Product guard before invoking getAmznResourceNames.

@CLAassistant

CLAassistant commented Jun 19, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@coderabbitai

coderabbitai Bot commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

@fiend365gdsv, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 28 minutes and 47 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more credits in the billing tab to continue.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits.

🚦 How do rate limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan refill rate.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, the refill rate gradually slows as usage increases. The highest same-day bursts are limited more strictly.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 9bbf360b-f718-4012-ba71-6f6ce7a77ec8

📥 Commits

Reviewing files that changed from the base of the PR and between 5837654 and 2eb0376.

📒 Files selected for processing (1)
  • portals/publisher/src/main/webapp/source/src/app/components/Apis/Details/Endpoints/AWSLambda/Credentials.jsx
✨ 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 and usage tips.

@sonarqubecloud

Copy link
Copy Markdown

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.

Unncessary call to load amznResourceNames for API Products

2 participants