Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
0872b854
Commit
0872b854
authored
Apr 07, 2017
by
Kamil Trzcinski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Another round of code review
parent
8d3f7979
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
db/migrate/20170407140450_add_index_to_next_run_at_and_active.rb
...ate/20170407140450_add_index_to_next_run_at_and_active.rb
+8
-2
spec/features/triggers_spec.rb
spec/features/triggers_spec.rb
+2
-2
No files found.
db/migrate/20170407140450_add_index_to_next_run_at_and_active.rb
View file @
0872b854
...
...
@@ -6,7 +6,13 @@ class AddIndexToNextRunAtAndActive < ActiveRecord::Migration
DOWNTIME
=
false
def
change
add_index
:ci_trigger_schedules
,
[
:active
,
:next_run_at
]
disable_ddl_transaction!
def
up
add_concurrent_index
:ci_trigger_schedules
,
[
:active
,
:next_run_at
]
end
def
down
remove_index
:ci_trigger_schedules
,
[
:active
,
:next_run_at
]
end
end
spec/features/triggers_spec.rb
View file @
0872b854
...
...
@@ -106,7 +106,7 @@ feature 'Triggers', feature: true, js: true do
end
end
context
'
en
abling schedule'
do
context
'
dis
abling schedule'
do
before
do
trigger
.
create_trigger_schedule
(
project:
trigger
.
project
,
active:
true
)
...
...
@@ -120,7 +120,7 @@ feature 'Triggers', feature: true, js: true do
visit
edit_namespace_project_trigger_path
(
@project
.
namespace
,
@project
,
trigger
)
checkbox
=
find_field
(
'trigger_trigger_schedule_attributes_active'
)
expect
(
checkbox
).
not_to
be_checked
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment