-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
[Routing] [Mvc] Support RoutePattern required values in matcher and link generator #4245
Conversation
@ryanbrandenburg @natemcmaster I just want to double check with you guys whether there is anything new or different when creating PRs in this post-mondo world. Any tricks or tips? |
@ryanbrandenburg @natemcmaster Do feature branches work the same way in the new world? I need to make updates to MVC with this PR's changes. Can that happen while MVC is non-mondo, or should it wait until MVC is migrated? |
@mkArtakMSFT FYI the breaking change here is IRouteValuesAddressMetadata is no longer used for required values. It has moved to RoutePattern.RequiredValues. IRouteValuesAddressMetadata was introduced in 2.2 and I doubt anyone would use it beside us. Edit: |
We we're planning on getting MVC merged to this repo today so that you would have been able to make both changes at the same time. Unfortunately, other stuff got in the way so merging MVC got pushed to tomorrow. Once it is in, you can make the changes to routing and MVC projects in the same branch. |
Ok, I'll wait until tomorrow. Question about cross-solution changes: Under the routing directory there is still a |
The dependencies file in This is why all FYI Phase 1 of mondo-repo was to get all source in the same place. Phase 2 is #4246 (which has already started) which should make it even easier to make changes to multiple areas of the product at the same time. |
Thanks for the info, I'm looking forward to phase 2! For this PR, what do I need to do today for cross-solution changes? 😸 @rynowak wants to build on top of these changes and is blocked until we can get this merged |
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.
This looks like what I remember from the aspnet/Routing PR 👍
7b054ba
to
6ca735a
Compare
b667708
to
38a88a7
Compare
🆙 📅 @rynowak It builds. Tests fail but I believe they were already failing. |
@@ -323,7 +323,7 @@ public async Task PagesInAreas_CanGenerateLinksToControllersAndPages() | |||
var expected = | |||
@"<a href=""/Accounts/Manage/RenderPartials"">Link inside area</a> | |||
<a href=""/Products/List/old/20"">Link to external area</a> | |||
<a href=""/Accounts"">Link to area action</a> | |||
<a href="""">Link to area action</a> |
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.
I think I left this comment as my only feedback on the aspnet/Mvc PR.... why not change the test to do something valid?
I'm not sure I care a whole ton about this part because I think we will have to restore the 2.1/2.2 behaviour. I think it's fine to do that after this PR.
38a88a7
to
38ae814
Compare
re: aspnet/Routing#914 and aspnet/Mvc#8731