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

#2078 V7 polly syntax not longer supported #2079

Merged
merged 3 commits into from
May 31, 2024

Conversation

RaynaldM
Copy link
Collaborator

Removal of AddPollyV7 and all subsequent code.

Removal of AddPollyV7 tests

@RaynaldM RaynaldM self-assigned this May 29, 2024
@RaynaldM RaynaldM added small effort Likely less than a day of development effort. low Low priority QoS Ocelot feature: Quality of Service aka Polly labels May 29, 2024
@RaynaldM RaynaldM linked an issue May 29, 2024 that may be closed by this pull request
@raman-m
Copy link
Member

raman-m commented May 29, 2024

Next time, could you create feature branch in your personal folder like: RaynaldM/2078 please?
So, we don't need so long branch names 😉

@raman-m raman-m requested review from raman-m and ggnaegi May 29, 2024 15:26
Copy link
Member

@raman-m raman-m left a comment

Choose a reason for hiding this comment

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

Generally, there's nothing to review.
However, I'm concerned about the tests that were removed. My heart is broken 💔.
Perhaps some of them are still valuable?

Comment on lines -57 to -59
Important changes in version `23.2`_: [#f3]_

- With `Polly`_ version 8+, the ``ExceptionsAllowedBeforeBreaking`` value must be equal to or greater than **2**!
Copy link
Member

Choose a reason for hiding this comment

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

I believe these lines can be retained and relocated to an earlier position.

@@ -34,7 +34,7 @@
<PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.507">
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Polly" Version="8.3.1" />
<PackageReference Include="Polly" Version="8.4.0" />
Copy link
Member

Choose a reason for hiding this comment

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

Right! Good to bump the version!

@@ -112,96 +111,4 @@ public static IOcelotBuilder AddPolly(this IOcelotBuilder builder)
/// <returns>A <see cref="DelegatingHandler"/> object, but concrete type is the <see cref="PollyResiliencePipelineDelegatingHandler"/> class.</returns>
private static DelegatingHandler GetDelegatingHandler(DownstreamRoute route, IHttpContextAccessor contextAccessor, IOcelotLoggerFactory loggerFactory)
=> new PollyResiliencePipelineDelegatingHandler(route, contextAccessor, loggerFactory);

#region Obsolete extensions will be removed in future version
Copy link
Member

Choose a reason for hiding this comment

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

I love when regions are removed 😃

@@ -75,7 +75,7 @@
<PackageReference Include="CacheManager.Core" Version="2.0.0-beta-1629" />
<PackageReference Include="CacheManager.Microsoft.Extensions.Configuration" Version="2.0.0-beta-1629" />
<PackageReference Include="CacheManager.Microsoft.Extensions.Logging" Version="2.0.0-beta-1629" />
<PackageReference Include="Polly" Version="8.3.1" />
<PackageReference Include="Polly" Version="8.4.0" />
Copy link
Member

Choose a reason for hiding this comment

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

I'm not sure but the reference should be auto-restored because of ref to Ocelot, right?

@raman-m raman-m added Spring'24 Spring 2024 release and removed low Low priority labels May 29, 2024
@raman-m raman-m added this to the Spring'24 milestone May 29, 2024
@raman-m
Copy link
Member

raman-m commented May 29, 2024

I believe we could deliver it as a part of 23.3
And I will add a couple of commits related to docs...

RaynaldM and others added 2 commits May 31, 2024 14:37
Consolidate all notes into the Notes section
@raman-m raman-m merged commit ee1fb97 into develop May 31, 2024
1 check passed
@raman-m raman-m deleted the 2078-v7-polly-syntax-not-longer-supported branch May 31, 2024 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
QoS Ocelot feature: Quality of Service aka Polly small effort Likely less than a day of development effort. Spring'24 Spring 2024 release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Polly V7 syntax is no longer supported
2 participants