Skip to content
This repository has been archived by the owner on Dec 19, 2018. It is now read-only.

@page should look at malformed directives and attempt to classify a document as a page. #1448

Closed
NTaylorMullen opened this issue Jun 20, 2017 · 3 comments
Assignees
Milestone

Comments

@NTaylorMullen
Copy link
Member

With the new Razor error story we transform malformed @page directives into MalformedDirectiveIRNodes which in turn result in pages not being classified as Razor pages. This impacts the way Mvc routes to said pages; we should be smarter and also inspect malformed directives to determine our "pageness"

NTaylorMullen added a commit to aspnet/Mvc that referenced this issue Jun 20, 2017
- This will be reverted once aspnet/Razor#1448 has been completed.
@rynowak rynowak added this to the 2.0.0 milestone Jul 2, 2017
@NTaylorMullen NTaylorMullen self-assigned this Jul 3, 2017
NTaylorMullen added a commit that referenced this issue Jul 4, 2017
- The `@page` directive will now look for malformed directives and treat a view as a Razor page based on the existence of the malformed directive.
- Updated the `PageDirective` type to contain a reference to its responsible directive node.
- Added unit tests to validate malformed directives were picked up accordingly.
- Updated code generation test baselines to reflect the new malformed directive understanding.

#1448
@rynowak
Copy link
Member

rynowak commented Jul 5, 2017

@NTaylorMullen - done?

@NTaylorMullen
Copy link
Member Author

@rynowak nope, waiting for your review on the PR.

NTaylorMullen added a commit that referenced this issue Jul 5, 2017
- The `@page` directive will now look for malformed directives and treat a view as a Razor page based on the existence of the malformed directive.
- Updated the `PageDirective` type to contain a reference to its responsible directive node.
- Added unit tests to validate malformed directives were picked up accordingly.
- Updated code generation test baselines to reflect the new malformed directive understanding.

#1448
NTaylorMullen added a commit that referenced this issue Jul 5, 2017
- The `@page` directive will now look for malformed directives and treat a view as a Razor page based on the existence of the malformed directive.
- Updated the `PageDirective` type to contain a reference to its responsible directive node.
- Added unit tests to validate malformed directives were picked up accordingly.
- Updated code generation test baselines to reflect the new malformed directive understanding.

#1448
@NTaylorMullen
Copy link
Member Author

NTaylorMullen commented Jul 5, 2017

a78202e
aspnet/Mvc@7454c53

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants