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

replace UploadErrorEnum with shared.upload.constants.UploadErrorCode #820

Merged
merged 2 commits into from
Sep 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions graphql_api/types/enums/enums.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import enum
from typing import Self

from shared.upload.constants import UploadErrorCode as SharedUploadErrorCode


class OrderingParameter(enum.Enum):
NAME = "name"
Expand Down Expand Up @@ -75,10 +77,7 @@ class UploadType(enum.Enum):
CARRIEDFORWARD = "carriedforward"


class UploadErrorEnum(enum.Enum):
FILE_NOT_IN_STORAGE = "file_not_in_storage"
REPORT_EXPIRED = "report_expired"
REPORT_EMPTY = "report_empty"
UploadErrorEnum = SharedUploadErrorCode


class LoginProvider(enum.Enum):
Expand Down
3 changes: 3 additions & 0 deletions graphql_api/types/enums/upload_error_enum.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@ enum UploadErrorEnum {
FILE_NOT_IN_STORAGE
REPORT_EXPIRED
REPORT_EMPTY

UNKNOWN_PROCESSING
UNKNOWN_STORAGE
}
2 changes: 1 addition & 1 deletion requirements.in
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ factory-boy
fakeredis
freezegun
https://github.com/codecov/opentelem-python/archive/refs/tags/v0.0.4a1.tar.gz#egg=codecovopentelem
https://github.com/codecov/shared/archive/d4ceb0eeb71eaa855c793d11edd6db34d54bc883.tar.gz#egg=shared
https://github.com/codecov/shared/archive/d26f24176ae8761ee6fce9cd557198047759bcff.tar.gz#egg=shared
google-cloud-pubsub
gunicorn>=22.0.0
https://github.com/photocrowd/django-cursor-pagination/archive/f560902696b0c8509e4d95c10ba0d62700181d84.tar.gz
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ sentry-sdk[celery]==2.13.0
# shared
setproctitle==1.1.10
# via -r requirements.in
shared @ https://github.com/codecov/shared/archive/d4ceb0eeb71eaa855c793d11edd6db34d54bc883.tar.gz
shared @ https://github.com/codecov/shared/archive/d26f24176ae8761ee6fce9cd557198047759bcff.tar.gz
# via -r requirements.in
simplejson==3.17.2
# via -r requirements.in
Expand Down
Loading