Skip to content

Search: Allow web search syntax when searching notes#2521

Merged
kevinrobinson merged 11 commits intomasterfrom
feature/use-web-search-for-notes
Jul 16, 2019
Merged

Search: Allow web search syntax when searching notes#2521
kevinrobinson merged 11 commits intomasterfrom
feature/use-web-search-for-notes

Conversation

@kevinrobinson
Copy link
Copy Markdown
Contributor

Who is this PR for?

educators

What does this PR do?

Supports typical search syntax like +/- and quoted phrases.

Checklists

Which features or pages does this PR touch?

  • Search notes

Does this PR use tests to help verify we can deploy these changes quickly and confidently?

  • Manual testing made more sense here

@kevinrobinson
Copy link
Copy Markdown
Contributor Author

Also bundles some patches in response to low-risk advisories (see https://travis-ci.org/studentinsights/studentinsights/jobs/559507348), and a bunch of different workarounds for Travis to upgrade Postgres.

@kevinrobinson kevinrobinson merged commit 3d1c178 into master Jul 16, 2019
@kevinrobinson kevinrobinson deleted the feature/use-web-search-for-notes branch July 16, 2019 18:50
@kevinrobinson
Copy link
Copy Markdown
Contributor Author

FWIW, upgrading Postgres with Homebrew:

$ brew upgrade postgresql@11

Next, I quit Postgres using the little elephant menu in the task bar at the top of the screen.

After, I also followed the helpful Homebrew instructions about how to migrate existing databases:

$ brew services start postgresql

And rebuilt the local databases anyway:

$ bin/rails db:environment:set db:drop db:create db:migrate db:seed RAILS_ENV=development

Then ran a test to verify it worked:

$  bundle exec rspec spec/lib/search_notes_queries_spec.rb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant