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

TSPS-405 Add quota units to quota info response #45

Merged
merged 2 commits into from
Feb 26, 2025

Conversation

mmorgantaylor
Copy link
Collaborator

@mmorgantaylor mmorgantaylor commented Feb 26, 2025

Description

We've added quota units to be displayed to the user when they request their quota info:

✗ terralab quota array_imputation
Pipeline: array_imputation
  Quota Limit: 10000 samples
  Quota Used: 500 samples
  Quota Available: 9500 samples

Note tests will fail here until the service PR is merged and this PR has been updated with the new client version.

Jira Ticket

https://broadworkbench.atlassian.net/browse/TSPS-405

Checklist (provide links to changes)

@@ -173,7 +173,7 @@ def _exchange_code_for_response(
if "error" in json_response:
# see https://learn.microsoft.com/en-us/entra/identity-platform/v2-oauth2-auth-code-flow#error-response-1
LOGGER.debug(
f"Error in authentication flow exchanging code for response: {json_response["error"]}; error description: {json_response["error_description"]}"
f'Error in authentication flow exchanging code for response: {json_response["error"]}; error description: {json_response["error_description"]}'
Copy link
Collaborator Author

@mmorgantaylor mmorgantaylor Feb 26, 2025

Choose a reason for hiding this comment

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

unrelated to this PR, but this will fix the issue George saw previously

Copy link
Collaborator

Choose a reason for hiding this comment

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

do we know what was causing this to be an "error" ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

does seem to be a python version thing. this error comes up using python 3.10 but not using python 3.12.

Copy link
Collaborator

@jsotobroad jsotobroad left a comment

Choose a reason for hiding this comment

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

looks good, the single quote is annoying

@@ -173,7 +173,7 @@ def _exchange_code_for_response(
if "error" in json_response:
# see https://learn.microsoft.com/en-us/entra/identity-platform/v2-oauth2-auth-code-flow#error-response-1
LOGGER.debug(
f"Error in authentication flow exchanging code for response: {json_response["error"]}; error description: {json_response["error_description"]}"
f'Error in authentication flow exchanging code for response: {json_response["error"]}; error description: {json_response["error_description"]}'
Copy link
Collaborator

Choose a reason for hiding this comment

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

do we know what was causing this to be an "error" ?

@mmorgantaylor mmorgantaylor merged commit 35baa22 into main Feb 26, 2025
5 checks passed
@mmorgantaylor mmorgantaylor deleted the TSPS-405_quota_units branch February 26, 2025 20:01
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