Return binary flag when with filediffs and allow querying by the binary flag.
Review Request #10729 — Created Sept. 26, 2019 and updated
RB Tools required getting the binary status of each filediff so it
could determine which files need an accompanying file upload. This
allows RB Tools to query the backend for the filediffs for a diff. The
filediffs returned will contain the binart flag. An optional flag is
also provide for querying only for filediffs that have the binary flag
set to either true or false.
Included unit test for these changes.
Summary | ID |
---|---|
2cb39d374b5799e821a07e734ed6a614904bf64c | |
4b1e111fed1df7c8cd8ae27b89c8f7b1f9dec0b5 | |
9ae87d7ca6a8c5bad33d32df78baae77f8abde4b | |
2371a6a041e2ca4c3c9147b85eac56039872fea2 | |
46a4cabcc5cf318a5fefe46ebb5b98b5789628b2 | |
9da99cd37e3d89ecd9ea02bd65a4ff646ae5a9c2 | |
90b4f57a8285cd9be9d847410144002529972775 | |
3047b4be526f39ded08bf118b14930d5252f3b79 | |
bd8db61615a5ce70d82438900eb6dff63a7c105d | |
0cea0271d77078b30ee22e45bbb1356d111b7dbb |
Description | From | Last Updated |
---|---|---|
Typo in summary: "amd" |
brennie | |
This is including some strange delete/re-add of some changes. Can you look into what happened, try to revert those? |
chipx86 | |
Can you flesh out the description and testing done? See https://www.notion.so/reviewboard/Writing-Good-Change-Descriptions-10529e7c207743fa8ca90153d4b21fea |
david | |
Can you add unit tests for both the query parameter and the new field in the output? |
david | |
Let's keep these in alphabetical order |
david | |
This needs a period at the end. |
david | |
Please use single quotes rather than double. |
david | |
This can be simplified down to: qs = qs.filter(binary=(param == 'true')) |
david | |
"is binary" or "is a binary file". |
brennie | |
This should be updated to talk about the new binary query parameter. |
david | |
Instead of doing this, you can add a binary=False keyword arugment to get_queryset() and the API field will do the … |
brennie | |
E501 line too long (80 > 79 characters) |
reviewbot | |
E501 line too long (80 > 79 characters) |
reviewbot | |
E501 line too long (80 > 79 characters) |
reviewbot | |
E501 line too long (80 > 79 characters) |
reviewbot | |
E501 line too long (86 > 79 characters) |
reviewbot | |
E501 line too long (80 > 79 characters) |
reviewbot | |
E501 line too long (83 > 79 characters) |
reviewbot | |
E501 line too long (80 > 79 characters) |
reviewbot |
- Commits:
-
Summary ID d97e179568dbb30a12452ce21a990905c0bcd742 8d2cdb32bc41a59bff8948bc547c5eba15c34e94 - Diff:
-
Revision 2 (+20 -2)
Checks run (2 succeeded)
- Description:
-
~ Backend support for RB Tools to know which binary files it needs to upload with a diff.
~ RB Tools required getting the binary status of each filediff so it could determine which files need an accompanying file upload. This allows RB Tools to query the backend for the filediffs for a diff. The filediffs returned will contain the binart flag. An optional flag is also provide for querying only for filediffs that have the binary flag set to either true or false.
- Summary:
-
Return binary flag when with filediffs amd allow querying by the binary flag.Return binary flag when with filediffs and allow querying by the binary flag.
- Commits:
-
Summary ID 8d2cdb32bc41a59bff8948bc547c5eba15c34e94 2cb39d374b5799e821a07e734ed6a614904bf64c 4b1e111fed1df7c8cd8ae27b89c8f7b1f9dec0b5
- Commits:
-
Summary ID 2cb39d374b5799e821a07e734ed6a614904bf64c 4b1e111fed1df7c8cd8ae27b89c8f7b1f9dec0b5 2cb39d374b5799e821a07e734ed6a614904bf64c 4b1e111fed1df7c8cd8ae27b89c8f7b1f9dec0b5 9ae87d7ca6a8c5bad33d32df78baae77f8abde4b 2371a6a041e2ca4c3c9147b85eac56039872fea2 - Diff:
-
Revision 4 (+5913 -5895)
- Commits:
-
Summary ID 2cb39d374b5799e821a07e734ed6a614904bf64c 4b1e111fed1df7c8cd8ae27b89c8f7b1f9dec0b5 9ae87d7ca6a8c5bad33d32df78baae77f8abde4b 2371a6a041e2ca4c3c9147b85eac56039872fea2 2cb39d374b5799e821a07e734ed6a614904bf64c 4b1e111fed1df7c8cd8ae27b89c8f7b1f9dec0b5 9ae87d7ca6a8c5bad33d32df78baae77f8abde4b 2371a6a041e2ca4c3c9147b85eac56039872fea2 46a4cabcc5cf318a5fefe46ebb5b98b5789628b2 9da99cd37e3d89ecd9ea02bd65a4ff646ae5a9c2 - Diff:
-
Revision 5 (+13587 -13451)
- Commits:
-
Summary ID 2cb39d374b5799e821a07e734ed6a614904bf64c 4b1e111fed1df7c8cd8ae27b89c8f7b1f9dec0b5 9ae87d7ca6a8c5bad33d32df78baae77f8abde4b 2371a6a041e2ca4c3c9147b85eac56039872fea2 46a4cabcc5cf318a5fefe46ebb5b98b5789628b2 9da99cd37e3d89ecd9ea02bd65a4ff646ae5a9c2 2cb39d374b5799e821a07e734ed6a614904bf64c 4b1e111fed1df7c8cd8ae27b89c8f7b1f9dec0b5 9ae87d7ca6a8c5bad33d32df78baae77f8abde4b 2371a6a041e2ca4c3c9147b85eac56039872fea2 46a4cabcc5cf318a5fefe46ebb5b98b5789628b2 9da99cd37e3d89ecd9ea02bd65a4ff646ae5a9c2 90b4f57a8285cd9be9d847410144002529972775 - Diff:
-
Revision 6 (+13609 -13455)
- Commits:
-
Summary ID 2cb39d374b5799e821a07e734ed6a614904bf64c 4b1e111fed1df7c8cd8ae27b89c8f7b1f9dec0b5 9ae87d7ca6a8c5bad33d32df78baae77f8abde4b 2371a6a041e2ca4c3c9147b85eac56039872fea2 46a4cabcc5cf318a5fefe46ebb5b98b5789628b2 9da99cd37e3d89ecd9ea02bd65a4ff646ae5a9c2 90b4f57a8285cd9be9d847410144002529972775 2cb39d374b5799e821a07e734ed6a614904bf64c 4b1e111fed1df7c8cd8ae27b89c8f7b1f9dec0b5 9ae87d7ca6a8c5bad33d32df78baae77f8abde4b 2371a6a041e2ca4c3c9147b85eac56039872fea2 46a4cabcc5cf318a5fefe46ebb5b98b5789628b2 9da99cd37e3d89ecd9ea02bd65a4ff646ae5a9c2 90b4f57a8285cd9be9d847410144002529972775 3047b4be526f39ded08bf118b14930d5252f3b79 bd8db61615a5ce70d82438900eb6dff63a7c105d - Diff:
-
Revision 7 (+13614 -13458)
- Commits:
-
Summary ID 2cb39d374b5799e821a07e734ed6a614904bf64c 4b1e111fed1df7c8cd8ae27b89c8f7b1f9dec0b5 9ae87d7ca6a8c5bad33d32df78baae77f8abde4b 2371a6a041e2ca4c3c9147b85eac56039872fea2 46a4cabcc5cf318a5fefe46ebb5b98b5789628b2 9da99cd37e3d89ecd9ea02bd65a4ff646ae5a9c2 90b4f57a8285cd9be9d847410144002529972775 3047b4be526f39ded08bf118b14930d5252f3b79 bd8db61615a5ce70d82438900eb6dff63a7c105d 2cb39d374b5799e821a07e734ed6a614904bf64c 4b1e111fed1df7c8cd8ae27b89c8f7b1f9dec0b5 9ae87d7ca6a8c5bad33d32df78baae77f8abde4b 2371a6a041e2ca4c3c9147b85eac56039872fea2 46a4cabcc5cf318a5fefe46ebb5b98b5789628b2 9da99cd37e3d89ecd9ea02bd65a4ff646ae5a9c2 90b4f57a8285cd9be9d847410144002529972775 3047b4be526f39ded08bf118b14930d5252f3b79 bd8db61615a5ce70d82438900eb6dff63a7c105d 0cea0271d77078b30ee22e45bbb1356d111b7dbb - Diff:
-
Revision 8 (+13618 -13460)
- Description:
-
~ RB Tools required getting the binary status of each filediff so it could determine which files need an accompanying file upload. This allows RB Tools to query the backend for the filediffs for a diff. The filediffs returned will contain the binart flag. An optional flag is also provide for querying only for filediffs that have the binary flag set to either true or false.
~ RB Tools required getting the binary status of each filediff so it
+ could determine which files need an accompanying file upload. This + allows RB Tools to query the backend for the filediffs for a diff. The + filediffs returned will contain the binart flag. An optional flag is + also provide for querying only for filediffs that have the binary flag + set to either true or false. - Testing Done:
-
+ Included unit test for these changes.