Skip to content

Conversation

CodeBlanch
Copy link
Contributor

@CodeBlanch CodeBlanch commented Jan 28, 2021

Updates IgnoreSection so it doesn't throw if the section being ignored is not found.

@ghost ghost added the area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates label Jan 28, 2021
@CodeBlanch
Copy link
Contributor Author

Question on the tests: In RazorPageTest I see RenderSection tests that verify a throw, but nothing to verify required = false does not throw. Should I add these for the new IgnoreSection overload and the existing RenderSection overload which accepts required flag? Or just the new IgnoreSection overload? Or good as-is?

@pranavkm pranavkm added the community-contribution Indicates that the PR has been added by a community member label Feb 1, 2021
@pranavkm pranavkm changed the title RazorPage: Add an IgnoreSection overload with a required parameter. RazorPage: Allow IgnoreSection to specify sections that do not exist Feb 1, 2021
Copy link
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.

Thanks

@ghost
Copy link

ghost commented Feb 1, 2021

Hello @pranavkm!

Because this pull request has the auto-merge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

@pranavkm pranavkm added this to the 6.0-preview2 milestone Feb 1, 2021
@ghost ghost merged commit 7e2ed4a into dotnet:main Feb 1, 2021
@CodeBlanch CodeBlanch deleted the ignoresection-required-flag branch August 5, 2021 19:43
This pull request was closed.
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 community-contribution Indicates that the PR has been added by a community member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants