[SERVER-73138] Support variants of complex types in IDL Created: 20/Jan/23 Updated: 06/Dec/23 Resolved: 03/Feb/23 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 6.3.0-rc0 |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Sean Zimmerman | Assignee: | Sean Zimmerman |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | milestone-1 | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Assigned Teams: |
Replication
|
||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||
| Sprint: | Repl 2023-02-06 | ||||||||
| Participants: | |||||||||
| Description |
|
Currently IDL code generation only supports variants of simple types (int, bool, etc). We want to expand this to support variants of used defined structs. Per Mark's recommendation we do not need to support a perfect generation, only what we consider necessary. It should be sufficient to say that the structs in a variant must all have a unique first element (which can be viewed by BSON.firstElement) to determine what the type of the variant is |
| Comments |
| Comment by Githook User [ 03/Feb/23 ] |
|
Author: {'name': 'seanzimm', 'email': 'sean.zimmerman@mongodb.com', 'username': 'seanzimm'}Message: |