-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Remove RequiredPolicy #9399
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
Remove RequiredPolicy #9399
Conversation
@@ -51,6 +51,11 @@ public async Task Invoke(HttpContext context) | |||
|
|||
// IMPORTANT: Changes to authorization logic should be mirrored in MVC's AuthorizeFilter | |||
var authorizeData = endpoint?.Metadata.GetOrderedMetadata<IAuthorizeData>() ?? Array.Empty<IAuthorizeData>(); | |||
if (authorizeData.Length == 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Formatting.
@@ -51,6 +51,12 @@ public async Task Invoke(HttpContext context) | |||
|
|||
// IMPORTANT: Changes to authorization logic should be mirrored in MVC's AuthorizeFilter | |||
var authorizeData = endpoint?.Metadata.GetOrderedMetadata<IAuthorizeData>() ?? Array.Empty<IAuthorizeData>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could just do Count()
here. It'll effectively be the same: https://github.com/dotnet/corefx/blob/master/src/System.Linq/src/System/Linq/Count.cs#L12-L22
@pranavkm test failure which doesn't look related to this change, is this a known issue? Should I just retry?
|
Yeah, I kicked off a retry. It's a fairly new test, so perhaps there's a bug :( |
This comment was made automatically. If there is a problem contact ryanbrandenburg. I've triaged the above build. I've created/commented on the following issue(s) |
Fixes #9398