-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
fix: update scheduler time constraint for pending tickets #5926
fix: update scheduler time constraint for pending tickets #5926
Conversation
98ea0f3
to
76b7b90
Compare
76b7b90
to
23589ad
Compare
@iamareebjamal I've to update the PR bcoz of conflicts. Please review now 😅 |
Codecov Report
@@ Coverage Diff @@
## development #5926 +/- ##
============================================
Coverage 66.39% 66.39%
============================================
Files 286 286
Lines 13958 13958
============================================
Hits 9268 9268
Misses 4690 4690
Continue to review full report at Codecov.
|
Let's wait till it's frontend counterpart is merged. fossasia/open-event-frontend#2955 |
@@ -139,7 +139,7 @@ def after_create_object(self, order, data, view_kwargs): | |||
# TicketingManager.calculate_update_amount(order) | |||
|
|||
# send e-mail and notifications if the order status is completed | |||
if order.status == 'completed': | |||
if order.status == 'completed' or order.status == 'placed': |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shreyanshdwivedi Your logic on FE and here don't agree, over there, after setting the status of order as placed, you are asking for user to fill payment details, where as this would actually send the tickets to him.
https://github.com/fossasia/open-event-frontend/pull/2955/files#r285388216
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll be updating front-end logic and display a different success message.
ensure placed orders get notifications/mails/completed_at update too
45a0dbf
23589ad
to
45a0dbf
Compare
45a0dbf
to
05f3f2c
Compare
@CosmicCoder96 @iamareebjamal please review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shreyanshdwivedi Won't the orders which are in the initializing
state need to be put in expired
state when the timer is over, I don't see the logic for that in this PR.
@CosmicCoder96 please review now :) |
Fixes fossasia/open-event-frontend#2951
Checklist
development
branch.Short description of what this resolves:
Tickets that are unpaid are showing up as placed. Expected: Should show up as "Pending" and Expire after 3 days
Changes proposed in this pull request: