Branch: refs/heads/master Home: https://github.com/openSUSE/open-build-service Commit: f8450e41cdc18e7b4667de2f2822b2e7ac702880 https://github.com/openSUSE/open-build-service/commit/f8450e41cdc18e7b4667de... Author: Christian Bruckmayer <cbruckmayer@suse.com> Date: 2016-09-12 (Mon, 12 Sep 2016) Changed paths: A src/api/app/models/bs_request_counter.rb Log Message: ----------- [api][webui] Introduce BsRequestCounter model Commit: 10d844af746a9f7032a201391023d421d142f51c https://github.com/openSUSE/open-build-service/commit/10d844af746a9f7032a201... Author: Christian Bruckmayer <cbruckmayer@suse.com> Date: 2016-09-13 (Tue, 13 Sep 2016) Changed paths: M src/api/app/models/bs_request.rb A src/api/db/migrate/20160824132643_fix_bs_request_counter.rb M src/api/db/structure.sql Log Message: ----------- [api][webui] Set BsRequestCounter correctly currently it is the number of the last BsRequest. However, it should be the next available number. This causes ActiveRecord::RecordNotUnique when creating a new BsRequest. - Wrap database actions into transaction - Remove redundant initialisation code - this is done now in 20160824132643_fix_bs_request_counter.rb - Introduce BsRequestCounter model to use ActiveRecord methods - Remove redundant before_create call, assign number will return in the second call immediately As assign_number is called in a before_save filter so it is still possible that save fails and the BsRequestCounter is already increased. Fixes #2068. Commit: 438cd3c82e041592f85f8e505d9ba6063948f7a6 https://github.com/openSUSE/open-build-service/commit/438cd3c82e041592f85f8e... Author: Björn Geuken <bgeuken@suse.de> Date: 2016-09-16 (Fri, 16 Sep 2016) Changed paths: M src/api/app/models/bs_request.rb A src/api/app/models/bs_request_counter.rb A src/api/db/migrate/20160824132643_fix_bs_request_counter.rb M src/api/db/structure.sql Log Message: ----------- Merge pull request #2074 from ChrisBr/fix_bs_request_counter Fix bs request counter Compare: https://github.com/openSUSE/open-build-service/compare/8d880276c9cd...438cd3...