-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Remove organizers from paginated list of registrations * Fix Github avatars and improve display of organizers This commit updates the backend EventOrganizer model to include the Github avatar of the user and likewise updates the frontend to ensure that the desired user avatar is displayed rather than the currently logged in user's avatar. This commit also removes organizer registrations from the list of registrations. Instead, organizers are displayed on the event details card. Clicking the organizer chip will allow you to email that organizer. * Remove can_register column from Event Entity This commit removes the can_register column from the Event Entity as it is simply a computer value based on registration_limit being greater than 0. It likewise updates all instances of can_register and either removes it or replaces the logic to just use registration_limit. * Generate migration script This commit generates the migration script for merging in to main using the migration generate script. * Clean up migration script file * Fix failing event service tests --------- Co-authored-by: Kris Jordan <[email protected]>
- Loading branch information
1 parent
2ec504e
commit 299c7ec
Showing
11 changed files
with
47 additions
and
37 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
32 changes: 32 additions & 0 deletions
32
backend/migrations/versions/17162b9faf79_remove_can_register_event_entity_column.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,32 @@ | ||
"""Migration for 232-remove-can-register-column-from-event | ||
Revision ID: 17162b9faf79 | ||
Revises: 1952e411745f | ||
Create Date: 2023-12-31 15:25:44.947516 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
revision = "17162b9faf79" | ||
down_revision = "1952e411745f" | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade() -> None: | ||
op.drop_column("event", "can_register") | ||
|
||
|
||
def downgrade() -> None: | ||
op.add_column( | ||
"event", | ||
sa.Column( | ||
"can_register", | ||
sa.Boolean(), | ||
nullable=False, | ||
default=False, | ||
server_default=sa.text("false"), | ||
), | ||
) |
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