Fix GraphQL API rate limiting dropdown disabling logic
Fixes issue #3724 - Multiple UI issues related to GraphQL APIs
Issue URL: https://github.com/wso2/api-manager/issues/3724
Changes Made
- Fixed the dropdown disabling logic for GraphQL API rate limiting in Operations page
- Changed
isOperationRateLimiting={!apiThrottlingPolicy}toisOperationRateLimiting={apiThrottlingPolicy === null} - This ensures that operation-level dropdowns are properly disabled when API-level rate limiting is selected
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:
- When API-level is selected,
apiThrottlingPolicyis initially set to empty string ('') - The logic was using
!apiThrottlingPolicywhich evaluates totruefor empty string - This kept operation dropdowns enabled until a policy was actually selected
Solution
The fix changes the condition to explicitly check for null value, which correctly identifies when operation-level rate limiting should be disabled.
Build Information
- Built using Java 11 and Maven 3.6.3
- Generated artifacts: publisher.war
- Location:
portals/publisher/target/publisher.war
Artifact Replacement
- Replaced
publisherfolder in wso2am-4.6.0 pack - Location:
wso2am-4.6.0/repository/deployment/server/webapps/publisher
Modified wso2am-4.6.0 Pack (GitHub Actions Artifact)
The complete modified wso2am-4.6.0 pack with all updated artifacts has been uploaded as a GitHub Actions artifact.
Download Link: 🔗 Download from GitHub Actions Run
Artifact Details:
-
Artifact Name:
wso2am-4.6.0-issue-30.zip - Location: Available in the GitHub Actions workflow run linked above
-
How to Download:
- Click the GitHub Actions run link above
- Scroll down to the "Artifacts" section at the bottom of the page
- Download the artifact:
wso2am-4.6.0-issue-30.zip - Extract and use the modified pack directly
What's included:
- Updated
publisher.warwith the fix for GraphQL API rate limiting dropdown logic - Complete
wso2am-4.6.0directory structure - Ready to use without any additional build steps
Testing
No testing required for frontend repository changes as per workflow guidelines.
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