Add a flag to the FileDiff resource to query for only binary files.

Review Request #13542 — Created Feb. 16, 2024 and submitted — Latest diff uploaded

Information

Review Board
master

Reviewers

In order for RBTools to upload binary files, we need to know which ones
are needed. This change adds a query parameter to the FileDiff list
resource that allows a caller to get only FileDiffs that are marked as
binary.

  • Ran unit tests.
  • Used the API and saw that I was given the correct results.

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 a flag to the FileDiff resource to query for only binary files.
In order for RBTools to upload binary files, we need to know which ones are needed. This change adds a query parameter to the FileDiff list resource that allows a caller to get only FileDiffs that are marked as binary. Testing Done: - Ran unit tests. - Used the API and saw that I was given the correct results.
1696b649175b65e1a862305eb47fc673ff0d210f David Trowbridge
reviewboard/webapi/resources/filediff.py
reviewboard/webapi/tests/test_filediff.py
Loading...