aspnetcore/test/Microsoft.AspNetCore.Mvc.Co...
Ryan Nowak f573b8840a Fix aspnet/Routing#782
Currently MVC is still running the IActionConstraint implementations for
features that we've already moved into the routing layer. This has a
significant perf cost associated with, and so we want to skip it because
it's redundant. However if anyone has implemented their own
`IActionConstraint`-based features, they still need to just work.

This change takes the approach of skipping the action constraint phase
at runtime unless we see something 'unknown'. This is an all or nothing
choice, and will run action constraints if **any** action constraint we
don't special case exists. This is the most compatible behavior (running
redundant constraints) when the application is using constraints that
the developer implemented.

Another approach I considered was to eliminate these constraints as part
of the process of building ADs. I don't think that's ideal because
people have written code that introspects action constraints. We should
consider something like this in 3.0.
2018-09-09 15:17:05 -07:00
..
ApiExplorer Fix some spelling (#8378) 2018-09-06 07:39:01 -07:00
ApplicationModel
ApplicationParts Cleanup TestCommon 2018-05-18 10:45:57 -07:00
Authorization Fix regression with Authorize + IPolicyProvider (#8068) 2018-07-12 15:36:03 -07:00
Builder Update MvcEndpointDataSource to use RoutePattern (#8249) 2018-08-23 21:42:42 +12:00
Controllers [Design] Add a MaxValidationDepth option to ValidationVisitor 2018-08-16 15:01:18 -07:00
DependencyInjection Introduce ProblemDetailsFilter 2018-08-21 17:29:12 -07:00
Filters Fix some spelling (#8378) 2018-09-06 07:39:01 -07:00
Formatters Fix some spelling (#8378) 2018-09-06 07:39:01 -07:00
Infrastructure Fix some spelling (#8378) 2018-09-06 07:39:01 -07:00
Internal Action endpoint metadata contains attributes from action and controller (#8395) 2018-09-07 10:01:40 +12:00
ModelBinding Fix some spelling (#8378) 2018-09-06 07:39:01 -07:00
Properties
Routing Fix aspnet/Routing#782 2018-09-09 15:17:05 -07:00
AcceptedAtActionResultTests.cs Fix some spelling (#8378) 2018-09-06 07:39:01 -07:00
AcceptedAtRouteResultTests.cs
AcceptedResultTests.cs
ActionResultOfTTest.cs Fix some spelling (#8378) 2018-09-06 07:39:01 -07:00
ApiConventionMethodAttributeTest.cs Fix some spelling (#8378) 2018-09-06 07:39:01 -07:00
ApiConventionTypeAttributeTest.cs Add support for default response (#8028) 2018-07-06 16:44:07 -07:00
BadRequestObjectResultTests.cs
BadRequestResultTests.cs
BindAttributeTest.cs
ChallengeResultTest.cs
ConflictObjectResultTest.cs
ConflictResultTest.cs
ConsumesAttributeTests.cs Fix some spelling (#8378) 2018-09-06 07:39:01 -07:00
ContentResultTest.cs Cleanup TestCommon 2018-05-18 10:45:57 -07:00
ControllerBaseTest.cs Fix some spelling (#8378) 2018-09-06 07:39:01 -07:00
CreatedAtActionResultTests.cs
CreatedAtRouteResultTests.cs
CreatedResultTests.cs
EmptyResultTests.cs
FileContentResultTest.cs Cleanup TestCommon 2018-05-18 10:45:57 -07:00
FileResultTest.cs Unskip skipped tests 2018-05-29 12:10:59 -07:00
FileStreamResultTest.cs Cleanup TestCommon 2018-05-18 10:45:57 -07:00
FlushReportingStream.cs
ForbidResultTest.cs
HttpNotFoundObjectResultTest.cs
HttpNotFoundResultTests.cs
HttpOkObjectResultTest.cs
HttpOkResultTest.cs
HttpStatusCodeResultTests.cs Add IStatusCodeActionResult (#8265) 2018-08-13 15:39:20 -07:00
HttpUnauthorizedResultTests.cs
LocalRedirectResultTest.cs Integrate Dispatcher's link generator 2018-06-19 04:14:05 -07:00
MediaTypeCollectionTest.cs
Microsoft.AspNetCore.Mvc.Core.Test.csproj Cleanup TestCommon 2018-05-18 10:45:57 -07:00
MvcOptionsTest.cs
NonDisposableStreamTest.cs
ObjectResultTests.cs Set ProblemDetails status field during ObjectResult formatting 2018-07-19 17:57:55 -07:00
PhysicalFileResultTest.cs Cleanup TestCommon 2018-05-18 10:45:57 -07:00
ProducesAttributeTests.cs Cleanup TestCommon 2018-05-18 10:45:57 -07:00
RedirectResultTest.cs Integrate Dispatcher's link generator 2018-06-19 04:14:05 -07:00
RedirectToActionResultTest.cs
RedirectToPageResultTest.cs Cleanup TestCommon 2018-05-18 10:45:57 -07:00
RedirectToRouteResultTest.cs
RequestFormLimitsAttributeTest.cs Fix some spelling (#8378) 2018-09-06 07:39:01 -07:00
RequireHttpsAttributeTests.cs Fix some spelling (#8378) 2018-09-06 07:39:01 -07:00
ResponseCacheAttributeTest.cs
SerializableErrorTests.cs
ServiceFilterAttributeTest.cs Unwrap filter factories in TypeFilterAttribute & ServiceFilterAttribute 2018-08-24 14:15:40 -07:00
SignInResultTest.cs
SignOutResultTest.cs
TestApplicationPart.cs
TestFeatureProvider.cs
TypeFilterAttributeTest.cs Unwrap filter factories in TypeFilterAttribute & ServiceFilterAttribute 2018-08-24 14:15:40 -07:00
UnprocessableEntityObjectResultTests.cs
UnprocessableEntityResultTests.cs
ValidationProblemDetailsTest.cs
VirtualFileResultTest.cs Cleanup TestCommon 2018-05-18 10:45:57 -07:00
xunit.runner.json