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
343876bb
Commit
343876bb
authored
Mar 17, 2021
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab master
parents
f58e30c2
350d0874
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
19 additions
and
23 deletions
+19
-23
app/graphql/resolvers/ci/runner_platforms_resolver.rb
app/graphql/resolvers/ci/runner_platforms_resolver.rb
+2
-1
app/graphql/resolvers/ci/runner_setup_resolver.rb
app/graphql/resolvers/ci/runner_setup_resolver.rb
+1
-0
app/graphql/resolvers/concerns/resolves_snippets.rb
app/graphql/resolvers/concerns/resolves_snippets.rb
+1
-1
app/graphql/resolvers/user_starred_projects_resolver.rb
app/graphql/resolvers/user_starred_projects_resolver.rb
+1
-1
app/graphql/types/user_type.rb
app/graphql/types/user_type.rb
+1
-0
app/models/issue.rb
app/models/issue.rb
+2
-2
doc/api/graphql/reference/index.md
doc/api/graphql/reference/index.md
+2
-0
ee/app/models/ee/issue.rb
ee/app/models/ee/issue.rb
+0
-15
ee/spec/models/issue_spec.rb
ee/spec/models/issue_spec.rb
+3
-2
spec/graphql/resolvers/ci/runner_platforms_resolver_spec.rb
spec/graphql/resolvers/ci/runner_platforms_resolver_spec.rb
+1
-1
spec/tooling/danger/project_helper_spec.rb
spec/tooling/danger/project_helper_spec.rb
+3
-0
tooling/danger/project_helper.rb
tooling/danger/project_helper.rb
+2
-0
No files found.
app/graphql/resolvers/ci/runner_platforms_resolver.rb
View file @
343876bb
...
...
@@ -3,7 +3,8 @@
module
Resolvers
module
Ci
class
RunnerPlatformsResolver
<
BaseResolver
type
Types
::
Ci
::
RunnerPlatformType
,
null:
false
type
Types
::
Ci
::
RunnerPlatformType
.
connection_type
,
null:
true
description
'Supported runner platforms.'
def
resolve
(
**
args
)
runner_instructions
.
map
do
|
platform
,
data
|
...
...
app/graphql/resolvers/ci/runner_setup_resolver.rb
View file @
343876bb
...
...
@@ -4,6 +4,7 @@ module Resolvers
module
Ci
class
RunnerSetupResolver
<
BaseResolver
type
Types
::
Ci
::
RunnerSetupType
,
null:
true
description
'Runner setup instructions.'
argument
:platform
,
GraphQL
::
STRING_TYPE
,
required:
true
,
...
...
app/graphql/resolvers/concerns/resolves_snippets.rb
View file @
343876bb
...
...
@@ -4,7 +4,7 @@ module ResolvesSnippets
extend
ActiveSupport
::
Concern
included
do
type
Types
::
SnippetType
.
connection_type
,
null:
fals
e
type
Types
::
SnippetType
.
connection_type
,
null:
tru
e
argument
:ids
,
[
::
Types
::
GlobalIDType
[
::
Snippet
]],
required:
false
,
...
...
app/graphql/resolvers/user_starred_projects_resolver.rb
View file @
343876bb
...
...
@@ -2,7 +2,7 @@
module
Resolvers
class
UserStarredProjectsResolver
<
BaseResolver
type
Types
::
ProjectType
,
null:
true
type
Types
::
ProjectType
.
connection_type
,
null:
true
argument
:search
,
GraphQL
::
STRING_TYPE
,
required:
false
,
...
...
app/graphql/types/user_type.rb
View file @
343876bb
...
...
@@ -3,6 +3,7 @@
module
Types
class
UserType
<
BaseObject
graphql_name
'User'
description
'Representation of a GitLab user.'
authorize
:read_user
...
...
app/models/issue.rb
View file @
343876bb
...
...
@@ -88,7 +88,6 @@ class Issue < ApplicationRecord
test_case:
2
## EE-only
}
alias_attribute
:parent_ids
,
:project_id
alias_method
:issuing_parent
,
:project
alias_attribute
:external_author
,
:service_desk_reply_to
...
...
@@ -191,7 +190,8 @@ class Issue < ApplicationRecord
end
def
self
.
relative_positioning_query_base
(
issue
)
in_projects
(
issue
.
parent_ids
)
projects
=
issue
.
project
.
group
&
.
root_ancestor
&
.
all_projects
||
issue
.
project
in_projects
(
projects
)
end
def
self
.
relative_positioning_parent_column
...
...
doc/api/graphql/reference/index.md
View file @
343876bb
...
...
@@ -6444,6 +6444,8 @@ An edge in a connection.
### `User`
Representation of a GitLab user.
| Field | Type | Description |
| ----- | ---- | ----------- |
|
`assignedMergeRequests`
|
[
`MergeRequestConnection`
](
#mergerequestconnection
)
| Merge Requests assigned to the user. |
...
...
ee/app/models/ee/issue.rb
View file @
343876bb
...
...
@@ -175,21 +175,6 @@ module EE
user
.
can?
(
:admin_issue
,
project
)
&&
user
.
can?
(
:create_epic
,
group
)
end
# Issue position on boards list should be relative to all group projects
def
parent_ids
return
super
unless
has_group_boards?
board_group
.
all_projects
.
select
(
:id
)
end
def
has_group_boards?
board_group
&&
board_group
.
boards
.
any?
end
def
board_group
@group
||=
project
.
group
end
def
promoted?
!!
promoted_to_epic_id
end
...
...
ee/spec/models/issue_spec.rb
View file @
343876bb
...
...
@@ -529,9 +529,10 @@ RSpec.describe Issue do
describe
'relative positioning with group boards'
do
let_it_be
(
:group
)
{
create
(
:group
)
}
let_it_be
(
:subgroup
)
{
create
(
:group
,
parent:
group
)
}
let_it_be
(
:board
)
{
create
(
:board
,
group:
group
)
}
let_it_be
(
:project
)
{
create
(
:project
,
namespace:
group
)
}
let_it_be
(
:project1
)
{
create
(
:project
,
namespace
:
group
)
}
let_it_be
(
:project
)
{
create
(
:project
,
group:
sub
group
)
}
let_it_be
(
:project1
)
{
create
(
:project
,
group
:
group
)
}
let_it_be_with_reload
(
:issue
)
{
create
(
:issue
,
project:
project
)
}
let_it_be_with_reload
(
:issue1
)
{
create
(
:issue
,
project:
project1
,
relative_position:
issue
.
relative_position
+
RelativePositioning
::
IDEAL_DISTANCE
)
}
let
(
:new_issue
)
{
build
(
:issue
,
project:
project1
,
relative_position:
nil
)
}
...
...
spec/graphql/resolvers/ci/runner_platforms_resolver_spec.rb
View file @
343876bb
...
...
@@ -9,7 +9,7 @@ RSpec.describe Resolvers::Ci::RunnerPlatformsResolver do
subject
(
:resolve_subject
)
{
resolve
(
described_class
)
}
it
'returns all possible runner platforms'
do
expect
(
resolve_subject
).
to
include
(
expect
(
resolve_subject
).
to
contain_exactly
(
hash_including
(
name: :linux
),
hash_including
(
name: :osx
),
hash_including
(
name: :windows
),
hash_including
(
name: :docker
),
hash_including
(
name: :kubernetes
)
...
...
spec/tooling/danger/project_helper_spec.rb
View file @
343876bb
...
...
@@ -157,6 +157,9 @@ RSpec.describe Tooling::Danger::ProjectHelper do
'qa/foo'
|
[
:qa
]
'ee/qa/foo'
|
[
:qa
]
'workhorse/main.go'
|
[
:workhorse
]
'workhorse/internal/upload/upload.go'
|
[
:workhorse
]
'changelogs/foo'
|
[
:none
]
'ee/changelogs/foo'
|
[
:none
]
'locale/gitlab.pot'
|
[
:none
]
...
...
tooling/danger/project_helper.rb
View file @
343876bb
...
...
@@ -106,6 +106,8 @@ module Tooling
%r{
\A
(ee/)?qa/}
=>
:qa
,
%r{
\A
workhorse/.*}
=>
:workhorse
,
# Files that don't fit into any category are marked with :none
%r{
\A
(ee/)?changelogs/}
=>
:none
,
%r{
\A
locale/gitlab
\.
pot
\z
}
=>
:none
,
...
...
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