-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bumped elasticsearch to 7.x and remove references to ES types which a…
…re no longer supported in 7.x+ (#25) [changelog] version: unreleased changed: "Upgrade to elasticsearch ~ 7.x (via #25) (@demsullivan)"
- Loading branch information
1 parent
c7535d5
commit db8139e
Showing
14 changed files
with
18 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
RSpec.describe ROM::Elasticsearch::Dataset, '#params' do | ||
subject(:dataset) do | ||
ROM::Elasticsearch::Dataset.new(client, params: { index: :users, type: :user }) | ||
ROM::Elasticsearch::Dataset.new(client, params: { index: :users }) | ||
end | ||
|
||
include_context 'user fixtures' | ||
|
||
it 'returns a new dataset with updated params' do | ||
new_ds = dataset.params(size: 100) | ||
|
||
expect(new_ds.params).to eql(size: 100, index: :users, type: :user) | ||
expect(new_ds.params).to eql(size: 100, index: :users) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
RSpec.describe ROM::Elasticsearch::Dataset, '#scroll' do | ||
subject(:dataset) do | ||
ROM::Elasticsearch::Dataset.new(client, params: { index: :users, type: :user }) | ||
ROM::Elasticsearch::Dataset.new(client, params: { index: :users }) | ||
end | ||
|
||
include_context 'user fixtures' | ||
|
||
it 'returns a new dataset with updated params' do | ||
new_ds = dataset.scroll('5m') | ||
|
||
expect(new_ds.params).to eql(scroll: '5m', index: :users, type: :user) | ||
expect(new_ds.params).to eql(scroll: '5m', index: :users) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters