• 
      

    Move request_method_decorator into rbtools.api.resource.base

    Review Request #14246 — Created Nov. 15, 2024 and submitted

    Information

    RBTools
    master

    Reviewers

    This change moves the request_method_decorator into our base resource
    definitions, since it's tightly tied to resources. It also renames it to
    request_method for brevity. The old name will still work with a
    deprecation warning.

    Ran unit tests.

    Summary ID
    Move request_method_decorator into rbtools.api.resource.base
    This change moves the `request_method_decorator` into our base resource definitions, since it's tightly tied to resources. It also renames it to `request_method` for brevity. The old name will still work with a deprecation warning. Testing Done: Ran unit tests.
    f0fa5ba27765c8fe4a67a9db162090448ba74491
    Description From Last Updated

    Should we add a version changed that says we moved and renamed the function?

    maubin maubin

    Swap these (ordering issue).

    chipx86 chipx86

    This is missing Args and Returns. We should probably also have typing pass-through.

    chipx86 chipx86

    We should probably use @wraps or update_method at this point so all the other important properties get transferred over. We're …

    chipx86 chipx86
    maubin
    1. 
        
    2. rbtools/api/resource/base.py (Diff revision 1)
       
       
      Show all issues

      Should we add a version changed that says we moved and renamed the function?

    3. 
        
    david
    maubin
    1. Ship It!
    2. 
        
    chipx86
    1. 
        
    2. rbtools/api/decorators.py (Diff revision 2)
       
       
       
      Show all issues

      Swap these (ordering issue).

    3. rbtools/api/resource/base.py (Diff revision 2)
       
       
       
      Show all issues

      This is missing Args and Returns.

      We should probably also have typing pass-through.

      1. Typing for this happens in a later change.

    4. rbtools/api/resource/base.py (Diff revision 2)
       
       
       
       
      Show all issues

      We should probably use @wraps or update_method at this point so all the other important properties get transferred over. We're missing a lot.

      1. That happens in a later change.

    5. 
        
    david
    chipx86
    1. Ship It!
    2. 
        
    david
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to master (de84d56)