FileProvider resource web API for providers
Review Request #7124 — Created March 26, 2015 and updated
Any instance of ReviewBoard may support the FileProvider framework. If they do, they may support different sets of file providers and each one may be implemented differently. By having an API for GET requests, it can lists all of the supported file providers for users and implementations to know what file providers are supported, and information associated with them. GET requests for to learn about individual file providers can also be made with
api/file-providers/<name>/
Test cases for the GET api calls (via
reviewboard/webapi/tests/test_file_provider.py
), and manual testing with GET requests
Description | From | Last Updated |
---|---|---|
'webapi_response_errors' imported but unused |
reviewbot | |
This can be one line. Same below. |
chipx86 | |
No parens here. |
chipx86 | |
Or here. |
chipx86 | |
Where is this being caught? Also, can we raise FileProvider.DoesNotExist? the ObjectDoesNotExist exception could apply to any model. |
brennie | |
This can be a single line. |
brennie | |
No blank line here. |
brennie | |
"file-providers/" |
brennie | |
Test docstrings should not end in a period. |
brennie | |
Should be in the imperative mood ("Return") |
david | |
Should be in the imperative mood ("Return") |
david |
- Change Summary:
-
Added get_links for
FileProviderAccountResource
for items to point to the correct url for their file provider item - Commit:
-
9985b6cc4f52a15d0a24c07bf1a287b44723d77e645246c9df72f2c2653120f40c65dffbc35120f4
- Diff:
-
Revision 2 (+233)
-
Tool: PEP8 Style Checker Processed Files: reviewboard/webapi/resources/file_provider.py reviewboard/webapi/resources/root.py reviewboard/fileproviders/fileprovider.py reviewboard/webapi/tests/urls.py reviewboard/webapi/tests/mimetypes.py reviewboard/webapi/resources/file_provider_account.py reviewboard/webapi/tests/test_file_provider.py Tool: Pyflakes Processed Files: reviewboard/webapi/resources/file_provider.py reviewboard/webapi/resources/root.py reviewboard/fileproviders/fileprovider.py reviewboard/webapi/tests/urls.py reviewboard/webapi/tests/mimetypes.py reviewboard/webapi/resources/file_provider_account.py reviewboard/webapi/tests/test_file_provider.py
- Summary:
-
[WIP] FileProvider resource web API for providersFileProvider resource web API for providers
- Change Summary:
-
Fixed styling issues brought up by reviews.
Updated the return to remove path_sep in the payload, as that is no longer supported. Adjusted test cases accordingly as well.
- Description:
-
~ Any instance of ReviewBoard may support the FileProvider framework, and if they do, they may support different sets of file providers and each one may be implemented differently. By having an API that lists all of the supported file providers, users and implemenntations would know what file providers are supported, and information associated with them.
~ Any instance of ReviewBoard may support the FileProvider framework. If they do, they may support different sets of file providers and each one may be implemented differently. By having an API that lists all of the supported file providers, users and implementations would know what file providers are supported, and information associated with them.
- Commit:
-
645246c9df72f2c2653120f40c65dffbc35120f4f3d36dce2452d0e14c687f85ebcf5f5de42fab03
- Diff:
-
Revision 3 (+225)
-
Tool: Pyflakes Processed Files: reviewboard/webapi/resources/file_provider.py reviewboard/webapi/resources/root.py reviewboard/fileproviders/fileprovider.py reviewboard/webapi/tests/urls.py reviewboard/webapi/tests/mimetypes.py reviewboard/webapi/resources/file_provider_account.py reviewboard/webapi/tests/test_file_provider.py Tool: PEP8 Style Checker Processed Files: reviewboard/webapi/resources/file_provider.py reviewboard/webapi/resources/root.py reviewboard/fileproviders/fileprovider.py reviewboard/webapi/tests/urls.py reviewboard/webapi/tests/mimetypes.py reviewboard/webapi/resources/file_provider_account.py reviewboard/webapi/tests/test_file_provider.py
- Description:
-
~ Any instance of ReviewBoard may support the FileProvider framework. If they do, they may support different sets of file providers and each one may be implemented differently. By having an API that lists all of the supported file providers, users and implementations would know what file providers are supported, and information associated with them.
~ Any instance of ReviewBoard may support the FileProvider framework. If they do, they may support different sets of file providers and each one may be implemented differently. By having an API for GET requests, it can lists all of the supported file providers for users and implementations to know what file providers are supported, and information associated with them. GET requests for to learn about individual file providers can also be made with
api/file-providers/<name>/
- Change Summary:
-
Fixed documentation issues, and styling for code.
- Commit:
-
f3d36dce2452d0e14c687f85ebcf5f5de42fab03f853527b2cd68bd7877b699be65f5814e3ab3369
- Diff:
-
Revision 4 (+222)
-
Tool: Pyflakes Processed Files: reviewboard/webapi/resources/file_provider.py reviewboard/webapi/resources/root.py reviewboard/fileproviders/fileprovider.py reviewboard/webapi/tests/urls.py reviewboard/webapi/tests/mimetypes.py reviewboard/webapi/resources/file_provider_account.py reviewboard/webapi/tests/test_file_provider.py Tool: PEP8 Style Checker Processed Files: reviewboard/webapi/resources/file_provider.py reviewboard/webapi/resources/root.py reviewboard/fileproviders/fileprovider.py reviewboard/webapi/tests/urls.py reviewboard/webapi/tests/mimetypes.py reviewboard/webapi/resources/file_provider_account.py reviewboard/webapi/tests/test_file_provider.py