[obs-commits] [openSUSE/open-build-service] 5f8140: Use create! instead of create in Update User#creat...
Branch: refs/heads/master Home: https://github.com/openSUSE/open-build-service Commit: 5f814023f93f9cded114c47810e6000876468ea4 https://github.com/openSUSE/open-build-service/commit/5f814023f93f9cded114c4... Author: Björn Geuken <bgeuken@suse.de> Date: 2019-05-16 (Thu, 16 May 2019) Changed paths: M src/api/app/models/user.rb Log Message: ----------- Use create! instead of create in Update User#create_home_project Make sure to raise an exception early on, if there is a problem. Before this was failing because "You cannot call create unless the parent is saved". But the actual problem was that the project name was invalid. This makes it a bit more obvious and easier to catch what the actual problem is. Found while debugging #7564. Commit: c782cc47d7b1b5b359bb97b08cac959465fda35d https://github.com/openSUSE/open-build-service/commit/c782cc47d7b1b5b359bb97... Author: Björn Geuken <bgeuken@suse.de> Date: 2019-05-16 (Thu, 16 May 2019) Changed paths: M src/api/app/models/user.rb Log Message: ----------- Merge pull request #7578 from bgeuken/update_create_home_project Use create! instead of create in Update User#create_home_project Compare: https://github.com/openSUSE/open-build-service/compare/89ab111dbfdb...c782cc...
participants (1)
-
Björn Geuken