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

Add ability to open and close ticket sales #766

Open
wants to merge 8 commits into
base: ticketing-v2
Choose a base branch
from

Conversation

aviupadhyayula
Copy link
Member

@aviupadhyayula aviupadhyayula commented Jan 3, 2025

Adds route for club leaders to suspend and resume ticket sales. If an event has its ticket sales paused, buyers can no longer view it via tickets or add them to cart. (Note that checkout initiation and completion is unaffected for now, as these components are going to be reworked for #758.)

Addresses #759.

(Note: when #762 is merged in, rebase this one to ticketing-v2.)

@aviupadhyayula aviupadhyayula requested a review from rm03 January 3, 2025 05:18
Comment on lines +2512 to +2518
for item in quantities:
if item.get("count", 0) <= 0:
return Response(
{"detail": "Ticket quantities must be positive", "success": False},
status=status.HTTP_400_BAD_REQUEST,
)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is unrelated to the PR. Just noticed that we weren't checking that quantities being added to the cart were positive.

@aviupadhyayula aviupadhyayula linked an issue Jan 3, 2025 that may be closed by this pull request
Copy link
Contributor

@Porcupine1 Porcupine1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Solid PR! LGTM

Base automatically changed from refactor-ticket-settings to ticketing-v2 January 4, 2025 02:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Allow club leaders to open and close ticket sales
2 participants