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

[6.0.1] RevEng: Consider skip navigation names when generating identifier for members of class #26531

Merged
merged 1 commit into from
Nov 9, 2021

Conversation

smitpatel
Copy link
Contributor

@smitpatel smitpatel commented Nov 3, 2021

Resolves #26496

We had mechanism to generate unique identifiers to assign to skip navigations but the code to find existing identifiers lacked skip navigations. So skip navigation names were not unique-fied throwing error when trying to add skip navigation with same name

Description

An exception is thrown when trying to scaffold model from database where a table has multiple skip navigations to different entity type but same fk properties giving same name to skip navigation.

Customer impact

A database containing such table cannot be scaffolded into model. There are no work-arounds.

How found

Customer report on nightly rtm package.

Regression

No, feature to scaffold many to many join table is new in 6.0. However, a database that could have been scaffolded previously to a model without many-to-many relationships will now cause the scaffolder to fail.

Testing

Test for this scenario added in the PR.

Risk

Low; Skip navigation names are part of identifiers and should be added to the list. Also added quirk.

… members of class

Resolves #26496

We had mechanism to generate unique identifiers to assign to skip navigations but the code to find existing identifiers lacked skip navigations. So skip navigation names were not unique-fied throwing error when trying to add skip navigation with same name
@ajcvickers ajcvickers changed the title [6.0.1] RevEng: Consider skip navigation names when generating identifier for… [6.0.1] RevEng: Consider skip navigation names when generating identifier for members of class Nov 4, 2021
@ajcvickers ajcvickers added this to the 6.0.x milestone Nov 4, 2021
@leecow leecow modified the milestones: 6.0.x, 6.0.1 Nov 4, 2021
@smitpatel smitpatel merged commit 62dc53f into release/6.0 Nov 9, 2021
@smitpatel smitpatel deleted the smit/scaffolding branch November 9, 2021 20:02
@smitpatel smitpatel removed this from the 6.0.1 milestone Nov 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants