Cleanup HostingServiceClient documentation & API

Review Request #8912 — Created April 21, 2017 and submitted

brennie
Review Board
release-2.5.x
8911
8913
reviewboard

The HostingServiceClient client class as largely undocumented: it
contained no argument or return type docs. This has been corrected.
Several of its methods also had mutable defaults, which has been
replaced with None so that the values do not persist to other calls.
The _build_form_data method has been made public and static, since it
should never have to access instance variables to do the serialization
of the provided data and is a generally useful method outside the class.

  • Ran unit tests.
  • Built the docs and read through them.
  • 0
  • 0
  • 9
  • 0
  • 9
Description From Last Updated
chipx86
  1. 
      
  2. reviewboard/hostingsvcs/service.py (Diff revision 1)
     
     
     
     

    We may also want to document the standard urlopen exceptions (URLError and HTTPError), here and in the others.

  3. reviewboard/hostingsvcs/service.py (Diff revision 1)
     
     
     

    Capitalize "The".

    Same with the docs below.

  4. reviewboard/hostingsvcs/service.py (Diff revision 1)
     
     

    Let's just do:

    if headers:
    
  5. reviewboard/hostingsvcs/service.py (Diff revision 1)
     
     

    "HTTP Basic Authentication", here and below.

  6. reviewboard/hostingsvcs/service.py (Diff revision 1)
     
     

    , optional

  7. reviewboard/hostingsvcs/service.py (Diff revision 1)
     
     

    , optional

  8. 
      
brennie
chipx86
  1. 
      
  2. reviewboard/hostingsvcs/service.py (Diff revision 2)
     
     
     
     
     

    These need to be the full class paths.

    Same with all below.

  3. reviewboard/hostingsvcs/service.py (Diff revision 2)
     
     
     
     
     
     
     
     
     

    Got some weirdness going on here.

  4. reviewboard/hostingsvcs/service.py (Diff revision 2)
     
     

    """ on the next line.

  5. 
      
brennie
brennie
david
  1. Ship It!
  2. 
      
brennie
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to release-2.5.x (73a33ef)
Loading...