Add supported review UI MIME types to the server info capabilities.

Review Request #13537 — Created Feb. 12, 2024 and submitted — Latest diff uploaded

Information

Review Board
master

Reviewers

In order for RBTools to make intelligent decisions about what binary
files to upload to the server, we're exposing a list of supported MIME
types to the server capablities blob. This is populated from the
registered ReviewUI classes, and then we add manually the MIME types
supported by Power Pack (in order to optimistically have the client
upload files, even if the feature isn't yet licensed).

  • Verified that the correct data was in the server info API response.
  • Ran unit tests.

Diff Revision 1

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

orig
1
2

Commits

First Last Summary ID Author
Add supported review UI MIME types to the server info capabilities.
In order for RBTools to make intelligent decisions about what binary files to upload to the server, we're exposing a list of supported MIME types to the server capablities blob. This is populated from the registered ReviewUI classes, and then we add manually the MIME types supported by Power Pack (in order to optimistically have the client upload files, even if the feature isn't yet licensed). Testing Done: - Verified that the correct data was in the server info API response. - Ran unit tests.
b0de041efd1a5bf055d0ab7bc9ee4f0bf20efc0a David Trowbridge
reviewboard/webapi/server_info.py
reviewboard/webapi/tests/test_server_info.py
Loading...