Add modern API error types and update tests for Djblets error types.

Review Request #13264 — Created Sept. 6, 2023 and submitted — Latest diff uploaded

Information

Review Board
release-6.x

Reviewers

Djblets 4 is gaining additional support in API error payloads for error
type strings (a more useful equivalent to numeric codes) and other
useful error information.

This change adds types to Review Board's API errors, and documents the
errors in the process. It also updates unit tests to check against the
updated payloads with type information.

Unit tests pass.

Diff Revision 1 (Latest)

Commits

First Last Summary ID Author
Add modern API error types and update tests for Djblets error types.
Djblets 4 is gaining additional support in API error payloads for error type strings (a more useful equivalent to numeric codes) and other useful error information. This change adds types to Review Board's API errors, and documents the errors in the process. It also updates unit tests to check against the updated payloads with type information.
fc910daa70558d602a43c8bedd4390cd5320b62e Christian Hammond
reviewboard/webapi/errors.py
reviewboard/webapi/tests/mixins_extra_data.py
reviewboard/webapi/tests/test_draft_diff.py
reviewboard/webapi/tests/test_draft_diffcommit.py
reviewboard/webapi/tests/test_repository.py
reviewboard/webapi/tests/test_review_comment.py
reviewboard/webapi/tests/test_review_request_draft.py
reviewboard/webapi/tests/test_validate_diff.py
Loading...