jhauserw3241 / cdcdb-webserver

Python3/Flask web server for DB final project
https://cdcdb.system33.pw
1 stars 1 forks source link

Do we want to be able to search the people? #20

Open pastly opened 7 years ago

pastly commented 7 years ago

For example: live filtering so that the index of all people isn't so long.

If answer is yes, I suggest low priority.

Deedasmi commented 7 years ago

I'd be fine with ILIKE matches.

pastly commented 7 years ago

For the gory implementation details, @Deedasmi, I'm planning on live search results. I will add a search route to people.

GET /people/search/<term>

And it returns all rows ILIKE <term> on first, last, or preferred name. JavaScript will make the request and update the DOM.

I did this for my nusic project and it worked great (for one user :p)

Deedasmi commented 7 years ago

Relates to https://github.com/pastly/db-final-project/issues/22 for DB side