Skip to content

Record type follow ups: #25218

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

Merged
merged 8 commits into from
Aug 28, 2020
Merged

Record type follow ups: #25218

merged 8 commits into from
Aug 28, 2020

Conversation

pranavkm
Copy link
Contributor

  • Throw an error if a record type property has validation metadata
  • Disallow TryUpdateModel on a top-level record type
  • Ignore previously specified model value when binding a record type
  • Unskip record type tests
  • Clean up record type detection

Fixes #24265

@ghost ghost added the area-mvc Includes: MVC, Actions and Controllers, Localization, CORS, most templates label Aug 24, 2020
* Throw an error if a record type property has validation metadata
* Disallow TryUpdateModel on a top-level record type
* Ignore previously specified model value when binding a record type
* Unskip record type tests
* Clean up record type detection
@pranavkm pranavkm force-pushed the prkrishn/record-types-followup branch from 0682f1b to 3e8a947 Compare August 24, 2020 22:53
@@ -137,37 +139,16 @@ internal IReadOnlyList<ModelMetadata> BoundProperties
}
}

/// <summary>
/// A mapping from parameters to their corresponding properties on a record type.
/// </summary>
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice to have doc comments for internal API given the complexities in this area❕

Copy link
Member

@javiercn javiercn left a comment

Choose a reason for hiding this comment

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

Looks good to me!

Haven't looked at the tests too closely, but the code changes look good.

@pranavkm pranavkm added this to the 5.0.0-rc1 milestone Aug 25, 2020
@pranavkm
Copy link
Contributor Author

@Pilchie could you merge this PR?

@Pilchie Pilchie added the Servicing-approved Shiproom has approved the issue label Aug 28, 2020
@Pilchie
Copy link
Member

Pilchie commented Aug 28, 2020

Approved for RC1.

@Pilchie Pilchie merged commit 7686c0b into release/5.0 Aug 28, 2020
@Pilchie Pilchie deleted the prkrishn/record-types-followup branch August 28, 2020 16:42
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 Servicing-approved Shiproom has approved the issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants