[CSHARP-3350] Improve types handling Created: 22/Jan/21  Updated: 08/Feb/21  Resolved: 08/Feb/21

Status: Closed
Project: C# Driver
Component/s: Linq, Serialization
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Boris Dogadov Assignee: Unassigned
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to CSHARP-2009 Discriminator incorrect when using "O... Closed

 Description   

Suggestions

  1. Validation of full inheritance path in OfType<T> filter, to handle rare cases where documents with different/non existent full paths but same/existent leaf present:
    1. Collections with [A_nonexistent, B_nonexistent, C_existent] documents
      1. Due to corruption/leftovers
      2. Collections shared among mult. apps.
    2. Collections with [X, Y, C] [A, B, C] documents, where [X, Y, C] and [A, B, C] are in different namespaces
  1. Forbid upsert of abstract classes and interfaces
  2. Consider forbidding instantiating objects with non existent inheritance paths. For example C with _t: [A_nonexistent, B_nonexistent, C_existent] discriminator

Generated at Wed Feb 07 21:45:04 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.