Skip to content

Commit

Permalink
Filter out some other searches from logs
Browse files Browse the repository at this point in the history
  • Loading branch information
johnf committed Sep 11, 2024
1 parent da5ab35 commit 1f6e268
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ bin/aws/ecs_rake searchkick:reindex
## Importing a production database into your development environment

``` bash
AWS_PROFILE=nabu-prod bin/aws/ecs_shell jobs -c "'mysqldump -u nabu -h \"\$NABU_DATABASE_HOSTNAME\" -p\"\$NABU_DATABASE_PASSWORD\" --single-transaction nabu' | bzip2 | base64" >| ../nabu.sql.bz2.b64
AWS_PROFILE=nabu-prod bin/aws/ecs_shell jobs -c "'mysqldump -u nabu -h \"\$NABU_DATABASE_HOSTNAME\" -p\"\$NABU_DATABASE_PASSWORD\" --single-transaction nabu | bzip2 | base64'" >| ../nabu.sql.bz2.b64
base64 -id < ../nabu.sql.bz2.b64 > ../nabu.sql.bz2
nabu_run bundle exec rake db:drop db:create
bzip2 -dc ../nabu.sql.bz2 | mysql -h 127.0.0.1 -u root nabu_devel
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/concerns/has_search.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def build_basic_search
order:,
page: params[:page],
per_page: params[:per_page] || 10,
track: params[:search] ? { user_id: current_user&.id, search_family: 'basic' } : nil,
track: params[:search].blank? ? nil : { user_id: current_user&.id, search_family: 'basic' },

misspellings: false
)
Expand Down

0 comments on commit 1f6e268

Please sign in to comment.