You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 25, 2025. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 25, 2025. It is now read-only.
As a user, I can search using the search bar in the navigation (implemented with PostgreSQL queries) #349
changed the title [-]Add Search bar to navigation with PostgreSQL queries[/-][+]As a user, I can search using the search bar in the navigation (implemented with PostgreSQL queries)[/+]on Feb 23, 2020
@Zeko369 please let me know if you need help setting this up, are you planning to use Axios? We can coordinate at any time after 5 pm eastern time if you need help. Thanks
We're not using axios, we have our own server/client implementation with cross-fetch.
This should be a part of fetchEvents on homepage, so you would actually want to use a redux store for it and everything.
But for simplicity you can just use cross-fetch and useState to query some events according to the search param for example api/v1/events?serach=FooBar
This is more of a API issue, I'll handle it in a today, but for now you can stub it.
@ojeytonwilliams@allella@Zeko369 , Should this be implemented with Full text search of Postgres? If not , Could you please guide me on how the backend logic for search api should be implemented?
@Ravichandra-C this project switched to prisma in the meantime, and there is a preview feature in prisma (needs to be enabled but then works) that allows you to do full-text-search from JS without writing any raw SQL.
@Ravichandra-C if you want to go ahead with this, go for it. It's a bit risky to rely on a preview feature, but if there are issues with search it won't render Chapter unusable.
In the interests of getting the MVP done, I think this can move to Nice to Have. It's 100% a feature we want, but we can see how Chapter functions without it first and focus on discovery once we have something to discover.
@allella do you remember the approach re: Roadmap and so on? I was wondering if we should have MVP and Roadmap issues both open, but mutually exclusive. Right now we have some Roadmap issues like #434 which are finished and one #264 that is both MVP and Roadmap. This is a little counter-intuitive.
We moved the Search feature to the Roadmap since there will initially be about 10 fCC chapters testing the first iteration of the application.
@ojeytonwilliams Roadmap has been used to track issues which we want to at least come back to and not forget. So, there's no rating, but we can remove issues from the Roadmap on a future review.
Activity
allella commentedon Feb 23, 2020
The backend logic of this has been discussed on #112
[-]Add Search bar to navigation with PostgreSQL queries[/-][+]As a user, I can search using the search bar in the navigation (implemented with PostgreSQL queries)[/+]xarielx commentedon Feb 27, 2020
@Zeko369 please let me know if you need help setting this up, are you planning to use Axios? We can coordinate at any time after 5 pm eastern time if you need help. Thanks
Zeko369 commentedon Feb 27, 2020
We're not using axios, we have our own server/client implementation with
cross-fetch.This should be a part of
fetchEventson homepage, so you would actually want to use a redux store for it and everything.But for simplicity you can just use
cross-fetchand useState to query some events according to the search param for exampleapi/v1/events?serach=FooBarThis is more of a API issue, I'll handle it in a today, but for now you can stub it.
xarielx commentedon Feb 27, 2020
Mock search bar with Material UI. refs freeCodeCamp#349
Mock search bar with Material UI. refs #349 (#409)
Revert "Mock search bar with Material UI. refs #349 (#409)"
Revert "Mock search bar with Material UI. refs #349 (#409)" (#414)
allella commentedon Mar 8, 2021
Here's a visual of the search bar in the navigation on the homepage mock-up.
allella commentedon Mar 8, 2021
#414 and the feat/search has much of the search bar mocked up in Material UI
Ravichandra-C commentedon Jan 2, 2022
@Zeko369 Can I work on this issue?
Zeko369 commentedon Jan 2, 2022
@Ravichandra-C Hop on it
Ravichandra-C commentedon Jan 11, 2022
@ojeytonwilliams @allella @Zeko369 , Should this be implemented with Full text search of Postgres? If not , Could you please guide me on how the backend logic for search api should be implemented?
allella commentedon Jan 11, 2022
I'll defer to Oliver or the earlier contributors on how to approach this one.
Zeko369 commentedon Jan 11, 2022
@Ravichandra-C this project switched to prisma in the meantime, and there is a preview feature in prisma (needs to be enabled but then works) that allows you to do full-text-search from JS without writing any raw SQL.
Take a look prisma docs for the feature
ojeytonwilliams commentedon Jan 11, 2022
That's awesome, thanks for sharing it @Zeko369
@Ravichandra-C if you want to go ahead with this, go for it. It's a bit risky to rely on a preview feature, but if there are issues with search it won't render Chapter unusable.
ojeytonwilliams commentedon May 13, 2022
In the interests of getting the MVP done, I think this can move to Nice to Have. It's 100% a feature we want, but we can see how Chapter functions without it first and focus on discovery once we have something to discover.
@allella do you remember the approach re: Roadmap and so on? I was wondering if we should have MVP and Roadmap issues both open, but mutually exclusive. Right now we have some Roadmap issues like #434 which are finished and one #264 that is both MVP and Roadmap. This is a little counter-intuitive.
allella commentedon May 13, 2022
@ojeytonwilliams Quincy was tagging with Roadmap and closing to avoid the noise of having open issues.
I suppose we'd just re-open a subset of issues from the Roadmap when they are ready for implementation.
For the two issues you mentioned, I've re-tagged them to fit the pattern.
ojeytonwilliams commentedon May 13, 2022
So: closed Roadmap = nice to have, but for the future, open Roadmap = nice to have, and worth implementing if someone is interested, but low priority
Is that about right?
allella commentedon May 13, 2022
We moved the Search feature to the Roadmap since there will initially be about 10 fCC chapters testing the first iteration of the application.
@ojeytonwilliams Roadmap has been used to track issues which we want to at least come back to and not forget. So, there's no rating, but we can remove issues from the Roadmap on a future review.