Fix GraphQL API rate limiting dropdown disabling logic #1211
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.



Fixes issue #3724 - Multiple UI issues related to GraphQL APIs
Issue URL: wso2/api-manager#3724
Changes Made
isOperationRateLimiting={!apiThrottlingPolicy}toisOperationRateLimiting={apiThrottlingPolicy === null}Problem Description
When changing from operation level to API level rate limiting for a GraphQL API, operation level rate limiting selection dropdowns were not being disabled immediately. The issue occurred because:
apiThrottlingPolicyis initially set to empty string ('')!apiThrottlingPolicywhich evaluates totruefor empty stringSolution
The fix changes the condition to explicitly check for
nullvalue, which correctly identifies when operation-level rate limiting should be disabled.Build Information
portals/publisher/target/publisher.warArtifact Replacement
publisherfolder in wso2am-4.6.0 packwso2am-4.6.0/repository/deployment/server/webapps/publisherModified wso2am-4.6.0 Pack (GitHub Actions Artifact)
The complete modified
wso2am-4.6.0pack with all updated artifacts has been uploaded as a GitHub Actions artifact.Download Link:
🔗 Download from GitHub Actions Run
Artifact Details:
wso2am-4.6.0-issue-30.zipwso2am-4.6.0-issue-30.zipWhat's included:
publisher.warwith the fix for GraphQL API rate limiting dropdown logicwso2am-4.6.0directory structureTesting
No testing required for frontend repository changes as per workflow guidelines.