Skip to content

Commit

Permalink
Update opensearch
Browse files Browse the repository at this point in the history
Why these changes are being introduced:

We had pinned opensearch to v2.1 in the gemfile due to an
upstream bug in more recent versions. That bug has been fixed,
so we can now update the gem.

Relevant ticket(s):

N/A.

How this addresses that need:

This removes the version specification for opensearch and
updates the gem.

Side effects of this change:

* The test suite now generates `test.sqlite3-shm` and
`test.sqlite3-war` files. I've updated the gitignore to ignore
these (and any suffixed `test.sqlite3` files).
* The psych gem has been updated, unrelated to the opensearch
update.
  • Loading branch information
jazairi committed Dec 19, 2023
1 parent 1a853ff commit a7bc9c7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
/.bundle

# Ignore the default SQLite database.
/db/*.sqlite3
/db/*.sqlite3-journal
/db/*.sqlite3*

# Ignore all logfiles and tempfiles.
/log/*
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ gem 'graphql'
gem 'jwt'
gem 'lograge'
gem 'mitlibraries-theme', git: 'https://github.com/mitlibraries/mitlibraries-theme', tag: 'v1.0.2'
gem 'opensearch-ruby', '~> 2.1'
gem 'opensearch-ruby'
gem 'puma'
gem 'rack-attack'
gem 'rack-cors'
Expand Down
13 changes: 4 additions & 9 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -236,14 +236,9 @@ GEM
nokogiri (1.15.5)
mini_portile2 (~> 2.8.2)
racc (~> 1.4)
opensearch-api (2.2.0)
multi_json
opensearch-ruby (2.1.0)
opensearch-api (~> 2.1)
opensearch-transport (~> 2.0)
opensearch-transport (2.1.0)
opensearch-ruby (3.1.0)
faraday (>= 1.0, < 3)
multi_json
multi_json (>= 1.0)
orm_adapter (0.5.0)
parallel (1.24.0)
parser (3.2.2.4)
Expand All @@ -252,7 +247,7 @@ GEM
pathutil (0.16.2)
forwardable-extended (~> 2.6)
pg (1.5.4)
psych (5.1.1.1)
psych (5.1.2)
stringio
public_suffix (5.0.4)
puma (6.4.0)
Expand Down Expand Up @@ -434,7 +429,7 @@ DEPENDENCIES
listen
lograge
mitlibraries-theme!
opensearch-ruby (~> 2.1)
opensearch-ruby
pg
puma
rack-attack
Expand Down

0 comments on commit a7bc9c7

Please sign in to comment.