Skip to content
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

Move Venues list into the database #1347

Merged
merged 2 commits into from
Feb 6, 2024
Merged

Move Venues list into the database #1347

merged 2 commits into from
Feb 6, 2024

Conversation

lukegb
Copy link
Contributor

@lukegb lukegb commented Jan 30, 2024

Venues now have a list of proposal types for which they:

  • can be selected (allowed_types)
  • are in the default allowed set for (default_for_types)

Venues also have a capacity, and proposals are now associated with allowed venues using a foreign key rather than a comma-separated string.

There's some slightly hairy logic inside the migrations to properly populate capacity/default_for_types/allowed_types/allowed_venues the first time; some of these migrations are lossy in the reverse direction (so don't do that).

Realistically speaking there needs to be some better logic here, because actually different venues can host different types at different times, but we don't yet represent venue-slots in any meaningful sense in the data model.

Fixes #1210.

Venues now have a list of proposal types for which they:

* can be selected (allowed_types)
* are in the default allowed set for (default_for_types)

Venues also have a capacity, and proposals are now associated with allowed
venues using a foreign key rather than a comma-separated string.

There's some slightly hairy logic inside the migrations to properly populate
capacity/default_for_types/allowed_types/allowed_venues the first time; some of
these migrations are lossy in the reverse direction (so don't do that).

Realistically speaking there needs to be some better logic here, because
actually different venues can host different _types_ at different times, but we
don't yet represent venue-slots in any meaningful sense in the data model.

Fixes emfcamp#1210.
@russss russss enabled auto-merge (rebase) February 6, 2024 10:02
@russss russss merged commit 8bb5ae0 into emfcamp:main Feb 6, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix get_allowed_venues
2 participants