Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Upgrade to ElasticSearch.Net 7.0 (Alpha release) #46

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

Merged
bcuff merged 6 commits into bcuff:master from williamdenton:master
Jun 18, 2019
Merged

Upgrade to ElasticSearch.Net 7.0 (Alpha release) #46

bcuff merged 6 commits into bcuff:master from williamdenton:master
Jun 18, 2019

Conversation

@williamdenton
Copy link

@williamdenton williamdenton commented Jun 3, 2019

Apologies if I've jumped the gun a bit here, I had some free time this weekend and decided to have a crack at this on my own. #45

Happy to discuss my approach, also fine if you would rather do this bit of fairly critical work yourself.

I'm not 100% sure how to indicate that this 7.0 build is alpha in the CI for this repo, so this shouldn't be merged if there is an automated process that will deploy this to nuget as v7.0.0 without a pre release tag.

William Denton added 6 commits June 3, 2019 23:05
Elasticsearch.Net were previously hedging their bets on using HttpClient in Fullframework. They were was using HttpWebRequest and httpclient in net standard, there is no longer this compile split, so we can remove it from here too.
Removed unreferenced dependencies
* Newtonsoft.Json
* Nest
Remove transitive dependencies
* Elasticsearch.Net
Type parameter seems to have disappeared from the Get and Create Api
was previously pulling netstandard1.3 / full framework 4.5.1, now only depends on netstandard2.0
Copy link
Author

My desire is to add Aws XRay support to AwsHttpConnection. It may be better implemented as a subclass like AwsHttpConnectionWithXRay as XRay will thrown runtime exceptions if not configured correctly.
This isn't a huge value-add so this could just as easily be something people add in their own code base if you don't want to add it to this library.

using Amazon.XRay.Recorder.Handlers.System.Net;
...
protected override HttpMessageHandler CreateHttpClientHandler(RequestData requestData)
{
 var innerHandler = base.CreateHttpClientHandler(requestData);
 return new HttpClientXRayTracingHandler(innerHandler);
}

required csproj reference:

<PackageReference Include="AWSXRayRecorder.Handlers.System.Net" Version="2.5.*" />

Copy link
Author

Also noticed on old nuspec file in there that probably needs deleting?
Elasticsearch.Net.Aws.nuspec

<PackageReference Include="Microsoft.AspNetCore.WebUtilities" Version="1.1.2" />
<PackageReference Include="Microsoft.AspNetCore.WebUtilities" Version="2.1.1" />
<PackageReference Include="AWSSDK.Core" Version="3.3.*" />
<PackageReference Include="Elasticsearch.Net" Version="7.0.0-alpha2" />
Copy link
Author

@williamdenton williamdenton Jun 16, 2019

Choose a reason for hiding this comment

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

Elasticsearch.Net is up to beta1 now, this PR will need updating
https://www.nuget.org/packages/Elasticsearch.Net/7.0.0-beta1

Copy link
Owner

bcuff commented Jun 18, 2019

Hey thanks for the PR. this looks good for the most part. I'll likely merge and make some package related tweaks before publishing. Since NEST is still a pre-release I'll also publish this as a pre-release.

williamdenton reacted with thumbs up emoji

@bcuff bcuff merged commit ace5041 into bcuff:master Jun 18, 2019
Copy link
Owner

bcuff commented Jun 19, 2019

williamdenton reacted with heart emoji

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

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /