-
Notifications
You must be signed in to change notification settings - Fork 10
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
[risk=low][no ticket] Renaming of free tier in many locations #9092
base: main
Are you sure you want to change the base?
Conversation
5b91eb7
to
d70d699
Compare
d70d699
to
86e85cc
Compare
ce89215
to
4e22c38
Compare
@@ -1,14 +1,14 @@ | |||
package org.pmiops.workbench.initialcredits; | |||
package org.pmiops.workbench.utils; |
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.
these can be useful more generally
0aaf3b3
to
d5f2592
Compare
d5f2592
to
b4313ed
Compare
b4313ed
to
4ee1fe4
Compare
* 1- Get users who have active free tier workspaces 2- Iterate over these users in batches of X | ||
* and find the cost of their workspaces before/after | ||
*/ | ||
public void checkInitialCreditsUsage() { |
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.
unused! I assume this was replaced by checkInitialCreditsUsage(List<Long> userIdList)
at some point, which is still in use.
@@ -136,20 +91,4 @@ public Map<String, Double> getFreeTierWorkspaceCostsFromBQ() { | |||
|
|||
return liveCostByWorkspace; | |||
} | |||
|
|||
private int freeTierCronUserBatchSizeFromConfig() { |
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.
unused
|
||
// TODO updateCost queries for each workspace, can be optimized by getting all needed workspaces |
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.
not a new comment; just moved up slightly
@@ -404,13 +404,13 @@ public void listBillingAccounts_upgradeYES_freeYES_cloudYES() throws IOException | |||
assertThat(response.getBillingAccounts()).isEqualTo(expectedWorkbenchBillingAccounts); | |||
} | |||
|
|||
// billing upgrade is true, free tier is available, no cloud accounts |
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.
"billing upgrade" is an old feature flag. It's always true now. It means that it's possible for users to provide their own billing.
This is a cleanup PR renaming "free tier" and "free credits" to "initial credits" where appropriate.
This PR is not intended to be comprehensive. Some references to Free Tier remain.
PR checklist
[risk=no|low|moderate|severe]
in the PR title as outlined in CONTRIBUTING.md.