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

Fixes/typos/recommendations for 7.4 release notes

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 7.5.0, 7.4.1
    • Affects Version/s: None
    • Component/s: None
    • Fully Compatible

       It would be nice if you could summarize the all the feature flag settings at the top of the release notes.

       

      # Enable all new behavior in Mongoid 7.4
      Mongoid.broken_updates        = false
      Mongoid.legacy_triple_equals  = false
      Mongoid.broken_scoping        = false
      Mongoid.broken_aggregables    = false
      Mongoid.broken_alias_handling = false
      Mongoid.broken_and            = false
      Mongoid.object_id_as_json_oid = false
      Mongoid.legacy_pluck_distinct = false
      Mongoid.compare_time_by_ms    = true
      

      ALTERNATIVELY: Rails has a feature `config.load_defaults 6.0` where you can auto-set all the feature flags from the latest version. I would recommend to have `Mongoid.load_defaults 7.4` and copy the logic from Rails, it works brilliantly.

      In addition:

      • object_id_as_json_oid is missing "Will be changed to false in Mongoid 8.0"
      • compare_time_by_ms Mongoid 8.0 message is not emphasized like others.
      • Typo: value of "The value of Mongoid.broken_update option" should be "broken_updates"

       

            Assignee:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Reporter:
            shields@tablecheck.com Johnny Shields
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: