• 
      

    Add the registered SCMTools to the server capabilities blob.

    Review Request #13971 — Created June 11, 2024 and submitted

    Information

    Review Board
    release-5.0.x

    Reviewers

    We currently don't have any way for clients to know what SCMTools are
    available on the server. This change adds the IDs of the registered
    SCMTools into the server capabilities.

    • Ran unit tests.
    • Fetched the server info resource and verified that the
      scmtools.supported_tools key was present in the capabilities. Checked
      that it contained the correct IDs depending on whether or not Power
      Pack was installed.
    Summary ID
    Add the registered SCMTools to the server capabilities blob.
    We currently don't have any way for clients to know what SCMTools are available on the server. This change adds the IDs of the registered SCMTools into the server capabilities. Testing Done: - Ran unit tests. - Fetched the server info resource and verified that the scmtools.supported_tools key was present in the capabilities. Checked that it contained the correct IDs depending on whether or not Power Pack was installed.
    94a439c268d241ea0a5fc2b0c16d9af1a605ed4c
    Description From Last Updated

    Can we add unit tests for this?

    chipx86chipx86

    The inner [] shouldn't be needed. sorted() should do the right thing with a generator.

    chipx86chipx86

    missing whitespace around operator Column: 9 Error code: E225

    reviewbotreviewbot
    chipx86
    1. 
        
    2. Show all issues

      Can we add unit tests for this?

    3. reviewboard/webapi/server_info.py (Diff revision 1)
       
       
       
       
       
      Show all issues

      The inner [] shouldn't be needed. sorted() should do the right thing with a generator.

    4. 
        
    david
    Review request changed
    Commits:
    Summary ID
    Add the registered SCMTools to the server capabilities blob.
    We currently don't have any way for clients to know what SCMTools are available on the server. This change adds the IDs of the registered SCMTools into the server capabilities. Testing Done: - Ran unit tests. - Fetched the server info resource and verified that the scmtools.supported_tools key was present in the capabilities. Checked that it contained the correct IDs depending on whether or not Power Pack was installed.
    d5abf79d01e1f4b3277b23fa0a0ab004de75b539
    Add the registered SCMTools to the server capabilities blob.
    We currently don't have any way for clients to know what SCMTools are available on the server. This change adds the IDs of the registered SCMTools into the server capabilities. Testing Done: - Ran unit tests. - Fetched the server info resource and verified that the scmtools.supported_tools key was present in the capabilities. Checked that it contained the correct IDs depending on whether or not Power Pack was installed.
    9591d79c142ca676b79052c5fc991fd75556f869

    Checks run (1 failed, 1 succeeded)

    flake8 failed.
    JSHint passed.

    flake8

    david
    chipx86
    1. Ship It!
    2. 
        
    maubin
    1. Ship It!
    2. 
        
    david
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to release-5.0.x (ce70b52)