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 2

This is not the most recent revision of the diff. The latest diff is revision 3. See what's changed.

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.
9591d79c142ca676b79052c5fc991fd75556f869 David Trowbridge
reviewboard/webapi/server_info.py
reviewboard/webapi/tests/mixins.py
reviewboard/webapi/tests/test_server_info.py
Loading...