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

Show number of sold and available tickets for each ticket type on the… #3075

Merged
merged 4 commits into from
Jan 30, 2017

Conversation

Princu7
Copy link
Contributor

@Princu7 Princu7 commented Jan 30, 2017

… specific event dashboard and the admin section. Fixes the issue #3039. Here are some screenshots:

Event section of User
screenshot from 2017-01-30 17-39-12

Event section of Admin
screenshot from 2017-01-30 17-39-36

Here is the test server deployed on Heroku
http://ancient-thicket-44821.herokuapp.com
Admin Credentials:

email-id: princu7@gmail.com
password: fossasia

@niranjan94 @SaptakS @mariobehling Please review and suggest improvements. Thanks!!

@mariobehling
Copy link
Member

@Princu7 Thank you. Could you take out the progress bar, please? No need to progress bar. The progress bar does not need to be there.

@mariobehling
Copy link
Member

Please also check the travis build. Thank you.

@Princu7
Copy link
Contributor Author

Princu7 commented Jan 30, 2017

@mariobehling I have made the required changes and updated the screenshots. I will correct the build mistake. Thanks

@codecov-io
Copy link

codecov-io commented Jan 30, 2017

Codecov Report

Merging #3075 into development will increase coverage by -0.08%.

@@               Coverage Diff               @@
##           development    #3075      +/-   ##
===============================================
- Coverage        76.11%   76.03%   -0.08%     
===============================================
  Files              222      222              
  Lines            14806    14790      -16     
===============================================
- Hits             11269    11246      -23     
- Misses            3537     3544       +7
Impacted Files Coverage Δ
app/views/super_admin/users.py 29.69% <ø> (+1.69%)
app/helpers/data_getter.py 83.5% <100%> (+0.16%)
app/views/super_admin/events.py 100% <100%> (ø)
app/helpers/ticketing.py 54.78% <66.66%> (-0.78%)
app/views/users/events.py 55.78% <66.66%> (+0.19%)
app/helpers/deployment/heroku.py 59.09% <ø> (-27.28%)
app/views/super_admin/super_admin.py 70.9% <ø> (-12.73%)
app/helpers/helpers.py 48.97% <ø> (-0.69%)

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 c7ba812...111bc50. Read the comment docs.

@coveralls
Copy link

Coverage Status

Changes Unknown when pulling bdff82d on Princu7:development into ** on fossasia:development**.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.07%) to 75.8% when pulling bdff82d on Princu7:development into a619703 on fossasia:development.

@@ -94,7 +94,7 @@ def get_invite_by_user_id(user_id):
@staticmethod
def get_all_events():
"""Method return all events"""
return Event.query.order_by(desc(Event.id)).filter_by(in_trash=False).all()
return Event.query.order_by(desc(Event.id)).filter_by().all()
Copy link
Contributor

Choose a reason for hiding this comment

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

Please explain this change.

Copy link
Contributor Author

@Princu7 Princu7 Jan 30, 2017

Choose a reason for hiding this comment

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

@SaptakS In the Super Admin event section, all_ticket_stats variable is supposed to store the information about the tickets of all the events including the trashed ones. Since the get_all_events() function didn't return the trashed events, the app crashed when an event was deleted in admin section. So I modified the definition of the function.

I looked at the code and there seems to be many places where this function is called. So modifying it wasn't a good idea. I will change it to its original definition and concat the all_events and trash_events when there is need for all the events including the trashed events. Thank you so much for pointing out the mistake :)

… specific event dashboard and the admin section

Removed the progress bar
@Princu7
Copy link
Contributor Author

Princu7 commented Jan 30, 2017

@SaptakS I have explained my mistake and corrected it. Please review it. Thanks.!!

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.07%) to 75.8% when pulling 80a7d89 on Princu7:development into 1b44958 on fossasia:development.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.07%) to 75.802% when pulling 80a7d89 on Princu7:development into 1b44958 on fossasia:development.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.07%) to 75.802% when pulling 80a7d89 on Princu7:development into 1b44958 on fossasia:development.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.07%) to 75.802% when pulling 542e1bd on Princu7:development into 7b06621 on fossasia:development.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.07%) to 75.802% when pulling 111bc50 on Princu7:development into c7ba812 on fossasia:development.

@mariobehling mariobehling merged commit 27f00e8 into fossasia:development Jan 30, 2017
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.

None yet

6 participants