-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add InviteBucket model and migration: * Add model and migration * Add invite bucket factory * Add simple test to ensure relationships work as intended * Update test_delete_account to include invite and invite_bucket (and external connections) * Add route to add an email to the invite bucket * InviteBucket -> WaitingList * Add email_verified property to WaitingList * Add Confirm Email mail for WaitingList * Includes a confirm and leave action * Include signed tokens to verify email links * Add tests for the waiting list functions * Downgrade eslint back to 8 * Hookup login screen to allow joining the wait list * Add a waiting list action view with messages for confirming or leaving wait list * 🌐 Update German translation --------- Co-authored-by: Andreas Müller <[email protected]>
- Loading branch information
1 parent
e5eb6ef
commit 72ba61e
Showing
31 changed files
with
1,054 additions
and
151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
...appointment/migrations/versions/2024_06_26_2202-a9ca5a4325ec_create_waiting_list_table.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
"""create waiting list table | ||
Revision ID: a9ca5a4325ec | ||
Revises: f732d6e597fe | ||
Create Date: 2024-06-26 22:02:19.851617 | ||
""" | ||
|
||
from alembic import op | ||
import sqlalchemy as sa | ||
from sqlalchemy import ForeignKey, func | ||
|
||
from appointment.database.models import encrypted_type | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = 'a9ca5a4325ec' | ||
down_revision = 'f732d6e597fe' | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade() -> None: | ||
op.create_table( | ||
'waiting_list', | ||
sa.Column('id', sa.Integer, primary_key=True, index=True), | ||
sa.Column('email', encrypted_type(sa.String), unique=True, index=True, nullable=False), | ||
sa.Column('email_verified', sa.Boolean, nullable=False, index=True, default=False), | ||
sa.Column('invite_id', sa.Integer, ForeignKey('invites.id'), nullable=True, index=True), | ||
sa.Column('time_created', sa.DateTime, server_default=func.now()), | ||
sa.Column('time_updated', sa.DateTime, server_default=func.now()), | ||
) | ||
|
||
|
||
def downgrade() -> None: | ||
op.drop_table('waiting_list') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.