Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-5790

Informative error message if parent document is loaded after embedded

    • Type: Icon: Improvement Improvement
    • Resolution: Gone away
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: Associations
    • None
    • Ruby Drivers
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      MONGOID-5016 sets touch: true by default for embedded documents. As we found in HELP-61080 this causes NameError if the parent document class in not loaded at a time of loading embedded document class. This behaviour should be fixed in MONGOID-5791. However, as a palliative solution for 9.0.1 we should raise a more descriptive error. The error should indicate what may be the cause, and suggest a solution.

            Assignee:
            jamis.buck@mongodb.com Jamis Buck
            Reporter:
            dmitry.rybakov@mongodb.com Dmitry Rybakov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: