Make the user agent accessible from the RBClient class.

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

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)
     
     

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

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

Change Summary:

Forgot to actually switch to the user_agent variable instead of agent.

Commits:

Summary ID
Make the user agent accessible from the RBClient class.
053625b9815afd9efe69d1bf5c331a35b5bfe03b
Make the user agent accessible from the RBClient class.
570dd14ab268f54ba50406217f609d5cc0d84526

Diff:

Revision 3 (+38 -4)

Show changes

Checks run (2 succeeded)

flake8 passed.
JSHint passed.
david
  1. Ship It!
  2. 
      
Loading...