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
e78734bd
Commit
e78734bd
authored
Sep 02, 2020
by
Eulyeon Ko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use edge conditions to process supportbot token
parent
88ab8a14
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
app/assets/javascripts/filtered_search/filtered_search_manager.js
...ts/javascripts/filtered_search/filtered_search_manager.js
+1
-4
app/assets/javascripts/filtered_search/issuable_filtered_search_token_keys.js
...ts/filtered_search/issuable_filtered_search_token_keys.js
+5
-0
No files found.
app/assets/javascripts/filtered_search/filtered_search_manager.js
View file @
e78734bd
...
...
@@ -649,10 +649,7 @@ export default class FilteredSearchManager {
hasFilteredSearch
=
true
;
const
canEdit
=
this
.
canEdit
&&
this
.
canEdit
(
key
,
sanitizedValue
);
const
{
uppercaseTokenName
,
capitalizeTokenValue
}
=
match
;
const
isSupportBot
=
keyParam
===
'
author_username
'
&&
value
===
'
support-bot
'
;
const
operator
=
isSupportBot
?
'
=
'
:
FilteredSearchVisualTokens
.
getOperatorToken
(
sanitizedValue
);
const
operator
=
FilteredSearchVisualTokens
.
getOperatorToken
(
sanitizedValue
);
const
sanitizedToken
=
FilteredSearchVisualTokens
.
getValueToken
(
sanitizedValue
);
FilteredSearchVisualTokens
.
addFilterVisualToken
(
key
,
...
...
app/assets/javascripts/filtered_search/issuable_filtered_search_token_keys.js
View file @
e78734bd
...
...
@@ -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
'
,
...
...
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