Add the registered SCMTools to the server capabilities blob.

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

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.

Diff Revision 3 (Latest)

orig
1
2
3

Commits

First Last Summary ID Author
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 David Trowbridge
reviewboard/webapi/server_info.py
reviewboard/webapi/tests/mixins.py
reviewboard/webapi/tests/test_server_info.py
Loading...