-
Notifications
You must be signed in to change notification settings - Fork 391
[http-client-csharp] Preserve last-contract model base types #11818
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
Open
Wei Hu (live1206)
wants to merge
20
commits into
microsoft:main
Choose a base branch
from
live1206:test/11816-last-contract-base-type
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
93faf2b
Add regression tests for last-contract model bases
live1206 4d0a14a
Focus base regression on shipped inherited properties
live1206 5f63071
Preserve model base types from last contract
live1206 d87c7af
Use try pattern for base type resolution
live1206 9738574
Handle unrestorable last-contract model bases
live1206 29ff3b8
Validate referenced base constructor accessibility
live1206 2cc9dcb
Add model base back-compat hook
live1206 fb39c2c
Guard incompatible model base restoration
live1206 fa01391
Normalize model property collision names
live1206 2769b76
Guard symbol-backed base property collisions
live1206 18993c4
Share final model property naming for base guards
live1206 30a06fc
Resolve nested last-contract base types
live1206 924e18c
Continue past unusable base type candidates
live1206 690a2bf
Use metadata identity for base type matching
live1206 d6e041c
Fail model compilation regressions on warnings
live1206 454e549
Handle generic bases and private property collisions
live1206 1198942
Keep compatibility diagnostics private
live1206 c0d3c88
Limit base compatibility hook to derived providers
live1206 c5dcf27
Merge origin/main into test/11816-last-contract-base-type
live1206 8c08b6e
Guard restored bases against additional property collisions
live1206 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
...s/BackCompat_DifferentLastContractBaseIsNotRestoredAcrossDiscriminatorHierarchy/Models.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| namespace Sample.Models | ||
| { | ||
| public partial class PreviousBase | ||
| { | ||
| } | ||
|
|
||
| public partial class DerivedModel : PreviousBase | ||
| { | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.