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

Add search functionality #117

Closed
wants to merge 25 commits into from
Closed

Add search functionality #117

wants to merge 25 commits into from

Conversation

froi
Copy link
Member

@froi froi commented Jan 18, 2020

What's in here

Adding full text search functionality to the app using PostgreSQL as our search backend.

What's the plan

  • Add a search vector using municipality, title, tags, and content fields from our model.
  • TBD

Closes #105

@froi
Copy link
Member Author

froi commented Jan 19, 2020

@jpadilla Here's some basic search functionality.

initial-search-test-2

Froilan Irizarry added 17 commits January 19, 2020 18:03
Signed-off-by: Froilan Irizarry <[email protected]>
Signed-off-by: Froilan Irizarry <[email protected]>
Signed-off-by: Froilan Irizarry <[email protected]>
Signed-off-by: Froilan Irizarry <[email protected]>
Signed-off-by: Froilan Irizarry <[email protected]>
Signed-off-by: Froilan Irizarry <[email protected]>
- Added query field to the FilterForm

Signed-off-by: Froilan Irizarry <[email protected]>
- Search now uses tag filter
- Search now filters by the final search vector

Signed-off-by: Froilan Irizarry <[email protected]>
Signed-off-by: Froilan Irizarry <[email protected]>
- Search view now uses tag filter and text search
- cache_key now uses query as part of its key
- removed redundant filters

Signed-off-by: Froilan Irizarry <[email protected]>
Signed-off-by: Froilan Irizarry <[email protected]>
Signed-off-by: Froilan Irizarry <[email protected]>
@froi froi added the stale Been over two weeks without any movement. label Feb 17, 2020
Froilan Irizarry and others added 4 commits February 29, 2020 21:12
Signed-off-by: Froilan Irizarry <[email protected]>
- Tags dropdown does search on change. Form submit button needs to be pressed.
- Input field takes free text and is not required to search with tag filter.

Signed-off-by: Froilan Irizarry <[email protected]>
- Tags dropdown does search on change. Form submit button needs to be pressed.
- Input field takes free text and is not required to search with tag filter.

Signed-off-by: Froilan Irizarry <[email protected]>
Signed-off-by: Froilan Irizarry <[email protected]>
@froi froi removed the stale Been over two weeks without any movement. label Mar 1, 2020
@froi froi marked this pull request as ready for review March 1, 2020 03:58
@froi
Copy link
Member Author

froi commented Mar 1, 2020

Hola a todos. Perdon que esto tomo tanto tiempo.

La funcionalidad de busqueda esta lista para probar. Lo que queda por hacer es refinar el UI. Para esto necesito un poco de ayuda.

Esta es la pagina principal.

image

Estoy seguro que @gcollazo no le va gustar esto 😝 pero no se que hacer para arreglar esto con los styles existentes.

Esta es la pagina con los resultados de busqueda

image

Cambios

  • El dropdown ya no somete la form cuando el usuario escoge una opcion
  • Los campos de busqueda son opcionales para ejecutar una busqueda

@froi froi requested a review from jpadilla March 1, 2020 04:04
@froi froi requested a review from gcollazo March 1, 2020 04:04
@froi froi added feature New feature or request help wanted Extra attention is needed labels Mar 1, 2020
@froi froi mentioned this pull request Mar 1, 2020
@github-actions
Copy link

github-actions bot commented Apr 5, 2020

This Pull Request is being marked as Stale because it has 30 days without any interaction. CC: @gcollazo

Copy link
Collaborator

@gcollazo gcollazo left a comment

Choose a reason for hiding this comment

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

LGTM... me gustaría ver screenshots si puedes @froi

@gcollazo
Copy link
Collaborator

gcollazo commented Apr 7, 2020

UPS sorry no vi los screenshots de arriba 🤷‍♂️

@froi
Copy link
Member Author

froi commented Apr 7, 2020

Creo que todavía necesita cariño la parte del UI, but up to you.

@github-actions github-actions bot closed this Apr 19, 2020
@froi froi reopened this Apr 19, 2020
@github-actions github-actions bot closed this May 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request help wanted Extra attention is needed no-pr-activity
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Search
2 participants