[obs-commits] [openSUSE/open-build-service] 25abed: [webui] Workaround architecture validation when cr...
Branch: refs/heads/2.7 Home: https://github.com/openSUSE/open-build-service Commit: 25abedb5e0fc4fb9800f6e044327ace799186cee https://github.com/openSUSE/open-build-service/commit/25abedb5e0fc4fb9800f6e... Author: Björn Geuken <bgeuken@suse.de> Date: 2016-04-26 (Tue, 26 Apr 2016) Changed paths: M src/api/app/controllers/webui/download_on_demand_controller.rb Log Message: ----------- [webui] Workaround architecture validation when creating new DoD repositories When creating a new DownloadRepository via the webui we need to ensure that the repository also has the architecture of the new DownloadRepository. Since there is a validation that ensures this, we have to create the RepositoryArchitecture association outside of the transaction and clean up in case of exceptions. Commit: aad8adb18c68b6b5989dfec1cc827d529fee5bb1 https://github.com/openSUSE/open-build-service/commit/aad8adb18c68b6b5989dfe... Author: Björn Geuken <bgeuken@suse.de> Date: 2016-04-26 (Tue, 26 Apr 2016) Changed paths: M src/api/app/assets/javascripts/webui/application/repository_tab.js M src/api/app/views/webui/download_on_demand/_index.html.erb Log Message: ----------- [webui] Prevent screen from gliding up after click on remote js links http://api.jquery.com/event.preventDefault Commit: a101c8eedcfcf9a9f4fd8483359aa0c40912ed34 https://github.com/openSUSE/open-build-service/commit/a101c8eedcfcf9a9f4fd84... Author: Björn Geuken <bgeuken@suse.de> Date: 2016-04-26 (Tue, 26 Apr 2016) Changed paths: M src/api/app/views/layouts/webui/_flash.html.erb M src/api/app/views/layouts/webui/webui.html.erb Log Message: ----------- [webui] Always have a div#flash-messages element in our html This makes it much easier to show error messages of ajax requests in the OBS ui. Commit: f88aa865a1bd9b322a6ab0967b67b00eb3743ce5 https://github.com/openSUSE/open-build-service/commit/f88aa865a1bd9b322a6ab0... Author: Björn Geuken <bgeuken@suse.de> Date: 2016-04-26 (Tue, 26 Apr 2016) Changed paths: A src/api/app/views/webui/project/repositories.haml R src/api/app/views/webui/project/repositories.html.erb Log Message: ----------- [webui] HAMLfy repositories view Commit: 7169b016e90c0d92714b69f9dccf09b100fcd730 https://github.com/openSUSE/open-build-service/commit/7169b016e90c0d92714b69... Author: Björn Geuken <bgeuken@suse.de> Date: 2016-04-26 (Tue, 26 Apr 2016) Changed paths: M src/api/app/assets/javascripts/webui/application/repository_tab.js M src/api/app/controllers/webui/download_on_demand_controller.rb M src/api/app/controllers/webui/project_controller.rb M src/api/app/models/repository.rb M src/api/app/views/webui/download_on_demand/_form.html.erb M src/api/app/views/webui/download_on_demand/_index.html.erb A src/api/app/views/webui/project/_dod_repository_form.haml M src/api/app/views/webui/project/_repository_entry.haml A src/api/app/views/webui/project/create_dod_repository.js.erb M src/api/app/views/webui/project/repositories.haml M src/api/config/routes.rb M src/api/spec/controllers/webui/download_on_demand_controller_spec.rb A src/api/test/fixtures/backend/download_on_demand/project_with_several_dod.xml M src/api/test/functional/webui/download_on_demand_controller_test.rb Log Message: ----------- [webui] Update DoD ui * UI now distinguishes between repositories and DoD repositories. * Architecture associations get created when new download element get's added * DB writes and backend syncs are done via transactions * Disallow removing of the last DownloadRepository of a DoD Repository * Implement adding multiple 'download' elements (= DownloadRepository) to a repository via the webui Commit: 74b8068fff749cae808146d40c393b9fabef38d1 https://github.com/openSUSE/open-build-service/commit/74b8068fff749cae808146... Author: Björn Geuken <bgeuken@suse.de> Date: 2016-04-26 (Tue, 26 Apr 2016) Changed paths: M src/api/app/controllers/webui/download_on_demand_controller.rb M src/api/spec/controllers/webui/download_on_demand_controller_spec.rb M src/api/spec/features/webui/projects_spec.rb M src/api/test/functional/webui/download_on_demand_controller_test.rb Log Message: ----------- [ci] Add rspec tests for DoD ui Commit: b8815618c401e6b4ad0d646f4d437ee0ab3c663f https://github.com/openSUSE/open-build-service/commit/b8815618c401e6b4ad0d64... Author: Björn Geuken <bgeuken@suse.de> Date: 2016-04-26 (Tue, 26 Apr 2016) Changed paths: M src/api/app/controllers/webui/download_on_demand_controller.rb M src/api/spec/controllers/webui/download_on_demand_controller_spec.rb M src/api/spec/factories/download_repository_factory.rb M src/api/spec/factories/repository.rb Log Message: ----------- [webui] Ensure existence of repository architecture when updating new DoD repositories And remove workaround added in 091cfab. Compare: https://github.com/openSUSE/open-build-service/compare/7529eef8407f...b88156...
participants (1)
-
Björn Geuken