Skip to content

Adding a new ActionResult to process IResult#40710

Merged
brunolins16 merged 22 commits into
dotnet:mainfrom
brunolins16:brunolins16/issues/40639
Mar 23, 2022
Merged

Adding a new ActionResult to process IResult#40710
brunolins16 merged 22 commits into
dotnet:mainfrom
brunolins16:brunolins16/issues/40639

Conversation

@brunolins16
Copy link
Copy Markdown
Member

@brunolins16 brunolins16 commented Mar 15, 2022

Related PR #40639

@ghost ghost added the area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates label Mar 15, 2022
@davidfowl
Copy link
Copy Markdown
Member

Can you add a test with a filter?

Copy link
Copy Markdown
Contributor

@pranavkm pranavkm left a comment

Choose a reason for hiding this comment

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

This PR should also include tests for ApiExplorer since that's also being updated.

Comment thread src/Mvc/Mvc.Core/src/HttpResultsActionResult.cs Outdated
Comment thread src/Mvc/Mvc.Core/test/HttpResultsResultTest.cs Outdated
Comment thread src/Mvc/test/Mvc.FunctionalTests/HttpResultsTests.cs Outdated
Comment thread src/Mvc/test/Mvc.FunctionalTests/HttpResultsTests.cs Outdated
@pranavkm
Copy link
Copy Markdown
Contributor

Consider filing a follow up issue to make Mvc.Api.Analyzer support this. As it stands, it'll treat returned IResult instances as ok-results. Relevant code: https://github.com/dotnet/aspnetcore/blob/main/src/Mvc/Mvc.Api.Analyzers/src/ActualApiResponseMetadataFactory.cs

@brunolins16 brunolins16 marked this pull request as ready for review March 21, 2022 19:58
@brunolins16 brunolins16 requested a review from a team as a code owner March 21, 2022 19:58
Comment thread src/Mvc/Mvc.Core/src/ApplicationModels/HttpResultMetadataConvention.cs Outdated
Comment thread src/Mvc/Mvc.ApiExplorer/test/ApiResponseTypeProviderTest.cs
Comment thread src/Mvc/Mvc.Core/src/ApplicationModels/HttpResultMetadataConvention.cs Outdated
Comment thread src/Mvc/Mvc.Core/test/HttpActionResultTests.cs Outdated
Comment thread src/Mvc/Mvc.Core/src/ApplicationModels/ApiBehaviorApplicationModelProvider.cs Outdated
Comment thread src/Mvc/Mvc.Core/src/ApplicationModels/HttpResultMetadataConvention.cs Outdated
Comment thread src/Mvc/Mvc.Core/src/ApplicationModels/HttpResultMetadataConvention.cs Outdated
Comment thread src/Mvc/Mvc.Core/test/Infrastructure/ActionResultTypeMapperTest.cs
@brunolins16 brunolins16 enabled auto-merge (squash) March 23, 2022 22:13
@brunolins16 brunolins16 linked an issue Mar 23, 2022 that may be closed by this pull request
@brunolins16 brunolins16 removed a link to an issue Mar 23, 2022
@brunolins16 brunolins16 merged commit bc96b3e into dotnet:main Mar 23, 2022
@ghost ghost added this to the 7.0-preview3 milestone Mar 23, 2022
@brunolins16 brunolins16 linked an issue Mar 24, 2022 that may be closed by this pull request
@brunolins16 brunolins16 deleted the brunolins16/issues/40639 branch March 24, 2022 23:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

IResult support in MVC

5 participants