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

Updating embedded docs with a different _id is not working in 7.3

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Critical - P2 Critical - P2
    • None
    • Affects Version/s: None
    • Component/s: None
    • None

      Hi

       

      Since upgrading to mongoid 7.3.3, updating an embedded with a hash containing a different _id is skipped. Not sure if this is by design or not, but it wasn't the case prior to this upgrade. Verified with mongoid 7.0.12.

      Reason is this change which is a part of this ticket

      Is it by design? if so, i suggest it would be listed as a breaking change.

      Reproduced in attached gist

       

      Thanks

      Boaz

            Assignee:
            jamis.buck@mongodb.com Jamis Buck
            Reporter:
            boaz@honeybook.com Boaz Adato
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: