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: Removing is_ticketing_enabled from event models #6634

Merged
merged 5 commits into from Nov 29, 2019

Conversation

kushthedude
Copy link
Member

@codecov
Copy link

codecov bot commented Nov 28, 2019

Codecov Report

Merging #6634 into development will decrease coverage by <.01%.
The diff coverage is 0%.

Impacted file tree graph

@@               Coverage Diff               @@
##           development    #6634      +/-   ##
===============================================
- Coverage        65.34%   65.34%   -0.01%     
===============================================
  Files              298      298              
  Lines            15242    15239       -3     
===============================================
- Hits              9960     9958       -2     
+ Misses            5282     5281       -1
Impacted Files Coverage Δ
app/api/tickets.py 48.54% <ø> (+0.92%) ⬆️
app/api/schema/events.py 91.79% <ø> (-0.07%) ⬇️
app/api/events.py 21.89% <0%> (ø) ⬆️
app/models/event.py 78.57% <0%> (-0.36%) ⬇️

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 58425a2...4ace961. Read the comment docs.

@iamareebjamal
Copy link
Member

Don't drop the column please, just remove the field from schema and logic for it

app/api/events.py Outdated Show resolved Hide resolved
@kushthedude
Copy link
Member Author

@iamareebjamal Please have a look

@iamareebjamal
Copy link
Member

Fix dredd tests

@kushthedude kushthedude reopened this Nov 29, 2019
@kushthedude
Copy link
Member Author

@iamareebjamal Why the module is getting treated as None Type in Dredd Tests ?

@iamareebjamal
Copy link
Member

Because modules are not added in the hooks

Copy link
Member

@mrsaicharan1 mrsaicharan1 left a comment

Choose a reason for hiding this comment

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

Is the PR really doing what it's supposed to do?

elif data.get('is_ticketing_enabled', True) and not modules.ticket_include:
raise ForbiddenException({'source': '/data/attributes/is-ticketing-enabled'},
elif not modules.ticket_include:
raise ForbiddenException({'source': ''},
"Ticketing is not enabled in the system")
Copy link
Member

Choose a reason for hiding this comment

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

"This event doesn't have any tickets"

@kushthedude
Copy link
Member Author

kushthedude commented Nov 29, 2019 via email

@mrsaicharan1
Copy link
Member

Okay.

@kushthedude
Copy link
Member Author

@iamareebjamal Please review and merge

@iamareebjamal iamareebjamal changed the title feat: Removing is_ticketing_enabled from event models fix: Removing is_ticketing_enabled from event models Nov 29, 2019
@auto-label auto-label bot added fix and removed feature labels Nov 29, 2019
@iamareebjamal iamareebjamal merged commit 113ffcd into fossasia:development Nov 29, 2019
@kushthedude kushthedude deleted the ticket branch November 29, 2019 18:09
codedsun pushed a commit to codedsun/open-event-server that referenced this pull request Dec 22, 2019
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.

None yet

4 participants