FOSSRIT / charsheet

Generate a developer character sheet based on external metrics.
Other
11 stars 0 forks source link

Give proper feedback on failed handle search #31

Closed dtgay closed 10 years ago

dtgay commented 11 years ago

I wrote a new handle_search view to go with the handle search form I added to the main page. It works fine for retrieving users it can find, but on a failed search, it simply returns to the home view.

We need to accomplish 2 things:

  1. Write code to flash a "handle not found" message upon returning to the home page, if possible. This is the part I'm having trouble working out. What is the best way flash a message on the next-loaded view (the home view)? Currently I only know how to flash a message on the view I'm in. Is there a way to send a flash message or otherwise send error message text to the next view?
  2. Write code to determine if the inputted handle can be found in the knowledge db. In this case, return to the home page with a failed search message, just like if a blank string was entered.
Qalthos commented 10 years ago

Both fixed in d716c24c90661c5a095e8c0a1cd00f04ab262284