Making WordPress.org

Opened 6 years ago

Closed 6 years ago

#3711 closed defect (bug) (fixed)

BUG: Broken Debounce on WordCamp Attendance UI

Reported by: dryanpress's profile dryanpress Owned by: coreymckrill's profile coreymckrill
Milestone: Priority: high
Component: WordCamp Site & Plugins Keywords: has-patch
Cc:

Description

The Camptix Attendance UI for WordCamp.org offers a search box that offers results as you type. The current debouncer unfortunately doesn't work, causing an Admin AJAX call for each typed character.

In Short, the wordcamp.org server could receive hundreds or thousands of requests-per-minute during a busy camp check in.

I've relocated the debounce function and lightly reduced the debounce timeout from 500 to 350ms so that check-in search still feels equally fast, but isn't slamming the server with requests.

Attachments (1)

3711.diff (1.0 KB) - added by dryanpress 6 years ago.

Download all attachments as: .zip

Change History (5)

#1 @Otto42
6 years ago

  • Component changed from General to WordCamp Site & Plugins

@dryanpress
6 years ago

#2 @dryanpress
6 years ago

  • Keywords has-patch added

#3 @Otto42
6 years ago

Through testing on an old WC site, I can confirm that the debounce for the search there doesn't work properly. Haven't tested this fix yet, but that is indeed the correct place to fix the problem.

#4 @coreymckrill
6 years ago

  • Owner set to coreymckrill
  • Resolution set to fixed
  • Status changed from new to closed

In 7454:

CampTix Attendance: Fix debounce on search input

Relocates the debounce call for the search function so that it works
correctly, preventing a new Ajax request from firing on every keystroke
in the search box in the Attendance UI.

Fixes #3711
Props dryanpress

Note: See TracTickets for help on using tickets.