Add warnings to the new Mongoid::Warnings module

XMLWordPrintableJSON

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

      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 (Inactive)
            Reporter:
            Neil Shweky (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: