Uploaded image for project: 'Motor'
  1. Motor
  2. MOTOR-697

Add ability to deprecate wrapped commands via AsyncCommand

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Do
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: 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 Prashant Mital (Inactive)
            Reporter:
            prashant.mital Prashant Mital (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: