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
922e0d8b
Commit
922e0d8b
authored
Jul 01, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
90114f0b
a6701647
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
11 deletions
+12
-11
app/assets/javascripts/pipelines/components/header_component.vue
...ets/javascripts/pipelines/components/header_component.vue
+3
-2
app/assets/javascripts/pipelines/components/pipeline_url.vue
app/assets/javascripts/pipelines/components/pipeline_url.vue
+1
-2
locale/gitlab.pot
locale/gitlab.pot
+3
-0
spec/tasks/migrate/schema_check_rake_spec.rb
spec/tasks/migrate/schema_check_rake_spec.rb
+5
-7
No files found.
app/assets/javascripts/pipelines/components/header_component.vue
View file @
922e0d8b
...
...
@@ -2,6 +2,7 @@
import
{
GlLoadingIcon
}
from
'
@gitlab/ui
'
;
import
ciHeader
from
'
../../vue_shared/components/header_ci_component.vue
'
;
import
eventHub
from
'
../event_hub
'
;
import
{
__
}
from
'
~/locale
'
;
export
default
{
name
:
'
PipelineHeaderSection
'
,
...
...
@@ -54,7 +55,7 @@ export default {
if
(
this
.
pipeline
.
retry_path
)
{
actions
.
push
({
label
:
'
Retry
'
,
label
:
__
(
'
Retry
'
)
,
path
:
this
.
pipeline
.
retry_path
,
cssClass
:
'
js-retry-button btn btn-inverted-secondary
'
,
type
:
'
button
'
,
...
...
@@ -64,7 +65,7 @@ export default {
if
(
this
.
pipeline
.
cancel_path
)
{
actions
.
push
({
label
:
'
Cancel running
'
,
label
:
__
(
'
Cancel running
'
)
,
path
:
this
.
pipeline
.
cancel_path
,
cssClass
:
'
js-btn-cancel-pipeline btn btn-danger
'
,
type
:
'
button
'
,
...
...
app/assets/javascripts/pipelines/components/pipeline_url.vue
View file @
922e0d8b
...
...
@@ -94,9 +94,8 @@ export default {
tabindex=
"0"
class=
"js-pipeline-url-autodevops badge badge-info autodevops-badge"
role=
"button"
>
{{
__
(
'
Auto DevOps
'
)
}}
</gl-link
>
Auto DevOps
</gl-link>
<span
v-if=
"pipeline.flags.stuck"
class=
"js-pipeline-url-stuck badge badge-warning"
>
{{
__
(
'
stuck
'
)
}}
</span>
...
...
locale/gitlab.pot
View file @
922e0d8b
...
...
@@ -2424,6 +2424,9 @@ msgstr ""
msgid "Cancel"
msgstr ""
msgid "Cancel running"
msgstr ""
msgid "Cancel this job"
msgstr ""
...
...
spec/tasks/migrate/schema_check_rake_spec.rb
View file @
922e0d8b
...
...
@@ -3,7 +3,7 @@
require
'spec_helper'
require
'rake'
describe
'schema_version_check rake task'
,
:quarantine
do
describe
'schema_version_check rake task'
do
include
StubENV
before
:all
do
...
...
@@ -15,8 +15,6 @@ describe 'schema_version_check rake task', :quarantine do
end
before
do
# Stub out db tasks
allow
(
ActiveRecord
::
Tasks
::
DatabaseTasks
).
to
receive
(
:migrate
).
and_return
(
true
)
allow
(
ActiveRecord
::
Migrator
).
to
receive
(
:current_version
).
and_return
(
Gitlab
::
Database
::
MIN_SCHEMA_VERSION
)
# Ensure our check can re-run each time
...
...
@@ -24,23 +22,23 @@ describe 'schema_version_check rake task', :quarantine do
end
it
'allows migrations on databases meeting the min schema version requirement'
do
expect
{
run_rake_task
(
'
db:migrate
'
)
}.
not_to
raise_error
expect
{
run_rake_task
(
'
schema_version_check
'
)
}.
not_to
raise_error
end
it
'raises an error when schema version is too old to migrate'
do
allow
(
ActiveRecord
::
Migrator
).
to
receive
(
:current_version
).
and_return
(
25
)
expect
{
run_rake_task
(
'
db:migrate
'
)
}.
to
raise_error
(
RuntimeError
,
/current database version is too old to be migrated/
)
expect
{
run_rake_task
(
'
schema_version_check
'
)
}.
to
raise_error
(
RuntimeError
,
/current database version is too old to be migrated/
)
end
it
'skips running validation when passed the skip env variable'
do
stub_env
(
'SKIP_SCHEMA_VERSION_CHECK'
,
'true'
)
allow
(
ActiveRecord
::
Migrator
).
to
receive
(
:current_version
).
and_return
(
25
)
expect
{
run_rake_task
(
'
db:migrate
'
)
}.
not_to
raise_error
expect
{
run_rake_task
(
'
schema_version_check
'
)
}.
not_to
raise_error
end
it
'allows migrations on fresh databases'
do
allow
(
ActiveRecord
::
Migrator
).
to
receive
(
:current_version
).
and_return
(
0
)
expect
{
run_rake_task
(
'
db:migrate
'
)
}.
not_to
raise_error
expect
{
run_rake_task
(
'
schema_version_check
'
)
}.
not_to
raise_error
end
def
run_rake_task
(
task_name
)
...
...
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