#405: added auto_create_container column to mass_builds

This commit is contained in:
Vokhmin Alexey V 2014-07-01 21:32:44 +04:00
parent ff61a8b82f
commit c579d90937
8 changed files with 16 additions and 3 deletions

View File

@ -19,7 +19,7 @@ class MassBuild < ActiveRecord::Base
attr_accessible :arches, :auto_publish_status, :projects_list, :build_for_platform_id, attr_accessible :arches, :auto_publish_status, :projects_list, :build_for_platform_id,
:extra_repositories, :extra_build_lists, :increase_release_tag, :extra_repositories, :extra_build_lists, :increase_release_tag,
:use_cached_chroot, :use_extra_tests, :description, :extra_mass_builds, :use_cached_chroot, :use_extra_tests, :description, :extra_mass_builds,
:include_testing_subrepository :include_testing_subrepository, :auto_create_container
validates :save_to_platform_id, validates :save_to_platform_id,
:build_for_platform_id, :build_for_platform_id,

View File

@ -189,6 +189,7 @@ class Project < ActiveRecord::Base
bl.project_version = project_version bl.project_version = project_version
bl.user = user bl.user = user
bl.auto_publish_status = mass_build.auto_publish_status bl.auto_publish_status = mass_build.auto_publish_status
bl.auto_create_container = mass_build.auto_create_container
bl.include_repos = include_repos bl.include_repos = include_repos
bl.extra_repositories = mass_build.extra_repositories bl.extra_repositories = mass_build.extra_repositories
bl.extra_build_lists = mass_build.extra_build_lists bl.extra_build_lists = mass_build.extra_build_lists

View File

@ -52,7 +52,7 @@
.both .both
= f.select :auto_publish_status, auto_publish_statuses = f.select :auto_publish_status, auto_publish_statuses
= f.label :auto_publish_status = f.label :auto_publish_status
- %i(increase_release_tag include_testing_subrepository use_cached_chroot use_extra_tests).each do |field| - %i(auto_create_container increase_release_tag include_testing_subrepository use_cached_chroot use_extra_tests).each do |field|
.both .both
= f.check_box field = f.check_box field
= f.label field = f.label field

View File

@ -26,6 +26,10 @@
%td %td
%b= t('activerecord.attributes.mass_build.auto_publish_status') %b= t('activerecord.attributes.mass_build.auto_publish_status')
%td= t("layout.build_lists.auto_publish_status.#{@mass_build.auto_publish_status}") %td= t("layout.build_lists.auto_publish_status.#{@mass_build.auto_publish_status}")
%tr
%td
%b= t('activerecord.attributes.mass_build.auto_create_container')
%td= t("layout.#{@mass_build.auto_create_container?}_")
%tr %tr
%td %td
%b= t('activerecord.attributes.mass_build.increase_release_tag') %b= t('activerecord.attributes.mass_build.increase_release_tag')

View File

@ -32,6 +32,7 @@ en:
arch_names: Architectures arch_names: Architectures
user: User user: User
auto_publish_status: Automated publishing auto_publish_status: Automated publishing
auto_create_container: Create container automatically
increase_release_tag: Increase release tag increase_release_tag: Increase release tag
use_cached_chroot: Use cached chroot use_cached_chroot: Use cached chroot
use_extra_tests: Use extra tests use_extra_tests: Use extra tests

View File

@ -33,6 +33,7 @@ ru:
arch_names: Архитектуры arch_names: Архитектуры
user: Пользователь user: Пользователь
auto_publish_status: Автоматическая публикация auto_publish_status: Автоматическая публикация
auto_create_container: Создать контейнер автоматически
increase_release_tag: Увеличить release тег increase_release_tag: Увеличить release тег
use_cached_chroot: Использовать кэшированный chroot use_cached_chroot: Использовать кэшированный chroot
use_extra_tests: Использовать дополнительные тесты use_extra_tests: Использовать дополнительные тесты

View File

@ -0,0 +1,5 @@
class AddAutoCreateContainerToMassBuilds < ActiveRecord::Migration
def change
add_column :mass_builds, :auto_create_container, :boolean, default: false, null: false
end
end

View File

@ -11,7 +11,7 @@
# #
# It's strongly recommended that you check this file into your version control system. # It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20140630205045) do ActiveRecord::Schema.define(version: 20140701172739) do
# These are extensions that must be enabled in order to support this database # These are extensions that must be enabled in order to support this database
enable_extension "plpgsql" enable_extension "plpgsql"
@ -330,6 +330,7 @@ ActiveRecord::Schema.define(version: 20140630205045) do
t.string "auto_publish_status", default: "none", null: false t.string "auto_publish_status", default: "none", null: false
t.text "extra_mass_builds" t.text "extra_mass_builds"
t.boolean "include_testing_subrepository", default: false, null: false t.boolean "include_testing_subrepository", default: false, null: false
t.boolean "auto_create_container", default: false, null: false
end end
create_table "users", force: true do |t| create_table "users", force: true do |t|