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

Lazy loading of tickets #318

Closed
cbellone opened this issue Aug 4, 2017 · 7 comments
Closed

Lazy loading of tickets #318

cbellone opened this issue Aug 4, 2017 · 7 comments
Assignees
Milestone

Comments

@cbellone
Copy link
Member

cbellone commented Aug 4, 2017

Remove tickets from /admin/api/events/eventname.json response.
This will improve performances of the event detail page, especially in case of slow internet connection or big-size events.

The tickets should be loaded on-demand when the user clicks on the "tickets" button on a specific category.

@syjer
Copy link
Member

syjer commented Aug 9, 2017

As it's a quite large change, it will be done step by step by removing the use of the full event+categories+ticket:

Optimize pending payments mvc controllers call:

  • simplify: /events/{eventName}/pending-payments
  • implement: /events/{eventName}/pending-payments-count

@syjer
Copy link
Member

syjer commented Aug 9, 2017

  • Will need to remove: eventStatisticsManager.fillWithStatistics which is a big bottleneck

@syjer
Copy link
Member

syjer commented Aug 9, 2017

TicketReservationManager.fetchWaitingForPayment -> we have a n+1 sql call here: will be simplified later

syjer added a commit that referenced this issue Aug 9, 2017
syjer added a commit that referenced this issue Aug 9, 2017
syjer added a commit that referenced this issue Aug 9, 2017
syjer added a commit that referenced this issue Aug 9, 2017
syjer added a commit that referenced this issue Aug 9, 2017
@syjer
Copy link
Member

syjer commented Aug 10, 2017

  • To fix: check-in list seems to be broken, looks like the loading was done implicitely as a side effect

syjer added a commit that referenced this issue Aug 10, 2017
@syjer
Copy link
Member

syjer commented Aug 10, 2017

Remove

  • EventStatisticsManager.getSingleEventWithStatistics
  • EventWithStatistics -> switch to EventStatistic

syjer added a commit that referenced this issue Aug 10, 2017
syjer added a commit that referenced this issue Aug 11, 2017
syjer added a commit that referenced this issue Aug 11, 2017
* #318 initial works

* #318 add ticket category+stat view in event

* #318 add tokens in ticket category, fix @JsonIgnore use to hide embedded events/stats
@syjer
Copy link
Member

syjer commented Aug 11, 2017

TODO:

  • lazy load tickets in each ticket category in event view
  • fix stats in event overview

syjer added a commit that referenced this issue Aug 11, 2017
syjer added a commit that referenced this issue Aug 11, 2017
syjer added a commit that referenced this issue Aug 11, 2017
syjer added a commit that referenced this issue Aug 11, 2017
syjer added a commit that referenced this issue Aug 12, 2017
syjer added a commit that referenced this issue Aug 13, 2017
@syjer
Copy link
Member

syjer commented Aug 13, 2017

should be done

@syjer syjer closed this as completed Aug 13, 2017
syjer added a commit that referenced this issue Aug 14, 2017
convert from string to moment js object
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants