Skip to content

AJAX-based person filter#670

Merged
elad-eyal merged 6 commits intofrab:masterfrom
elad-eyal:filter_people_ajax
Dec 28, 2020
Merged

AJAX-based person filter#670
elad-eyal merged 6 commits intofrab:masterfrom
elad-eyal:filter_people_ajax

Conversation

@elad-eyal
Copy link
Collaborator

@elad-eyal elad-eyal commented Nov 23, 2019

Following a comment from @erdgeist I tried to rewrite the person-filter so that it is server-based and thus more responsive in deployments with large number of people in the database.

Up to 99 names are sent to the web client at a time, in which case they are listed in the dropbox selection box:

image

image

If there are too many matches, a message is displayed encouraging the user to keep typing

image

Once the text typed is specific enough to indicate an individual, the dropbox is replaced with a text box. There's no need to press ENTER to accept it.

image

Typing a person ID in the filter box works too - but it assumes the ID is complete. (So typing 5 will not match id 51 or 52)

image

@elad-eyal elad-eyal changed the title Filter people ajax people filer using ajax Nov 23, 2019
@elad-eyal elad-eyal changed the title people filer using ajax people filter using ajax Nov 24, 2019
@elad-eyal elad-eyal mentioned this pull request Nov 27, 2019
@elad-eyal elad-eyal changed the title people filter using ajax AJAX-based person filter Feb 2, 2020
@elad-eyal elad-eyal force-pushed the filter_people_ajax branch from 7c5a134 to 233b991 Compare March 12, 2020 16:54
@elad-eyal
Copy link
Collaborator Author

Added test

@elad-eyal elad-eyal force-pushed the filter_people_ajax branch 3 times, most recently from 242f951 to ab622ab Compare July 12, 2020 16:23
@elad-eyal elad-eyal requested a review from erdgeist October 11, 2020 18:54
@elad-eyal elad-eyal requested a review from saerdnaer December 18, 2020 09:57
Copy link
Contributor

@saerdnaer saerdnaer left a comment

Choose a reason for hiding this comment

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

LGTM

@elad-eyal
Copy link
Collaborator Author

Thank you @saerdnaer . I will merge this in 7 days if I don't get any feedback to the contrary.

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.

2 participants