Skip to content

Fix some Cosmos discriminator issues#17876

Merged
AndriySvyryd merged 1 commit intorelease/3.1from
CosmosDiscriminator
Sep 17, 2019
Merged

Fix some Cosmos discriminator issues#17876
AndriySvyryd merged 1 commit intorelease/3.1from
CosmosDiscriminator

Conversation

@AndriySvyryd
Copy link
Copy Markdown
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

Comment thread .editorconfig

# 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
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🎉

Copy link
Copy Markdown
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
Copy Markdown
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