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

fix: add check if donation ticket has payment method enabled #6789

Merged
merged 1 commit into from Jan 26, 2020

Conversation

snitin315
Copy link
Member

Fixes #6788

Short description of what this resolves:

Server will throw an error Donation ticket must have a payment method as it throws in case of Paid Tickets

@auto-label auto-label bot added the fix label Jan 26, 2020
app/api/tickets.py Outdated Show resolved Hide resolved
app/api/tickets.py Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Jan 26, 2020

Codecov Report

Merging #6789 into development will not change coverage.
The diff coverage is 0%.

Impacted file tree graph

@@             Coverage Diff              @@
##           development    #6789   +/-   ##
============================================
  Coverage        65.28%   65.28%           
============================================
  Files              302      302           
  Lines            15277    15277           
============================================
  Hits              9974     9974           
  Misses            5303     5303
Impacted Files Coverage Δ
app/api/tickets.py 46.66% <0%> (ø) ⬆️

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 1559c4c...5cca5be. Read the comment docs.

@snitin315 snitin315 force-pushed the donation-ticket branch 2 times, most recently from ca151d7 to b4efb5f Compare January 26, 2020 11:02
app/api/tickets.py Outdated Show resolved Hide resolved
@iamareebjamal
Copy link
Member

Please run this and recommit:

pip install -r requirements/dev.txt
pre-commit install
black .

app/api/tickets.py Outdated Show resolved Hide resolved
@snitin315 snitin315 force-pushed the donation-ticket branch 2 times, most recently from 9060006 to bd4e62d Compare January 26, 2020 12:35
kushthedude
kushthedude previously approved these changes Jan 26, 2020
app/api/tickets.py Outdated Show resolved Hide resolved
@iamareebjamal iamareebjamal changed the title fix: payment method must be enabled for donation ticket fix: add check if donation ticket has payment method enabled Jan 26, 2020
@iamareebjamal iamareebjamal merged commit ac1ae07 into fossasia:development Jan 26, 2020
@snitin315 snitin315 deleted the donation-ticket branch February 5, 2020 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

user is able to save event without selecting payment method for donation ticket.
5 participants