Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GITC-505: Grants explorer search improvements #9627

Merged
merged 10 commits into from
Nov 3, 2021

Conversation

ksolo
Copy link
Contributor

@ksolo ksolo commented Oct 25, 2021

Description

Add enhancements to the search experience:

  1. show the query used during search
  2. delay search until the user is done typing
  3. loading image when fetching results
Refers/Fixes

GITC-505

Testing

Reviewed with Will locally

@ksolo ksolo force-pushed the gitc-505/grants-explorer-search-improvements branch from 578f522 to 831cd4b Compare October 25, 2021 18:48
@ksolo ksolo requested review from gdixon, thelostone-mc, chibie and jeremyschuurmans and removed request for gdixon October 25, 2021 19:02
@@ -777,7 +777,7 @@ def get_grants_by_filters(

def get_grant_type_cache(network):
try:
return JSONStore.objects.get(view=f'get_grant_types_{network}').data
return [JSONStore.objects.get(view=f'get_grant_types_{network}').data]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This looks like it was retrieving a dictionary and the front end is expecting an array. I wrapped it in a list to work with the front end. I'm happy to adjust how this is fixed.

Copy link
Contributor

Choose a reason for hiding this comment

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

The stored value should be a list:

Screenshot 2021-10-28 at 11 25 58

app/app/urls.py Show resolved Hide resolved
app/app/urls.py Show resolved Hide resolved
@ksolo ksolo marked this pull request as ready for review October 25, 2021 19:32
Copy link
Member

@thelostone-mc thelostone-mc left a comment

Choose a reason for hiding this comment

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

codewise lgtm

@ksolo ksolo force-pushed the gitc-505/grants-explorer-search-improvements branch from b1629a4 to 0dc9856 Compare October 26, 2021 15:49
@ksolo ksolo force-pushed the gitc-505/grants-explorer-search-improvements branch from 43622d2 to ce4fc61 Compare October 28, 2021 17:59
@ksolo ksolo requested a review from gdixon October 28, 2021 18:46
Copy link
Contributor

@gdixon gdixon left a comment

Choose a reason for hiding this comment

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

Thank you for addressing my feedback!! Just one small question on the commented out test, but otherwise, LGTM! 🚀

# assert bounty.title_or_desc == "TitleTest"
# bounty.title = None
# assert bounty.title_or_desc == "HTTP API Documentation"

Copy link
Contributor

Choose a reason for hiding this comment

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

Was this failing? Why have we commented it out?

Copy link
Member

Choose a reason for hiding this comment

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

He's removed out commented out code. :P

@thelostone-mc thelostone-mc merged commit 8f40afc into master Nov 3, 2021
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.

3 participants