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
df9dad8d
Commit
df9dad8d
authored
Jan 30, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
59a62b5c
ebb90a09
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
53 additions
and
9 deletions
+53
-9
app/assets/stylesheets/pages/pipelines.scss
app/assets/stylesheets/pages/pipelines.scss
+2
-2
app/models/identity.rb
app/models/identity.rb
+1
-1
changelogs/unreleased/56379-pipeline-stages-job-action-button-icon-is-not-aligned.yml
...pipeline-stages-job-action-button-icon-is-not-aligned.yml
+5
-0
changelogs/unreleased/sh-disable-nil-user-id-identity-validation.yml
...unreleased/sh-disable-nil-user-id-identity-validation.yml
+5
-0
doc/user/project/merge_requests/index.md
doc/user/project/merge_requests/index.md
+6
-6
spec/models/identity_spec.rb
spec/models/identity_spec.rb
+34
-0
No files found.
app/assets/stylesheets/pages/pipelines.scss
View file @
df9dad8d
...
...
@@ -863,7 +863,7 @@ button.mini-pipeline-graph-dropdown-toggle {
height
:
$ci-action-dropdown-svg-size
;
fill
:
$gl-text-color-secondary
;
position
:
relative
;
top
:
0
;
top
:
1px
;
vertical-align
:
initial
;
}
}
...
...
@@ -871,7 +871,7 @@ button.mini-pipeline-graph-dropdown-toggle {
// SVGs in the commit widget and mr widget
a
.ci-action-icon-container.ci-action-icon-wrapper
svg
{
top
:
2
px
;
top
:
4
px
;
}
.scrollable-menu
{
...
...
app/models/identity.rb
View file @
df9dad8d
...
...
@@ -8,7 +8,7 @@ class Identity < ActiveRecord::Base
validates
:provider
,
presence:
true
validates
:extern_uid
,
allow_blank:
true
,
uniqueness:
{
scope:
UniquenessScopes
.
scopes
,
case_sensitive:
false
}
validates
:user
_id
,
uniqueness:
{
scope:
UniquenessScopes
.
scopes
}
validates
:user
,
uniqueness:
{
scope:
UniquenessScopes
.
scopes
}
before_save
:ensure_normalized_extern_uid
,
if: :extern_uid_changed?
after_destroy
:clear_user_synced_attributes
,
if: :user_synced_attributes_metadata_from_provider?
...
...
changelogs/unreleased/56379-pipeline-stages-job-action-button-icon-is-not-aligned.yml
0 → 100644
View file @
df9dad8d
---
title
:
Resolve Pipeline stages job action button icon is not aligned
merge_request
:
24577
author
:
type
:
fixed
changelogs/unreleased/sh-disable-nil-user-id-identity-validation.yml
0 → 100644
View file @
df9dad8d
---
title
:
Fix failed LDAP logins when nil user_id present
merge_request
:
24749
author
:
type
:
fixed
doc/user/project/merge_requests/index.md
View file @
df9dad8d
...
...
@@ -85,10 +85,10 @@ You can [search and filter the results](../../search/index.md#issues-and-merge-r
![
Group Issues list view
](
img/group_merge_requests_list_view.png
)
##
Remov
ing the source branch
##
Delet
ing the source branch
When creating a merge request, select the "
Remov
e source branch when merge
request accepted" option and the source branch will be
remov
ed when the merge
When creating a merge request, select the "
Delet
e source branch when merge
request accepted" option and the source branch will be
delet
ed when the merge
request is merged.
This option is also visible in an existing merge request next to the merge
...
...
@@ -96,10 +96,10 @@ request button and can be selected/deselected before merging. It's only visible
to users with
[
Maintainer permissions
](
../../permissions.md
)
in the source project.
If the user viewing the merge request does not have the correct permissions to
remove the source branch and the source branch is set for removal
, the merge
request widget will show the "
Remov
es source branch" text.
delete the source branch and the source branch is set for deletion
, the merge
request widget will show the "
Delet
es source branch" text.
![
Remov
e source branch status
](
img/remove_source_branch_status.png
)
![
Delet
e source branch status
](
img/remove_source_branch_status.png
)
## Allow collaboration on merge requests across forks
...
...
spec/models/identity_spec.rb
View file @
df9dad8d
...
...
@@ -10,6 +10,40 @@ describe Identity do
it
{
is_expected
.
to
respond_to
(
:extern_uid
)
}
end
describe
'validations'
do
set
(
:user
)
{
create
(
:user
)
}
context
'with existing user and provider'
do
before
do
create
(
:identity
,
provider:
'ldapmain'
,
user_id:
user
.
id
)
end
it
'returns false for a duplicate entry'
do
identity
=
user
.
identities
.
build
(
provider:
'ldapmain'
,
user_id:
user
.
id
)
expect
(
identity
.
validate
).
to
be_falsey
end
it
'returns true when a different provider is used'
do
identity
=
user
.
identities
.
build
(
provider:
'gitlab'
,
user_id:
user
.
id
)
expect
(
identity
.
validate
).
to
be_truthy
end
end
context
'with newly-created user'
do
before
do
create
(
:identity
,
provider:
'ldapmain'
,
user_id:
nil
)
end
it
'successfully validates even with a nil user_id'
do
identity
=
user
.
identities
.
build
(
provider:
'ldapmain'
)
expect
(
identity
.
validate
).
to
be_truthy
end
end
end
describe
'#is_ldap?'
do
let
(
:ldap_identity
)
{
create
(
:identity
,
provider:
'ldapmain'
)
}
let
(
:other_identity
)
{
create
(
:identity
,
provider:
'twitter'
)
}
...
...
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