Repository navigation
Bug 2099197 - Move Bugzilla::WebService::Constants and Bugzilla::WebService::Wants to Bugzilla::API::V1 - #2850
Merged
Merged
Conversation
…ervice::Wants to Bugzilla::API::V1 - Rename the packages and update their callers, tests and POD - Drop the import of the constants in Bugzilla::Auth::Login::CGI, which uses none of them - Remove the constants nothing uses anymore: STATUS_OK, STATUS_CREATED, STATUS_ACCEPTED, STATUS_NO_CONTENT, STATUS_MULTIPLE_CHOICES, STATUS_GONE and ERROR_GENERAL
…e comments - Export STATUS_NOT_AUTHORIZED and STATUS_REQUEST_TOO_LARGE: the webservice_status_code_map hook documentation tells extensions to use the STATUS_* constants - Stop mentioning the WebService interface and XML-RPC fault codes, and refer to WS_ERROR_CODE by its name
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Moves
Bugzilla::WebService::ConstantsandBugzilla::WebService::Wants, the last two files inBugzilla/WebService/, toBugzilla::API::V1, so the directory is gone.Follow-up of 2081819, part of 2057358.
Changes
Bugzilla/WebService/Constants.pmandWants.pmbecomeBugzilla/API/V1/Constants.pmandWants.pm, and their callers, tests and POD use the new names.STATUS_OK,STATUS_CREATED,STATUS_ACCEPTED,STATUS_NO_CONTENT,STATUS_MULTIPLE_CHOICES,STATUS_GONEandERROR_GENERAL.STATUS_NOT_AUTHORIZEDandSTATUS_REQUEST_TOO_LARGEare now exported too, as thewebservice_status_code_maphook documentation already said.webservice_error_codesandwebservice_status_code_maphooks keep their names, so extensions need no change.Test plan
t/wants.tandt/012throwables.tpassGET /rest/bug/999999returns 404 with code 101References