Skip to content
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

Feature/real time usage update #807

Closed
wants to merge 25 commits into from

Conversation

notshivansh
Copy link
Contributor

No description provided.

libs/dao/src/main/java/com/akto/dto/billing/SyncLimit.java Outdated Show resolved Hide resolved
libs/dao/src/main/java/com/akto/dto/billing/SyncLimit.java Outdated Show resolved Hide resolved
@@ -566,6 +566,11 @@ public void startTestNew(ApiInfo.ApiInfoKey apiInfoKey, ObjectId testRunId,
if (!applyRunOnceCheck(apiInfoKey, testConfig, subCategoryEndpointMap, apiInfoKeyToHostMap, testSubCategory)) {
continue;
}

if(syncLimit.updateUsageLeftAndCheckSkip()){
continue;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Minor] Add a log here, print usage details

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@notshivansh lets add this?

Comment on lines 7 to 10
boolean isGranted;
public static final String IS_GRANTED = "isGranted";
public int overageFirstDetected = -1;
int overageFirstDetected = -1;
public static final String OVERAGE_FIRST_DETECTED = "overageFirstDetected";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can keep access modifiers of instance vars to be private if they have apt getters and setters

ankush-jain-akto pushed a commit that referenced this pull request Feb 11, 2024
@akto-app
Copy link

akto-app bot commented Feb 12, 2024

Test on juice_shop_demo_BOLA summary:

Issues:
High 0 High
High 0 Medium
High 0 Low

Vulnerability Type

Endpoints Affected

See full details on Akto

@akto-app
Copy link

akto-app bot commented Feb 12, 2024

Test on juice_shop_demo_BOLA summary:

Issues:
High 0 High
High 0 Medium
High 0 Low

Vulnerability Type

Endpoints Affected

See full details on Akto

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.

2 participants