Skip to content
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

Fix some Cosmos discriminator issues #17876

Merged
merged 1 commit into from
Sep 17, 2019
Merged

Conversation

AndriySvyryd
Copy link
Member

@AndriySvyryd AndriySvyryd commented Sep 17, 2019

Description

Don't add discriminators for embedded entities
Allow to update entities without discriminators
Don't try to add the default discriminator if a conflicting property already exists

Fixes #17764
Fixes #17302
Fixes #17814

Customer impact

Several basic scenarios involving discriminators will be unblocked now.

Regression

N/A, 3.0 will be the first RTM release for the Cosmos provider

Risk

Low

@@ -197,8 +197,8 @@ dotnet_naming_rule.interface_naming.symbols = interface_symbol
dotnet_naming_rule.interface_naming.style = interface_style
dotnet_naming_rule.interface_naming.severity = suggestion

# Classes, Structs, Enums, Properties, Methods, Events, Namespaces
dotnet_naming_symbols.class_symbol.applicable_kinds = class, struct, enum, property, method, event, namespace
# Classes, Structs, Enums, Properties, Methods, Local Functions, Events, Namespaces
Copy link
Contributor

Choose a reason for hiding this comment

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

🎉

Copy link
Contributor

@smitpatel smitpatel left a comment

Choose a reason for hiding this comment

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

Also cleanup references to 17814 in codebase.

@analogrelay
Copy link
Contributor

As discussed on email, in @Pilchie 's absence I believe we are approved to take this, as 3.1 is in M2 approval mode. I will review it with him when he returns.

@AndriySvyryd AndriySvyryd force-pushed the CosmosDiscriminator branch 3 times, most recently from 460e347 to 718700c Compare September 17, 2019 21:14
Allow to update entities without discriminators
Don't try to add the default discriminator if a conflicting property already exists

Fixes #17764
Fixes #17302
Fixes #17814
@AndriySvyryd AndriySvyryd merged commit ea29615 into release/3.1 Sep 17, 2019
@ghost ghost deleted the CosmosDiscriminator branch September 17, 2019 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants