Skip to content

Update pydantic requirement from 2.10.6 to 2.11.1 in /backend #1168

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

Merged
merged 2 commits into from
Apr 1, 2025
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
16 changes: 10 additions & 6 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,14 @@ RUN set -ex \
EXPOSE 8400

HEALTHCHECK --interval=10s --timeout=5s --retries=5 \
CMD wget --spider http://0.0.0.0:8400/ping || exit 1
CMD ["wget", "--spider", "http://0.0.0.0:8400/ping", "||", "exit", "1"]

CMD pipenv run gunicorn \
-k uvicorn.workers.UvicornWorker \
bracket.app:app \
--bind 0.0.0.0:8400 \
--workers 1
CMD [ \
"pipenv", \
"run", \
"gunicorn", \
"-k", "uvicorn.workers.UvicornWorker", \
"bracket.app:app", \
"--bind", "0.0.0.0:8400", \
"--workers", "1" \
]
2 changes: 1 addition & 1 deletion backend/Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ gunicorn = "23.0.0"
heliclockter = "1.3.1"
parameterized = "0.9.0"
passlib = "1.7.4"
pydantic = "2.10.6"
pydantic = "2.11.1"
pydantic_settings = "2.1.0"
pyjwt = "2.10.1"
python-dotenv = "1.1.0"
Expand Down
2 changes: 1 addition & 1 deletion backend/bracket/sql/validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ async def check_foreign_keys_belong_to_tournament(
CourtId: check_court_belongs_to_tournament,
}

for field_key, field_info in some_body.model_fields.items():
for field_key, field_info in type(some_body).model_fields.items():
field_value = getattr(some_body, field_key)
if field_value is None:
continue
Expand Down
4 changes: 2 additions & 2 deletions frontend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,6 @@ EXPOSE 3000
ENTRYPOINT ["/app/entrypoint.sh"]

HEALTHCHECK --interval=10s --timeout=5s --retries=5 \
CMD wget --spider http://localhost:3000 || exit 1
CMD ["wget", "--spider", "http://0.0.0.0:3000", "||", "exit", "1"]

CMD yarn start
CMD ["yarn", "start"]