Branch: refs/heads/master
Home: https://github.com/openSUSE/open-build-service
Commit: dd0c9866b6e58d0c68713b01b56f835dfe292319
https://github.com/openSUSE/open-build-service/commit/dd0c9866b6e58d0c68713b...
Author: David Kang
Date: 2019-04-02 (Tue, 02 Apr 2019)
Changed paths:
M docs/api/api/api.txt
A docs/api/api/create_staging_projects.xml
M src/api/app/controllers/staging/staging_projects_controller.rb
A src/api/app/services/staging/staging_project_creator.rb
A src/api/app/services/staging/staging_project_validator.rb
M src/api/config/routes.rb
M src/api/spec/controllers/staging/staging_projects_controller_spec.rb
A src/api/spec/services/staging/staging_project_creator_spec.rb
Log Message:
-----------
Create staging projects via API
- Implemented API (added create action and route).
- Added controller and service tests.
- Added API documentation.
Commit: e9a41d50b5c019e692a61db58f8253abe20f1a70
https://github.com/openSUSE/open-build-service/commit/e9a41d50b5c019e692a61d...
Author: Victor Pereira
Date: 2019-04-02 (Tue, 02 Apr 2019)
Changed paths:
M src/api/app/services/staging/staging_project_creator.rb
M src/api/spec/controllers/staging/staging_projects_controller_spec.rb
Log Message:
-----------
Do not allow empty body on StagingProjectController#create
Commit: b54dfcada49be63eff70a494efb14e29b8e3e4aa
https://github.com/openSUSE/open-build-service/commit/b54dfcada49be63eff70a4...
Author: Victor Pereira
Date: 2019-04-02 (Tue, 02 Apr 2019)
Changed paths:
M src/api/app/controllers/staging/staging_projects_controller.rb
M src/api/app/services/staging/staging_project_creator.rb
M src/api/spec/services/staging/staging_project_creator_spec.rb
Log Message:
-----------
Move the Xmlhash parsing to the StagingProjectCreator service
To reduce the logic away from the controller, and keep it thin,
move the XML parsing to StagingPRojectCreator
Commit: c8c36c5fa51c37b8d5960bdc56d54ccc86493de1
https://github.com/openSUSE/open-build-service/commit/c8c36c5fa51c37b8d5960b...
Author: Victor Pereira
Date: 2019-04-02 (Tue, 02 Apr 2019)
Changed paths:
M src/api/app/controllers/staging/staging_projects_controller.rb
Log Message:
-----------
Validate StagingProjectController#create with validate_action
Validate the presence of staging_project on the request body XML
using the obs custom validate_action validator
Commit: d8f7cc2e8de5a7800613e2e016ef1ed8780405b7
https://github.com/openSUSE/open-build-service/commit/d8f7cc2e8de5a7800613e2...
Author: Victor Pereira
Date: 2019-04-02 (Tue, 02 Apr 2019)
Changed paths:
M src/api/app/services/staging/staging_project_creator.rb
M src/api/spec/services/staging/staging_project_creator_spec.rb
Log Message:
-----------
Extract staging_projects variable to a method
To simplify the method ```call``` extract the staging_projects
variable assignment to a separated method
Commit: 0e13eceb1d4df1b47e58a45d833624276d58f297
https://github.com/openSUSE/open-build-service/commit/0e13eceb1d4df1b47e58a4...
Author: Victor Pereira
Date: 2019-04-02 (Tue, 02 Apr 2019)
Changed paths:
M src/api/test/functional/backend_test.rb
Log Message:
-----------
Add create_staging_projects schema to backend tests
Commit: bfafe97e1f75c2a98aab81fe78ff6edd46153ccd
https://github.com/openSUSE/open-build-service/commit/bfafe97e1f75c2a98aab81...
Author: Victor Pereira
Date: 2019-04-02 (Tue, 02 Apr 2019)
Changed paths:
M docs/api/api/api.txt
A docs/api/api/create_staging_projects.xml
M src/api/app/controllers/staging/staging_projects_controller.rb
A src/api/app/services/staging/staging_project_creator.rb
A src/api/app/services/staging/staging_project_validator.rb
M src/api/config/routes.rb
M src/api/spec/controllers/staging/staging_projects_controller_spec.rb
A src/api/spec/services/staging/staging_project_creator_spec.rb
M src/api/test/functional/backend_test.rb
Log Message:
-----------
Merge pull request #7178 from DavidKang/staging-workflow/sprint56/api-create-staging-projects
Create staging projects via API
Compare: https://github.com/openSUSE/open-build-service/compare/68b1cbc9c95e...bfafe9...