-
Notifications
You must be signed in to change notification settings - Fork 10
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
cas -541: update search endpoint #546
Conversation
It looks like the default search is not filtering correctly: The URL is:
|
The I've adjusted the SQL; I get :
URL encoded Special characters I am blocked on due to known issue with |
For some reason this is not working on my side, I still get the same filters are before. Just for clarification, then the The |
I just pushed again and I think there was one change not pushed to the branch; could you try pulling again? I just tested again and it seems to be working as expected with I just did and get returned
|
|
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.
Make comments about three bugs found on filtering. It's possible to test using the frontend PR #542
This PR will now be handled by this: #574 |
•adds method
appendFiltersToResponse
•adds necessary fields onto search response
•extends SQL query
•adds
constructDynamicSQL
method for dynamic filter params•moves community models sql queries into constants
•creates new generalised model function
GetDefaultCommunities
for both homepage SQL and default search SQL ( this felt like the right thing to do as they use similar SQL queries)*Know Issue
if the search query contains a space, and its url encoded with a
%
I get a 400 back. This seems to be something to do with mux https://github.com/gorilla/mux/issues/77 I have tried the various fixes on the repo but so far none of the solutions working