You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I used the GitHub search to find a similar question and didn't find it.
I searched in the documentation/README.
I already searched in Google "How to do X" and didn't find any information.
I already read and followed all the tutorial in the docs/README and didn't find an answer.
Commit to Help
I commit to help with one of those options 👆
Description
First fix the passlib error by changing backend/pyproject.toml from "passlib[bcrypt]<2.0.0,>=1.7.4", to "libpass<2.0.0", temporarily. Run uv sync to update the dependencies. Run the steps according to .github/workflows/test-backend.yml to see that only the last 2 test failed with PostgreSQL:
tests/scripts/test_backend_pre_start.py F
tests/scripts/test_test_pre_start.py F
Steps to reproduce bug (keeping the passlib fix above):
In backend/app/core/config.py, replace the following lines:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
First Check
Commit to Help
Description
First fix the passlib error by changing
backend/pyproject.tomlfrom"passlib[bcrypt]<2.0.0,>=1.7.4",to"libpass<2.0.0",temporarily. Runuv syncto update the dependencies. Run the steps according to.github/workflows/test-backend.ymlto see that only the last 2 test failed with PostgreSQL:Steps to reproduce bug (keeping the passlib fix above):
backend/app/core/config.py, replace the following lines:and also
self._check_default_secret("POSTGRES_PASSWORD", self.POSTGRES_PASSWORD).Replace with:
backend/app/alembic/versionsand runuv run alembic revision --autogenerateto regenerate new migrations for SQLite..github/workflows/test-backend.yml:Result
See that
backend/tests/api/routes/test_items.py,test_private.pyandtest_users.pythat was passing when using PostgreSQL is now failing:This seem to be fixable by changing
backend/app/api/deps.pyline 41 fromuser = session.get(User, token_data.sub)to:but SQLModel in docs (https://sqlmodel.tiangolo.com/advanced/uuid/#create-a-record-with-a-uuid) advertise that selecting UUID in SQLite using string will work? Bumping SQLModel version manually to 0.0.27 in pyproject.toml and syncing doesn't help.
Operating System
Linux, Windows
Operating System Details
Linux machine provided by GitHub workspace, Windows 11
Python Version
3.12.*
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions