cal.diy icon indicating copy to clipboard operation
cal.diy copied to clipboard

App is crashing if user type a huge number of events

Open ericrommel opened this issue 3 years ago • 2 comments

Found a bug? Please fill out the sections below. 👍

Issue Summary

When we create a recurring event, there are 20 events as a limitation, however, users can set the number of events to have recurred. As this is not limited to 20, users can add huge numbers here and it can cause a crash.

Steps to Reproduce

  1. Create a recurring event with any number of events, limited to 20
  2. In another tab, try to book for this event type
  3. Set a day
  4. Check that it's possible to have more than the limitation from the event type (20 in that case)
  5. Type 999999999 as the number of events
  6. Set a time
  7. Check that the app will crash
  8. If refresh the page, it cost a lot of time to recover
  9. After recovery, it shows that there are 20805 more events, but if you try to mouse over that, it will crash again

Technical details

  • Google Chrome v114.0.5735.134 (Official Build) (64-bit)
  • Tested on Version preview for that PR (https://cal-5luk9i0hk-cal.vercel.app/event-types)

image

image

ericrommel avatar Jun 17 '23 20:06 ericrommel

This has been solved in some pr i guess as i tested in local setup.

Chiranjeev-droid avatar Jun 18 '23 16:06 Chiranjeev-droid

This has been solved in some pr i guess as i tested in local setup.

Could you please share that PR? Just checked and still happening.

ericrommel avatar Jun 28 '23 18:06 ericrommel