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 2 (Latest)

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.
8409bf815bbce1619eba16fc18f1ce5cfd74cbeb David Trowbridge
reviewboard/webapi/server_info.py
reviewboard/webapi/tests/test_server_info.py
Loading...