Make the user agent accessible from the RBClient class.

Review Request #13340 — Created Oct. 13, 2023 and submitted

Information

RBTools
release-5.x

Reviewers

This makes the user agent string used for clients accessible from RBClient
as a property. We also weren't passing on the user agent from SyncTransport
to the ReviewBoardServer, so if a custom agent was set on the
SyncTransport, the ReviewBoardServer would still use the default agent.
This change fixes that.

  • Ran unit tests.
  • Used in an upcoming change where I access the user agent from the
    RBClient in a command.
Summary ID
Make the user agent accessible from the RBClient class.
570dd14ab268f54ba50406217f609d5cc0d84526
Description From Last Updated

Can we call this user_agent instead? agent is pretty generic.

daviddavid
david
  1. 
      
  2. rbtools/api/client.py (Diff revision 1)
     
     
    Show all issues

    Can we call this user_agent instead? agent is pretty generic.

  3. 
      
maubin
david
  1. Ship It!
  2. 
      
maubin
david
  1. Ship It!
  2. 
      
chipx86
  1. Ship It!
  2. 
      
maubin
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to release-5.x (568065f)
Loading...