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
63696b30
Commit
63696b30
authored
Jul 19, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
31db4bf5
75e60e42
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
47 additions
and
4 deletions
+47
-4
app/assets/javascripts/reports/components/report_item.vue
app/assets/javascripts/reports/components/report_item.vue
+1
-1
app/assets/javascripts/reports/components/summary_row.vue
app/assets/javascripts/reports/components/summary_row.vue
+1
-3
changelogs/unreleased/fix-alignment-on-security-reports.yml
changelogs/unreleased/fix-alignment-on-security-reports.yml
+5
-0
changelogs/unreleased/fj-avoid-incresaing-usage-ping-when-not-enabled.yml
...eased/fj-avoid-incresaing-usage-ping-when-not-enabled.yml
+5
-0
lib/gitlab/usage_data_counters/redis_counter.rb
lib/gitlab/usage_data_counters/redis_counter.rb
+2
-0
spec/lib/gitlab/usage_data_counters/redis_counter_spec.rb
spec/lib/gitlab/usage_data_counters/redis_counter_spec.rb
+33
-0
No files found.
app/assets/javascripts/reports/components/report_item.vue
View file @
63696b30
...
...
@@ -45,7 +45,7 @@ export default {
<
template
>
<li
:class=
"
{ 'is-dismissed': issue.isDismissed }"
class="report-block-list-issue
justify-content-center
align-items-center"
class="report-block-list-issue align-items-center"
>
<issue-status-icon
v-if=
"showReportSectionStatusIcon"
...
...
app/assets/javascripts/reports/components/summary_row.vue
View file @
63696b30
...
...
@@ -44,9 +44,7 @@ export default {
};
</
script
>
<
template
>
<div
class=
"report-block-list-issue report-block-list-issue-parent justify-content-center align-items-center"
>
<div
class=
"report-block-list-issue report-block-list-issue-parent align-items-center"
>
<div
class=
"report-block-list-icon append-right-default"
>
<gl-loading-icon
v-if=
"statusIcon === 'loading'"
...
...
changelogs/unreleased/fix-alignment-on-security-reports.yml
0 → 100644
View file @
63696b30
---
title
:
Fixes alignment issues with reports
merge_request
:
30839
author
:
type
:
fixed
changelogs/unreleased/fj-avoid-incresaing-usage-ping-when-not-enabled.yml
0 → 100644
View file @
63696b30
---
title
:
Avoid increasing redis counters when usage_ping is disabled
merge_request
:
30949
author
:
type
:
changed
lib/gitlab/usage_data_counters/redis_counter.rb
View file @
63696b30
...
...
@@ -4,6 +4,8 @@ module Gitlab
module
UsageDataCounters
module
RedisCounter
def
increment
(
redis_counter_key
)
return
unless
Gitlab
::
CurrentSettings
.
usage_ping_enabled
Gitlab
::
Redis
::
SharedState
.
with
{
|
redis
|
redis
.
incr
(
redis_counter_key
)
}
end
...
...
spec/lib/gitlab/usage_data_counters/redis_counter_spec.rb
0 → 100644
View file @
63696b30
# frozen_string_literal: true
require
'spec_helper'
describe
Gitlab
::
UsageDataCounters
::
RedisCounter
,
:clean_gitlab_redis_shared_state
do
let
(
:redis_key
)
{
'foobar'
}
subject
{
Class
.
new
.
extend
(
described_class
)
}
before
do
stub_application_setting
(
usage_ping_enabled:
setting_value
)
end
context
'when usage_ping is disabled'
do
let
(
:setting_value
)
{
false
}
it
'counter is not increased'
do
expect
do
subject
.
increment
(
redis_key
)
end
.
not_to
change
{
subject
.
total_count
(
redis_key
)
}
end
end
context
'when usage_ping is enabled'
do
let
(
:setting_value
)
{
true
}
it
'counter is increased'
do
expect
do
subject
.
increment
(
redis_key
)
end
.
to
change
{
subject
.
total_count
(
redis_key
)
}.
by
(
1
)
end
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