Inheritance: Allow specification of discriminator field (eg. other than _type)

XMLWordPrintableJSON

    • Discriminator Key Override
    • None
    • Done
    • None
    • None
    • Hide

      Engineer(s): Neil Shweky, Oleg Pudeyev

      2020-07-10: Initial end date set to 2020-08-07 (4 Weeks)

      • This is the intern project that Neil Shweky will be focusing on for the duration of the internship, ending August 7th.
      • Work has been kicked off and already making good progress!
      Show
      Engineer(s): Neil Shweky, Oleg Pudeyev 2020-07-10: Initial end date set to 2020-08-07 (4 Weeks) This is the intern project that Neil Shweky will be focusing on for the duration of the internship, ending August 7th. Work has been kicked off and already making good progress!
    • Major Change
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Tangentially related to issue: https://jira.mongodb.org/browse/MONGOID-4816

      Mongoose lets you optionally specify which field to use as the discriminator for subclasses, rather than just hardcoding _type.

      It would be nice if Mongoid had an macro/option to do the same.

      Scope of work:

      Investigate how mongoose and doctrine handle overriding discriminator field name
      Write a proposed design document
      Adjust submitted PR or implemented design in another way as appropriate
      Define test plan
      Write tests to satisfy test plan
      Add user documentation to tutorial

              Assignee:
              Neil Shweky (Inactive)
              Reporter:
              Andrzej Taramina
              None
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved:
                4 weeks
                None
                None
                None