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

Added support of active projects exception #1348

Merged
merged 4 commits into from
Jun 2, 2023

Conversation

Raalsky
Copy link
Contributor

@Raalsky Raalsky commented May 22, 2023

Before submitting checklist

  • Did you update the CHANGELOG? (not for test updates, internal changes/refactors or CI/CD setup)
  • Did you ask the docs owner to review all the user-facing changes?

@Raalsky Raalsky requested a review from normandy7 May 22, 2023 09:40
@@ -82,6 +83,9 @@ def handle_neptune_http_errors(response, exception: Optional[HTTPError] = None):
"WORKSPACE_IN_READ_ONLY_MODE": lambda response_body: NeptuneLimitExceedException(
reason=response_body.get("title", "Unknown reason")
),
"LIMIT_OF_ACTIVE_PROJECTS_REACHED": lambda response_body: ActiveProjectsLimitReachedException(
currentQuota=response_body.get("currentQuota", "<unknown key>")
Copy link
Contributor

Choose a reason for hiding this comment

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

unknown key -> unknown quota

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

src/neptune/management/exceptions.py Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented May 22, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: -0.10 ⚠️

Comparison is base (e888bc4) 79.81% compared to head (69848f1) 79.72%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1348      +/-   ##
==========================================
- Coverage   79.81%   79.72%   -0.10%     
==========================================
  Files         277      277              
  Lines       13589    13592       +3     
==========================================
- Hits        10846    10836      -10     
- Misses       2743     2756      +13     
Flag Coverage Δ
e2e- ?
macos-latest ?
py3.7 73.16% <100.00%> (-6.19%) ⬇️
py3.8 ?
py3.9 ?
ubuntu 73.16% <100.00%> (-6.41%) ⬇️
ubuntu-latest ?
unit 73.16% <100.00%> (-0.68%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...eptune/internal/backends/swagger_client_wrapper.py 94.11% <ø> (ø)
src/neptune/management/exceptions.py 99.07% <100.00%> (+0.02%) ⬆️

... and 13 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Collaborator

@normandy7 normandy7 left a comment

Choose a reason for hiding this comment

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

Proposed slightly more elaborate message.

src/neptune/management/exceptions.py Outdated Show resolved Hide resolved
Co-authored-by: Sabine <sabine.nyholm@neptune.ai>
@Raalsky Raalsky merged commit 9c2de8f into master Jun 2, 2023
@Raalsky Raalsky deleted the rj/active-projects-exception branch June 2, 2023 13:38
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.

3 participants