-
-
Notifications
You must be signed in to change notification settings - Fork 775
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
GITC-505: Grants explorer search improvements #9627
Conversation
578f522
to
831cd4b
Compare
app/grants/views.py
Outdated
@@ -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] |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
codewise lgtm
b1629a4
to
0dc9856
Compare
43622d2
to
ce4fc61
Compare
There was a problem hiding this 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" | ||
|
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
Description
Add enhancements to the search experience:
Refers/Fixes
GITC-505
Testing
Reviewed with Will locally