Merge pull request #2321 from urbanrotnik/ur-sci-4257

Remove Checklist item min length validation and modal fixes [SCI-4257]
This commit is contained in:
Urban Rotnik 2020-01-16 16:02:30 +01:00 committed by GitHub
commit 7655dd0bea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 5 deletions

View file

@ -7,7 +7,7 @@
#manage-repository-column { #manage-repository-column {
.modal-content { .modal-content {
font-size: 14px; font-size: 14px;
height: 500px; min-height: 500px;
width: 540px; width: 540px;
} }
@ -32,10 +32,9 @@
} }
.modal-body { .modal-body {
padding: 0 15px; padding: 0 15px 61px;
.form-horizontal { .form-horizontal {
height: 390px;
padding: 15px 0; padding: 15px 0;
} }
@ -54,8 +53,11 @@
} }
.modal-footer { .modal-footer {
bottom: 0;
padding: 12px 15px; padding: 12px 15px;
position: absolute;
text-align: center; text-align: center;
width: 100%;
} }
.range-label { .range-label {

View file

@ -3,8 +3,7 @@
class RepositoryChecklistItem < ApplicationRecord class RepositoryChecklistItem < ApplicationRecord
validates :data, presence: true, validates :data, presence: true,
uniqueness: { scope: :repository_column_id, case_sensitive: false }, uniqueness: { scope: :repository_column_id, case_sensitive: false },
length: { minimum: Constants::NAME_MIN_LENGTH, length: { maximum: Constants::NAME_MAX_LENGTH }
maximum: Constants::NAME_MAX_LENGTH }
belongs_to :repository, inverse_of: :repository_checklist_items belongs_to :repository, inverse_of: :repository_checklist_items
belongs_to :repository_column belongs_to :repository_column
belongs_to :created_by, foreign_key: 'created_by_id', class_name: 'User', belongs_to :created_by, foreign_key: 'created_by_id', class_name: 'User',