-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Labels
APIAn Application Programming Interface, DSL, utility was introduced or modifiedAn Application Programming Interface, DSL, utility was introduced or modifiedBreaking changeMajorIndicates a major versioning impact.Indicates a major versioning impact.P3 - normalUnder reviewNo work should start, pending review and refinement of the proposed changes.No work should start, pending review and refinement of the proposed changes.
Description
Description
Method fetch.unionWith dates all the way back to 2012 and it is time to improve it.
Although this method is rarely used in end applications, when it is used, it often requires explicit type casts.
-
1. Change the type signature of
unionWithso that the union of twofetch<T>results in the same typefetch<T>.This is a breaking change, as it may cause compilation errors.
-
2. Provide an alternative method for dynamic use cases where one or both fetch models are
fetch<?>.
This method should throw if the entity types underlying the fetch models are not compatible (one should be a supertype of the other, or vice versa).
Expected outcome
More convenient and type safe use of fetch.unionWith.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
APIAn Application Programming Interface, DSL, utility was introduced or modifiedAn Application Programming Interface, DSL, utility was introduced or modifiedBreaking changeMajorIndicates a major versioning impact.Indicates a major versioning impact.P3 - normalUnder reviewNo work should start, pending review and refinement of the proposed changes.No work should start, pending review and refinement of the proposed changes.