Branch: refs/heads/master
Home: https://github.com/openSUSE/open-build-service
Commit: 5df32833502c2cc54bfbfc5da164fccadebaa850
https://github.com/openSUSE/open-build-service/commit/5df32833502c2cc54bfbfc...
Author: Saray Cabrera Padrón
Date: 2019-11-13 (Wed, 13 Nov 2019)
Changed paths:
M src/api/app/controllers/source/errors.rb
M src/api/app/controllers/staging/staging_projects_controller.rb
A src/api/spec/cassettes/Staging_StagingProjectsController/POST_accept/when_project_is_in_state_acceptable/1_4_3_1.yml
M src/api/spec/controllers/staging/staging_projects_controller_spec.rb
Log Message:
-----------
Improve error message for non-existent staging project
Before, if the staging project didn't exist, it raised an exception with a quite cryptic error message.
Now, it shows a descriptive error message.
It uses a new exception defined in the Source::Errors module instead of
raising a generic exception with a customized message.
The show and accept actions had some code in common, it has been moved
to a before_action.
Commit: 8c0055fb9f06843820cbd9b665238754e178940a
https://github.com/openSUSE/open-build-service/commit/8c0055fb9f06843820cbd9...
Author: Saray Cabrera Padrón
Date: 2019-11-13 (Wed, 13 Nov 2019)
Changed paths:
M src/api/app/controllers/source/errors.rb
M src/api/app/controllers/staging/staging_projects_controller.rb
M src/api/spec/controllers/staging/staging_projects_controller_spec.rb
Log Message:
-----------
Create a new exception for non-existent staging workflow
When retrieving an staging workflow with a project that exists but
doesn't belong to any staging workflow, it raised a 500 error.
Now it raises a new 404 exception defined in the Source::Errors module.
Commit: 4335708eaa6b63b2acea77fd07863315413e2d2b
https://github.com/openSUSE/open-build-service/commit/4335708eaa6b63b2acea77...
Author: Stephan Kulow
Date: 2019-11-13 (Wed, 13 Nov 2019)
Changed paths:
M src/api/app/controllers/source/errors.rb
M src/api/app/controllers/staging/staging_projects_controller.rb
A src/api/spec/cassettes/Staging_StagingProjectsController/POST_accept/when_project_is_in_state_acceptable/1_4_3_1.yml
M src/api/spec/controllers/staging/staging_projects_controller_spec.rb
Log Message:
-----------
Merge pull request #8695 from saraycp/fix_8686_missing_staging_project_error
Add error message for non-existent staging project
Compare: https://github.com/openSUSE/open-build-service/compare/25aeb32d53a8...433570...