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
e897c593
Commit
e897c593
authored
Sep 02, 2020
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab master
parents
9d5c2099
573bc5f6
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
42 additions
and
4 deletions
+42
-4
.gitlab/ci/rules.gitlab-ci.yml
.gitlab/ci/rules.gitlab-ci.yml
+1
-1
app/assets/javascripts/filtered_search/issuable_filtered_search_token_keys.js
...ts/filtered_search/issuable_filtered_search_token_keys.js
+5
-0
app/services/branches/delete_service.rb
app/services/branches/delete_service.rb
+1
-1
app/views/projects/issues/service_desk.html.haml
app/views/projects/issues/service_desk.html.haml
+1
-1
changelogs/unreleased/217908-handle-git-errors.yml
changelogs/unreleased/217908-handle-git-errors.yml
+5
-0
changelogs/unreleased/235440-search-query-is-added-without-query-parameter-name-in-the-service-.yml
...is-added-without-query-parameter-name-in-the-service-.yml
+5
-0
spec/features/issues/service_desk_spec.rb
spec/features/issues/service_desk_spec.rb
+8
-0
spec/services/branches/delete_service_spec.rb
spec/services/branches/delete_service_spec.rb
+15
-0
spec/support/helpers/stub_object_storage.rb
spec/support/helpers/stub_object_storage.rb
+1
-1
No files found.
.gitlab/ci/rules.gitlab-ci.yml
View file @
e897c593
...
...
@@ -761,7 +761,7 @@
changes
:
*code-qa-patterns
when
:
manual
allow_failure
:
true
-
<<
:
*if-
master-refs
-
<<
:
*if-
dot-com-gitlab-org-schedule
allow_failure
:
true
.review:rules:danger:
...
...
app/assets/javascripts/filtered_search/issuable_filtered_search_token_keys.js
View file @
e897c593
...
...
@@ -85,6 +85,11 @@ export const conditions = flattenDeep(
tokenKey
:
'
assignee
'
,
value
:
__
(
'
Any
'
),
},
{
url
:
'
author_username=support-bot
'
,
tokenKey
:
'
author
'
,
value
:
'
support-bot
'
,
},
{
url
:
'
milestone_title=None
'
,
tokenKey
:
'
milestone
'
,
...
...
app/services/branches/delete_service.rb
View file @
e897c593
...
...
@@ -26,7 +26,7 @@ module Branches
message:
'Failed to remove branch'
,
http_status:
400
)
end
rescue
Gitlab
::
Git
::
PreReceiveError
=>
ex
rescue
Gitlab
::
Git
::
PreReceiveError
,
Gitlab
::
Git
::
CommandError
=>
ex
ServiceResponse
.
error
(
message:
ex
.
message
,
http_status:
400
)
end
...
...
app/views/projects/issues/service_desk.html.haml
View file @
e897c593
...
...
@@ -7,7 +7,7 @@
-
support_bot_attrs
=
{
service_desk_enabled:
@project
.
service_desk_enabled?
,
**
UserSerializer
.
new
.
represent
(
User
.
support_bot
)
}.
to_json
-
data_endpoint
=
"
#{
expose_path
(
api_v4_projects_issues_path
(
id:
@project
.
id
))
}
?author_
id=
#{
User
.
support_bot
.
id
}
"
-
data_endpoint
=
"
#{
expose_path
(
api_v4_projects_issues_path
(
id:
@project
.
id
))
}
?author_
username=
#{
User
.
support_bot
.
username
}
"
%div
{
class:
"js-service-desk-issues service-desk-issues"
,
data:
{
support_bot:
support_bot_attrs
,
service_desk_meta:
service_desk_meta
(
@project
)
}
}
.top-area
...
...
changelogs/unreleased/217908-handle-git-errors.yml
0 → 100644
View file @
e897c593
---
title
:
Fix unfinished merge by Merge Train process
merge_request
:
41106
author
:
type
:
fixed
changelogs/unreleased/235440-search-query-is-added-without-query-parameter-name-in-the-service-.yml
0 → 100644
View file @
e897c593
---
title
:
Fix the filtered search bar to work in the service desk issue list
merge_request
:
40797
author
:
type
:
fixed
spec/features/issues/service_desk_spec.rb
View file @
e897c593
...
...
@@ -109,6 +109,14 @@ RSpec.describe 'Service Desk Issue Tracker', :js do
find
(
'.input-token .filtered-search'
).
native
.
send_key
(
:backspace
)
expect
(
page
).
to
have_selector
(
'.js-visual-token'
,
count:
1
)
end
it
'support bot author token has been properly added'
do
within
(
'.filtered-search-token'
)
do
expect
(
page
).
to
have_selector
(
'.name'
,
count:
1
,
visible:
false
)
expect
(
page
).
to
have_selector
(
'.operator'
,
count:
1
,
visible:
false
)
expect
(
page
).
to
have_selector
(
'.value-container'
,
count:
1
,
visible:
false
)
end
end
end
end
end
...
...
spec/services/branches/delete_service_spec.rb
View file @
e897c593
...
...
@@ -37,6 +37,21 @@ RSpec.describe Branches::DeleteService do
end
it_behaves_like
'a deleted branch'
,
'feature'
context
'when Gitlab::Git::CommandError is raised'
do
before
do
allow
(
repository
).
to
receive
(
:rm_branch
)
do
raise
Gitlab
::
Git
::
CommandError
.
new
(
'Could not update patch'
)
end
end
it
'handles and returns error'
do
result
=
service
.
execute
(
'feature'
)
expect
(
result
.
status
).
to
eq
(
:error
)
expect
(
result
.
message
).
to
eq
(
'Could not update patch'
)
end
end
end
context
'when user does not have access to push to repository'
do
...
...
spec/support/helpers/stub_object_storage.rb
View file @
e897c593
...
...
@@ -21,7 +21,7 @@ module StubObjectStorage
proxy_download:
false
,
background_upload:
false
,
direct_upload:
false
)
)
allow
(
config
).
to
receive
(
:enabled
)
{
enabled
}
allow
(
config
).
to
receive
(
:proxy_download
)
{
proxy_download
}
allow
(
config
).
to
receive
(
:background_upload
)
{
background_upload
}
...
...
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