Do some cleanup and modernization of hosting service/API code.

Review Request #14127 — Created Aug. 29, 2024 and submitted

Information

Review Board
release-7.x

Reviewers

In preparation for fixing issues with the HostingServiceAccountResource
create method, this change does some cleanup and type annotation for
code I'm touching.

Ran unit tests.

Summary ID
Do some cleanup and modernization of hosting service/API code.
In preparation for fixing issues with the HostingServiceAccountResource create method, this change does some cleanup and type annotation for code I'm touching. Testing Done: Ran unit tests.
9ff0cc1fb1031cff46890604ea7f3258bcf5b92e
Description From Last Updated

line too long (81 > 79 characters) Column: 80 Error code: E501

reviewbotreviewbot

line too long (81 > 79 characters) Column: 80 Error code: E501

reviewbotreviewbot

Nit but could say "The HTTP request from the client." to be more clear.

maubinmaubin

Forgot to document **kwargs

maubinmaubin

This is missing Args and Returns sections.

maubinmaubin
Checks run (1 failed, 1 succeeded)
flake8 failed.
JSHint passed.

flake8

david
maubin
  1. 
      
  2. Show all issues

    Nit but could say "The HTTP request from the client." to be more clear.

  3. reviewboard/webapi/resources/hosting_service_account.py (Diff revision 2)
     
     
     
     
     
     
    Show all issues

    Forgot to document **kwargs

  4. reviewboard/webapi/resources/hosting_service_account.py (Diff revision 2)
     
     
     
     
     
     
     
    Show all issues

    This is missing Args and Returns sections.

    1. At the moment, the docstrings for these are extracted and used to create the public API documentation, so we don't have any "codebase" kind of docs here. My changes for @webapi_docs change that so we can have the public docs in the decorator and use the docstring for our code, but that's not in yet and won't be for 7.x.

    2. Oh I see.

  5. 
      
david
maubin
  1. 
      
  2. 
      
david
Review request changed
Status:
Completed
Change Summary:
Pushed to release-7.x (c4538b4)