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
23687bfe
Commit
23687bfe
authored
Feb 24, 2022
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab master
parents
7bc6b3ba
393892ec
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
45 additions
and
4 deletions
+45
-4
Dangerfile
Dangerfile
+1
-1
app/helpers/todos_helper.rb
app/helpers/todos_helper.rb
+1
-1
db/post_migrate/20220224000000_async_build_trace_expire_at_index.rb
...grate/20220224000000_async_build_trace_expire_at_index.rb
+14
-0
db/schema_migrations/20220224000000
db/schema_migrations/20220224000000
+1
-0
ee/spec/migrations/async_build_trace_expire_at_index_spec.rb
ee/spec/migrations/async_build_trace_expire_at_index_spec.rb
+26
-0
spec/features/dashboard/todos/todos_filtering_spec.rb
spec/features/dashboard/todos/todos_filtering_spec.rb
+1
-1
spec/features/dashboard/todos/todos_spec.rb
spec/features/dashboard/todos/todos_spec.rb
+1
-1
No files found.
Dangerfile
View file @
23687bfe
...
...
@@ -43,5 +43,5 @@ if project_helper.labels_to_add.any?
end
if
anything_to_post
markdown
(
"**If needed, you can retry the [`danger-review` job](
#{
ENV
[
'CI_JOB_URL'
]
}
) that generated this comment.**"
)
markdown
(
"**If needed, you can retry the [
🔁
`danger-review` job](
#{
ENV
[
'CI_JOB_URL'
]
}
) that generated this comment.**"
)
end
app/helpers/todos_helper.rb
View file @
23687bfe
...
...
@@ -18,7 +18,7 @@ module TodosHelper
when
Todo
::
ASSIGNED
then
todo
.
self_added?
?
'assigned'
:
'assigned you'
when
Todo
::
REVIEW_REQUESTED
then
'requested a review of'
when
Todo
::
MENTIONED
then
"mentioned
#{
todo_action_subject
(
todo
)
}
on"
when
Todo
::
BUILD_FAILED
then
'The
build failed for
'
when
Todo
::
BUILD_FAILED
then
'The
pipeline failed in
'
when
Todo
::
MARKED
then
'added a todo for'
when
Todo
::
APPROVAL_REQUIRED
then
"set
#{
todo_action_subject
(
todo
)
}
as an approver for"
when
Todo
::
UNMERGEABLE
then
'Could not merge'
...
...
db/post_migrate/20220224000000_async_build_trace_expire_at_index.rb
0 → 100644
View file @
23687bfe
# frozen_string_literal: true
class
AsyncBuildTraceExpireAtIndex
<
Gitlab
::
Database
::
Migration
[
1.0
]
INDEX_NAME
=
'tmp_index_ci_job_artifacts_on_id_where_trace_and_expire_at'
TIMESTAMPS
=
"'2021-04-22 00:00:00', '2021-05-22 00:00:00', '2021-06-22 00:00:00', '2022-01-22 00:00:00', '2022-02-22 00:00:00', '2022-03-22 00:00:00', '2022-04-22 00:00:00'"
def
up
prepare_async_index
:ci_job_artifacts
,
:id
,
where:
"file_type = 3 AND expire_at IN (
#{
TIMESTAMPS
}
)"
,
name:
INDEX_NAME
end
def
down
unprepare_async_index
:ci_builds
,
:id
,
name:
INDEX_NAME
end
end
db/schema_migrations/20220224000000
0 → 100644
View file @
23687bfe
74b4d572118b7f5da0a80722601a4757ce47ccbdae1af1e84b2304343477d634
\ No newline at end of file
ee/spec/migrations/async_build_trace_expire_at_index_spec.rb
0 → 100644
View file @
23687bfe
# frozen_string_literal: true
require
'spec_helper'
require
Rails
.
root
.
join
(
'db'
,
'post_migrate'
,
'20220224000000_async_build_trace_expire_at_index.rb'
)
RSpec
.
describe
AsyncBuildTraceExpireAtIndex
do
describe
'#up'
do
it
'sets up a delayed concurrent index creation'
do
expect_next_instance_of
(
described_class
)
do
|
instance
|
expect
(
instance
).
to
receive
(
:prepare_async_index
)
end
migrate!
end
end
describe
'#down'
do
it
'removes an index'
do
expect_any_instance_of
(
described_class
)
do
|
instance
|
expect
(
instance
).
to
receive
(
:unprepare_async_index
)
end
schema_migrate_down!
end
end
end
spec/features/dashboard/todos/todos_filtering_spec.rb
View file @
23687bfe
...
...
@@ -178,7 +178,7 @@ RSpec.describe 'Dashboard > User filters todos', :js do
review_requested:
' requested a review of '
,
mentioned:
' mentioned '
,
marked:
' added a todo for '
,
build_failed:
'
build failed for
'
build_failed:
'
pipeline failed in
'
}
action_name_text
=
action_names
.
delete
(
action_name
)
...
...
spec/features/dashboard/todos/todos_spec.rb
View file @
23687bfe
...
...
@@ -400,7 +400,7 @@ RSpec.describe 'Dashboard Todos' do
end
it
'shows the todo'
do
expect
(
page
).
to
have_content
'The
build failed for
merge request'
expect
(
page
).
to
have_content
'The
pipeline failed in
merge request'
end
it
'links to the pipelines for the merge request'
do
...
...
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