[obs-commits] [openSUSE/open-build-service] 21b4e3: Refactor BranchPackage model
Branch: refs/heads/master Home: https://github.com/openSUSE/open-build-service Commit: 21b4e3bac4208dc1fa38dee158b42fbefa4360b4 https://github.com/openSUSE/open-build-service/commit/21b4e3bac4208dc1fa38de... Author: Victor Pereira <vpereira@suse.de> Date: 2019-10-23 (Wed, 23 Oct 2019) Changed paths: M src/api/app/models/branch_package.rb A src/api/app/models/branch_package/dry_run.rb A src/api/app/models/branch_package/errors.rb M src/api/spec/models/branch_package_spec.rb Log Message: ----------- Refactor BranchPackage model Add new spec and extract the dryreport and errors to separated files Commit: 73965185a3ac0180df339527e46cad22f88b4dde https://github.com/openSUSE/open-build-service/commit/73965185a3ac0180df3395... Author: Victor Pereira <vpereira@suse.de> Date: 2019-10-23 (Wed, 23 Oct 2019) Changed paths: M src/api/app/models/branch_package.rb A src/api/app/models/branch_package/set_target_project.rb A src/api/spec/cassettes/BranchPackage_SetTargetProject/_auto_cleanup/with_target_project_and_autocleanup/1_3_1_1.yml A src/api/spec/cassettes/BranchPackage_SetTargetProject/_new/1_1_1.yml A src/api/spec/cassettes/BranchPackage_SetTargetProject/_target_project/when_request_is_provided/1_2_2_1.yml A src/api/spec/cassettes/BranchPackage_SetTargetProject/_target_project/when_target_project_is_provided/1_2_1_1.yml A src/api/spec/cassettes/BranchPackage_SetTargetProject/_valid_/invalid_name/1_4_2_1.yml A src/api/spec/cassettes/BranchPackage_SetTargetProject/_valid_/valid_name/1_4_1_1.yml A src/api/spec/models/branch_package/set_target_project_spec.rb Log Message: ----------- Add BranchPackage::SetTargetProject class and specs Commit: 5f77d21be62755a3b41f6703edaad56d37b4aa48 https://github.com/openSUSE/open-build-service/commit/5f77d21be62755a3b41f67... Author: Victor Pereira <vpereira@suse.de> Date: 2019-10-23 (Wed, 23 Oct 2019) Changed paths: M src/api/app/models/branch_package/set_target_project.rb Log Message: ----------- Use BranchPackage::SetTargetProject on BranchPackage#set_target_project Reduce complexity on BranchPackage#set_target_project extracting the code to its own tested class Commit: 0a7562651f28d3de745a14a2384138962cb70d76 https://github.com/openSUSE/open-build-service/commit/0a7562651f28d3de745a14... Author: Victor Pereira <vpereira@suse.de> Date: 2019-10-23 (Wed, 23 Oct 2019) Changed paths: M src/api/app/models/branch_package.rb A src/api/app/models/branch_package/dry_run.rb A src/api/app/models/branch_package/errors.rb A src/api/app/models/branch_package/set_target_project.rb A src/api/spec/cassettes/BranchPackage_SetTargetProject/_auto_cleanup/with_target_project_and_autocleanup/1_3_1_1.yml A src/api/spec/cassettes/BranchPackage_SetTargetProject/_new/1_1_1.yml A src/api/spec/cassettes/BranchPackage_SetTargetProject/_target_project/when_request_is_provided/1_2_2_1.yml A src/api/spec/cassettes/BranchPackage_SetTargetProject/_target_project/when_target_project_is_provided/1_2_1_1.yml A src/api/spec/cassettes/BranchPackage_SetTargetProject/_valid_/invalid_name/1_4_2_1.yml A src/api/spec/cassettes/BranchPackage_SetTargetProject/_valid_/valid_name/1_4_1_1.yml A src/api/spec/models/branch_package/set_target_project_spec.rb M src/api/spec/models/branch_package_spec.rb Log Message: ----------- Merge pull request #8598 from vpereira/refactor_branch_package Refactor BranchPackage model Compare: https://github.com/openSUSE/open-build-service/compare/2a9f9d305c8f...0a7562...
participants (1)
-
Victor Pereira