Add ability to deprecate wrapped commands via AsyncCommand

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Won't Do
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      We should add a kwarg to motor.metaprogramming.AsyncCommand to add DeprecationWarnings to asynchronized command wrappers.

      For example, the AgnsoticDatabase.fsync helper could be deprecated via this newly added kwarg as follows:

      fsync = AsyncCommand(deprecation_msg="fsync is deprecated. Use client.admin.command('fsync') instead.")
      

              Assignee:
              Prashant Mital (Inactive)
              Reporter:
              Prashant Mital (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: