-
Notifications
You must be signed in to change notification settings - Fork 261
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Choreo] Implementations for burst controlling support with subscription policies #3523
Conversation
Name: subscriptionPolicyEvent.PolicyName, QuotaType: subscriptionPolicyEvent.QuotaType, | ||
subscriptionPolicy := types.SubscriptionPolicy{ | ||
ID: subscriptionPolicyEvent.PolicyID, | ||
TenantID: TenantID, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can remove TenantID from CC. Are we processing it?
@malinthaprasan wdyt?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TenantId will always be -1234 (super tenant) in Choreo. In some cases I have seen it's 0 in some variables when it's not set properly. Anyway there's no use case to process the tenant ID in Choreo. If we can remove it without breaking the code, +1 to do it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check how tenant ID parsed in other event types ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Checked during the PR review.
...t/enforcer/src/main/java/org/wso2/choreo/connect/enforcer/security/jwt/JWTAuthenticator.java
Outdated
Show resolved
Hide resolved
@renuka-fernando @slahirucd7 |
...arent/enforcer/src/main/java/org/wso2/choreo/connect/enforcer/models/SubscriptionPolicy.java
Outdated
Show resolved
Hide resolved
...arent/enforcer/src/main/java/org/wso2/choreo/connect/enforcer/models/SubscriptionPolicy.java
Outdated
Show resolved
Hide resolved
...r/src/main/java/org/wso2/choreo/connect/enforcer/subscription/SubscriptionDataStoreImpl.java
Outdated
Show resolved
Hide resolved
minor improvements changes for review suggestions changes for review suggestions
minor correction
[succeeded] Dataplane(EastUS) cluster : dev-deployment-v2 : 20240529.22 |
[succeeded] Dataplane(NorthEU) cluster : dev-deployment-v2 : 20240529.22 |
[succeeded] : dev-deployment-v2 : 20240529.22 |
[succeeded] Controlplane cluster : dev-deployment-v2 : 20240529.22 |
[failed] Dataplane(EastUS) cluster : stage-deployment-v2 : 20240530.3 |
[failed] Controlplane cluster : stage-deployment-v2 : 20240530.3 |
[succeeded] Dataplane(NorthEU) cluster : stage-deployment-v2 : 20240530.3 |
[succeeded] Dataplane(CDP2-WU2) cluster : stage-deployment-v2 : 20240530.3 |
[succeeded] Dataplane(EastUS) cluster : stage-deployment-v2 : 20240530.4 |
[] Controlplane cluster : stage-deployment-v2 : 20240530.6 |
[] Dataplane(EastUS) cluster : stage-deployment-v2 : 20240530.6 |
[] Dataplane(NorthEU) cluster : stage-deployment-v2 : 20240530.6 |
[] Dataplane(CDP2-WU2) cluster : stage-deployment-v2 : 20240530.6 |
[failed] Controlplane cluster : prod-deployment-v2 : 20240531.3 |
[succeeded] Dataplane(NorthEU) cluster : prod-deployment-v2 : 20240531.3 |
[succeeded] Dataplane(CDP2-WU2) cluster : prod-deployment-v2 : 20240531.3 |
[succeeded] Dataplane(EastUS) cluster : prod-deployment-v2 : 20240531.3 |
[] Dataplane(CDP2-WU2) cluster : prod-deployment-v2 : 20240531.4 |
[] Dataplane(EastUS) cluster : prod-deployment-v2 : 20240531.4 |
[] Controlplane cluster : prod-deployment-v2 : 20240531.4 |
[] Dataplane(NorthEU) cluster : prod-deployment-v2 : 20240531.4 |
[succeeded] Dataplane(CDP2-WU2) cluster : prod-deployment-v2 : 20240531.3 |
[succeeded] Controlplane cluster : prod-deployment-v2 : 20240531.3 |
[succeeded] Dataplane(EastUS) cluster : prod-deployment-v2 : 20240531.3 |
[succeeded] Dataplane(NorthEU) cluster : prod-deployment-v2 : 20240531.3 |
Purpose
$subject
Related issue: https://github.com/wso2-enterprise/choreo/issues/28599
Issues
Fixes #
Automation tests
Tested environments
Not Tested
Maintainers: Check before merge