Skip to content

Conversation

@shreyanshdwivedi
Copy link
Member

Fixes fossasia/open-event-frontend#2994

Checklist

  • I have read the Contribution & Best practices Guide and my PR follows them.
  • My branch is up-to-date with the Upstream development branch.
  • The unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)
  • All the functions created/modified in this PR contain relevant docstrings.

Short description of what this resolves:

Currently, order flow is broken due to one of the recent merged PR.

elif current_user.id == order.user_id:
if order.status != 'pending':
print(order.status)
if order.status != 'initializing':
Copy link
Contributor

Choose a reason for hiding this comment

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

This is again wrong. Pending orders can be updated. Users can pay and complete them.

@codecov
Copy link

codecov bot commented May 24, 2019

Codecov Report

Merging #5951 into development will not change coverage.
The diff coverage is 50%.

Impacted file tree graph

@@             Coverage Diff             @@
##           development   #5951   +/-   ##
===========================================
  Coverage         66.4%   66.4%           
===========================================
  Files              285     285           
  Lines            13893   13893           
===========================================
  Hits              9225    9225           
  Misses            4668    4668
Impacted Files Coverage Δ
app/api/orders.py 34.21% <0%> (ø) ⬆️
app/api/helpers/scheduled_jobs.py 22.34% <100%> (ø) ⬆️
app/__init__.py 86.3% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e261d23...908218a. Read the comment docs.

@shreyanshdwivedi
Copy link
Member Author

@CosmicCoder96 I've tried ordering a ticket -

  • paid and free tickets for logged in user
  • paid and free tickets for non-guest logged out user
  • paid and free tickets for guest user

However, when I tried to click on Pay via card from non-superadmin account, nothing happened and an error appeared on console - Error: [ember-cli-stripe] Missing required key param. Don't know if this issue was present earlier or not.

@abhinavk96
Copy link
Contributor

abhinavk96 commented May 24, 2019 via email

@abhinavk96 abhinavk96 changed the title [WIP] fixes the broken order flow fixes the broken order flow May 24, 2019
@abhinavk96
Copy link
Contributor

Need to merge this urgently to find out other broken things.

@abhinavk96 abhinavk96 merged commit a80f331 into fossasia:development May 24, 2019
@shreyanshdwivedi shreyanshdwivedi deleted the fixOrderFlow branch June 14, 2019 08:36
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.

Cannot place order after refactor

3 participants