Provide a sane error if encountering multiple conflicting repositories.
Review Request #7459 — Created June 26, 2015 and submitted
If two repositories conflict (one has a Mirror Path matching the Path of
another repository), then validating a diff or creating a review request
in the API will result in an HTTP 500 error, due to a
MultipleObjectsReturned
exception.We now check for this and provide a more reasonable error message
instead, with a suggestion for how to resolve the issue.
Unit tests pass.
Description | From | Last Updated |
---|---|---|
I thought we were moving away from doing IO in tests just to read data? |
brennie |
- Change Summary:
-
Removed the disk IO from the new unit test.
- Commit:
-
9709917a431aca066d040aa3aa9f66b876b22cbb7f1f6017629ce97bd79b704b817d1f626cc03fa0
-
Tool: Pyflakes Processed Files: reviewboard/webapi/resources/validate_diff.py reviewboard/webapi/tests/test_validate_diff.py reviewboard/webapi/resources/review_request.py reviewboard/webapi/tests/test_review_request.py Tool: PEP8 Style Checker Processed Files: reviewboard/webapi/resources/validate_diff.py reviewboard/webapi/tests/test_validate_diff.py reviewboard/webapi/resources/review_request.py reviewboard/webapi/tests/test_review_request.py