[SERVER-51369] Add "variant" type to IDL syntax Created: 05/Oct/20 Updated: 29/Oct/23 Resolved: 28/Jan/21 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | IDL |
| Affects Version/s: | None |
| Fix Version/s: | 4.9.0 |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Samyukta Lanka | Assignee: | A. Jesse Jiryu Davis |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||||||
| Sprint: | Repl 2021-01-11, Repl 2021-01-25, Repl 2021-02-08 | ||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||
| Description |
|
This new type represents a union of multiple types. For example:
Add tests for the "variant" type in test_parser.py and test_generator.py, following the examples of the existing types. |
| Comments |
| Comment by Githook User [ 28/Jan/21 ] |
|
Author: {'name': 'A. Jesse Jiryu Davis', 'email': 'jesse@mongodb.com', 'username': 'ajdavis'}Message: |
| Comment by Githook User [ 25/Jan/21 ] |
|
Author: {'name': 'A. Jesse Jiryu Davis', 'email': 'jesse@mongodb.com', 'username': 'ajdavis'}Message: |
| Comment by Githook User [ 15/Jan/21 ] |
|
Author: {'name': 'A. Jesse Jiryu Davis', 'email': 'jesse@mongodb.com', 'username': 'ajdavis'}Message: |
| Comment by Githook User [ 11/Jan/21 ] |
|
Author: {'name': 'A. Jesse Jiryu Davis', 'email': 'jesse@mongodb.com', 'username': 'ajdavis'}Message: |
| Comment by A. Jesse Jiryu Davis [ 05/Jan/21 ] |
|
Consider redefining "writeConcernW" in terms of variant, once we add the variant IDL feature. |
| Comment by A. Jesse Jiryu Davis [ 05/Jan/21 ] |
|
Actually, dropIndexes seems to require a variant type in order for us to express it in IDL. Its "indexes" field can be a string, array of strings, or a document. |
| Comment by A. Jesse Jiryu Davis [ 13/Oct/20 ] |
|
We decided during the design process that we don't need this IDL enhancement. |