Refactor #7174

Increase delay on autocomplete fields

Added by Tomer Brisker almost 4 years ago. Updated 8 days ago.

Status:Closed
Priority:Normal
Assignee:Tomer Brisker
Category:Web Interface
Target version:1.6.0
Difficulty:trivial Team Backlog:
Triaged: Fixed in Releases:
Bugzilla link: Found in Releases:
Pull request:https://github.com/theforeman/foreman/pull/1703

Description

Currently every time a letter is pressed in an auto complete field, an AJAX request is fired causing the server to run 3-4 sql queries.
Adding a small delay will cause the request to be fired only once the user stops typing, saving requests and queries in case the user types in several characters in a row.

Associated revisions

Revision 233eea0b
Added by Tomer Brisker almost 4 years ago

Fixes #7174 - add delay on autocomplete

Revision 728946ac
Added by Tomer Brisker almost 4 years ago

Fixes #7174 - add delay on autocomplete

(cherry picked from commit 233eea0b63d565fd399af36013efeac2947208d1)

History

#1 Updated by The Foreman Bot almost 4 years ago

  • Status changed from Assigned to Ready For Testing
  • Target version set to 1.7.4
  • Pull request https://github.com/theforeman/foreman/pull/1703 added

#2 Updated by Dominic Cleal almost 4 years ago

  • Legacy Backlogs Release (now unused) set to 10

#3 Updated by Anonymous almost 4 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF