-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
Note: This issue depends on #1256 to be completed and its PR merged before it can be started.
Converting models.py to SQLAlchemy 2.0 standards is a complex process, this issue is for updating the following model classes:
-
VerifyCode -
WebauthnCredential -
Event
These models require the following steps to be done for them (explained in Convert models.py classes to using SQLAlchemy 2.0 standards #1246):
- Use of Mapped and Type Hints
- Relationships
- Use of Mapped for Collections
- Constraints and Indexes
- Enum and Other Columns
- Class Methods and Properties
- Sessions
Acceptance Criteria:
- Make the necessary changes to the model fields
- Double check that running the migrations and tests still work as expected with no deviation from the previous code
- Verify that a deploy to staging works with the changes once merged
Security Considerations
As SQLAlchemy 2.0+ is now released, the older 1.4 way is deprecated, and may not recieve security updates, as well as are expected to be completely phased out of the codebase in the relatively near future.
Other than that, there's really nothing. The end goal should be that this changes models.py and doesn't impact anything else.
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
Issue Backlog