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

feature: mark highlight search #2370

Merged
merged 7 commits into from Jan 17, 2024

Conversation

gabrielgiroe1
Copy link
Collaborator

@gabrielgiroe1 gabrielgiroe1 commented Jan 15, 2024

Description

Fixes #2014

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works

Screenshots

Manual review steps

  1. Step 1
  2. Step 2

Manual reviewer: please leave a comment with output from the test if that's the case.

Copy link

codeclimate bot commented Jan 15, 2024

Code Climate has analyzed commit 466ec03 and detected 0 issues on this pull request.

View more on Code Climate.

Copy link
Collaborator

@adrianthedev adrianthedev left a comment

Choose a reason for hiding this comment

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

I left a comment to improve performance a bit.

app/controllers/avo/search_controller.rb Outdated Show resolved Hide resolved
app/controllers/avo/search_controller.rb Outdated Show resolved Hide resolved
app/controllers/avo/search_controller.rb Show resolved Hide resolved
app/controllers/avo/search_controller.rb Outdated Show resolved Hide resolved
app/controllers/avo/search_controller.rb Outdated Show resolved Hide resolved
Copy link
Collaborator

@adrianthedev adrianthedev left a comment

Choose a reason for hiding this comment

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

Let's remove those two and then it's good to be merged.

Comment on lines 13 to 14
rescue StandardError => e
render_search_error(e)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Let's remove this please.

@@ -60,7 +61,7 @@ def search_resource(resource)

result_object = {
header: header,
help: resource.fetch_search(:help) || "",
help: resource.fetch_search(:help) || '',
Copy link
Collaborator

Choose a reason for hiding this comment

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

And this please.

@adrianthedev adrianthedev merged commit 75f0d05 into avo-hq:main Jan 17, 2024
19 checks passed
@adrianthedev
Copy link
Collaborator

Congrats @gabrielgiroe1 for your first merged PR.

@Paul-Bob Paul-Bob changed the title Mark highlight search feature: mark highlight search Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

highlight search results
3 participants