Skip to content
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

Add the v8 README.md #1548

Merged
merged 9 commits into from
Sep 6, 2023
Merged

Add the v8 README.md #1548

merged 9 commits into from
Sep 6, 2023

Conversation

martintmk
Copy link
Contributor

@martintmk martintmk commented Sep 4, 2023

Details on the issue fix or feature implementation

  • Adding README_V8.md that describes v8 API.
  • WIP, but opening early to get a continuous feedback

Compared to v7 README.md the new one is much leaner with more beefier sections extracted into separate documents. Some docs are still missing or incomplete, I'll address these in follow-up PRs to not make this one huge.

Contributes to #1091

Confirm the following

  • I started this PR by branching from the head of the default branch
  • I have targeted the PR to merge into the default branch
  • I have included unit tests for the issue/feature
  • I have successfully run a local build

@martintmk martintmk force-pushed the documentation-v8 branch 2 times, most recently from 5cdf5bc to 32f9cf8 Compare September 4, 2023 12:13
@martintmk martintmk added the v8 Issues related to the new version 8 of the Polly library. label Sep 4, 2023
@martintmk martintmk added this to the v8.0.0 milestone Sep 4, 2023
@martintmk
Copy link
Contributor Author

cc @peter-csala if you are interested, your feedback is greatly appreactiated too.

@codecov
Copy link

codecov bot commented Sep 4, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (90b7935) 83.92% compared to head (bee8d17) 83.92%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1548   +/-   ##
=======================================
  Coverage   83.92%   83.92%           
=======================================
  Files         279      279           
  Lines        6518     6518           
  Branches     1017     1017           
=======================================
  Hits         5470     5470           
  Misses        839      839           
  Partials      209      209           
Flag Coverage Δ
linux ?
macos 83.92% <ø> (ø)
windows 83.92% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@martintmk martintmk force-pushed the documentation-v8 branch 3 times, most recently from 0f1a346 to 729e40a Compare September 5, 2023 15:28
@martintmk martintmk changed the title Migrate the README to V8 Add the v8 README.md Sep 5, 2023
@martintmk martintmk force-pushed the documentation-v8 branch 7 times, most recently from 290f228 to b9e4d86 Compare September 6, 2023 05:37
@martintmk martintmk marked this pull request as ready for review September 6, 2023 07:05
docs/README.md Outdated Show resolved Hide resolved
docs/dependency-injection.md Outdated Show resolved Hide resolved
docs/extensiblity.md Outdated Show resolved Hide resolved
docs/general.md Outdated

## Supported targets

Polly targets .NET Standard 2.0+ ([coverage](https://docs.microsoft.com/en-us/dotnet/standard/net-standard#net-implementation-support): .NET Core 2.0+, .NET Core 3.0, and later Mono, Xamarin and UWP targets). The NuGet package also includes direct targets for .NET Framework 4.6.1 and 4.7.2.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
Polly targets .NET Standard 2.0+ ([coverage](https://docs.microsoft.com/en-us/dotnet/standard/net-standard#net-implementation-support): .NET Core 2.0+, .NET Core 3.0, and later Mono, Xamarin and UWP targets). The NuGet package also includes direct targets for .NET Framework 4.6.1 and 4.7.2.
Polly targets .NET Standard 2.0+ ([coverage](https://docs.microsoft.com/dotnet/standard/net-standard#net-implementation-support): .NET Core 2.0+, .NET Core 3.0, and later Mono, Xamarin and UWP targets). The NuGet package also includes direct targets for .NET Framework 4.6.1 and 4.7.2.

docs/general.md Outdated

## Supported targets

Polly targets .NET Standard 2.0+ ([coverage](https://docs.microsoft.com/en-us/dotnet/standard/net-standard#net-implementation-support): .NET Core 2.0+, .NET Core 3.0, and later Mono, Xamarin and UWP targets). The NuGet package also includes direct targets for .NET Framework 4.6.1 and 4.7.2.
Copy link
Member

Choose a reason for hiding this comment

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

Update the TFMs for v8?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

README_V8.md Outdated
```
<!-- endSnippet -->

If all retries fail, a retry strategy rethrows the final exception back to the calling code. For more depth visit [retry strategy documentation](https://github.com/App-vNext/Polly/wiki/Retry).
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
If all retries fail, a retry strategy rethrows the final exception back to the calling code. For more depth visit [retry strategy documentation](https://github.com/App-vNext/Polly/wiki/Retry).
If all retries fail, a retry strategy rethrows the final exception back to the calling code. For more details visit the [retry strategy documentation](https://github.com/App-vNext/Polly/wiki/Retry).

README_V8.md Outdated
```
<!-- endSnippet -->

If all retries fail, a retry strategy rethrows the final exception back to the calling code. For more depth visit [retry strategy documentation](https://github.com/App-vNext/Polly/wiki/Retry).
Copy link
Member

Choose a reason for hiding this comment

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

Should this point to a newer stub too? Similar comments throughout this file to avoid linking to the Wiki in these new files.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will update these in follow-up

README_V8.md Outdated Show resolved Hide resolved
README_V8.md Outdated Show resolved Hide resolved
README_V8.md Outdated Show resolved Hide resolved
new ResiliencePipelineBuilder<HttpResponseMessage>()
.AddHedging(new HedgingStrategyOptions<HttpResponseMessage>());

// Add a customized hedging strategy that retries up to 3 times if the execution
// takes longer than 1 second or if it fails due to an exception
// or returns a 500 Internal Server Error.
// takes longer than 1 second or if it fails due to an exception or returns an HTTP 500 Internal Server Error.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
// takes longer than 1 second or if it fails due to an exception or returns an HTTP 500 Internal Server Error.
// takes longer than 1 second or if it fails due to an exception or returns an HTTP 500 Internal Server Error.

@martintmk martintmk enabled auto-merge (squash) September 6, 2023 12:10
@martintmk martintmk merged commit 3f1b435 into main Sep 6, 2023
13 checks passed
@martintmk martintmk deleted the documentation-v8 branch September 6, 2023 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v8 Issues related to the new version 8 of the Polly library.
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants