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

Add warnings to the new Mongoid::Warnings module

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 8.0.1
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • Fully Compatible

      Our evergreen test suite is clogged by warnings of map_reduce being deprecated. With MONGOID-4998 the Mongoid::Warnings module can be used to cache warnings so they only happen once:

      W, 2022-07-08T18:42:12.394985 #2297 WARN – : MONGODB | The map_reduce operation is deprecated, please use the aggregation pipeline instead
      W, 2022-07-08T18:43:28.353863 #2297 WARN – : #as_json :compact option is deprecated. Please call #compact on the returned Hash object instead.

            Assignee:
            neil.shweky@mongodb.com Neil Shweky (Inactive)
            Reporter:
            neil.shweky@mongodb.com Neil Shweky (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: