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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
434a9955
Commit
434a9955
authored
Sep 20, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add latest changes from gitlab-org/gitlab@master
parent
d46287cc
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
26 additions
and
0 deletions
+26
-0
app/assets/stylesheets/framework.scss
app/assets/stylesheets/framework.scss
+1
-0
app/assets/stylesheets/framework/card.scss
app/assets/stylesheets/framework/card.scss
+9
-0
app/models/internal_id.rb
app/models/internal_id.rb
+10
-0
changelogs/unreleased/winh-related-issues-border.yml
changelogs/unreleased/winh-related-issues-border.yml
+5
-0
spec/services/ci/create_pipeline_service_spec.rb
spec/services/ci/create_pipeline_service_spec.rb
+1
-0
No files found.
app/assets/stylesheets/framework.scss
View file @
434a9955
...
...
@@ -68,3 +68,4 @@
@import
'framework/flex_grid'
;
@import
'framework/system_messages'
;
@import
"framework/spinner"
;
@import
'framework/card'
;
app/assets/stylesheets/framework/card.scss
0 → 100644
View file @
434a9955
.card-header
{
&
:first-child
{
// intended use case: card with only a header (for example empty related issues)
&
.border-0
,
&
.border-bottom-0
{
@include
border-radius
(
$card-inner-border-radius
);
}
}
}
app/models/internal_id.rb
View file @
434a9955
...
...
@@ -16,6 +16,8 @@
# * Add `usage` value to enum
# * (Optionally) add columns to `internal_ids` if needed for scope.
class
InternalId
<
ApplicationRecord
include
Gitlab
::
Utils
::
StrongMemoize
belongs_to
:project
belongs_to
:namespace
...
...
@@ -47,10 +49,18 @@ class InternalId < ApplicationRecord
def
update_and_save
(
&
block
)
lock!
yield
update_and_save_counter
.
increment
(
usage:
usage
,
changed:
last_value_changed?
)
save!
last_value
end
# Temporary instrumentation to track for-update locks
def
update_and_save_counter
strong_memoize
(
:update_and_save_counter
)
do
Gitlab
::
Metrics
.
counter
(
:gitlab_internal_id_for_update_lock
,
'Number of ROW SHARE (FOR UPDATE) locks on individual records from internal_ids'
)
end
end
class
<<
self
def
track_greatest
(
subject
,
scope
,
usage
,
new_value
,
init
)
return
new_value
unless
available?
...
...
changelogs/unreleased/winh-related-issues-border.yml
0 → 100644
View file @
434a9955
---
title
:
Redo fix for related issues border radius
merge_request
:
17172
author
:
type
:
fixed
spec/services/ci/create_pipeline_service_spec.rb
View file @
434a9955
...
...
@@ -71,6 +71,7 @@ describe Ci::CreatePipelineService do
expect
(
Gitlab
::
Metrics
).
to
receive
(
:counter
)
.
with
(
:pipelines_created_total
,
"Counter of pipelines created"
)
.
and_call_original
allow
(
Gitlab
::
Metrics
).
to
receive
(
:counter
).
and_call_original
# allow other counters
pipeline
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