Closed ayush3797 closed 2 months ago
/azp run
are tests dependent on #2138
Are not dependent. But will require additional entities in the config and some more changes. Keeping bug-bash in mind, trying to get the logic changes in and test can follow.
Now I'm onto adding test.
/azp run
/azp run
/azp run
/azp run
/azp run
Why make this change?
DAB doesn't support multiple-create on related entities which are backed by same database table. This PR adds a validation to catch that scenario and throw a meaningful exception to the end user. Issue to track support: #2157
What is this change?
MultipleCreateOrderHelper.GetReferencingEntityName()
method to catch the scenario.MultipleCreateOrderHelper.GetReferencingEntityName()
, a new parameter isMNRelationship is added with default value of false. The reasoning is explained in the section.Reason for why
MultipleCreateOrderHelper.GetReferencingEntityName()
is called even for M:N relationships when we know that we are always going to return an empty string?MultipleCreateOrderHelper.GetReferencingEntityName()
method.MultipleCreateOrderHelper
provides unit test coverage even for the other 2 db types i.e. PgSql,MySql.How was this tested?
Sample Request(s)
Request: