[obs-commits] [openSUSE/open-build-service] 346287: Use Project#get_by_name instead of #find_by in Sta...
Branch: refs/heads/staging-workflow Home: https://github.com/openSUSE/open-build-service Commit: 346287a737868f54951861fecd09eebbb5a0f458 https://github.com/openSUSE/open-build-service/commit/346287a737868f54951861... Author: Ana María Martínez Gómez <ammartinez@suse.de> Date: 2018-11-22 (Thu, 22 Nov 2018) Changed paths: M src/api/app/controllers/staging/staged_requests_controller.rb M src/api/app/controllers/staging/staging_projects_controller.rb Log Message: ----------- Use Project#get_by_name instead of #find_by in Staging Staging::StagingProject is a subclass of Project. `get_by_name` should be used always that a project is required instead of `find_by!` as it considers more cases where an exception should be raised. Commit: e727eb9131d42743a4ff9a40288bb040ea5dcad5 https://github.com/openSUSE/open-build-service/commit/e727eb9131d42743a4ff9a... Author: Moisés Déniz Alemán <mdeniz@suse.com> Date: 2018-11-22 (Thu, 22 Nov 2018) Changed paths: M src/api/app/controllers/staging/staged_requests_controller.rb M src/api/app/controllers/staging/staging_projects_controller.rb Log Message: ----------- Merge pull request #6338 from Ana06/no_find_by Use Project#get_by_name instead of #find_by in Staging Compare: https://github.com/openSUSE/open-build-service/compare/cd014cf9edfc...e727eb... **NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/ Functionality will be removed from GitHub.com on January 31st, 2019.
participants (1)
-
Moisés Déniz Alemán