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
04977296
Commit
04977296
authored
Aug 04, 2020
by
Heinrich Lee Yu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Sort project select dropdown by similarity
This falls back to ID sorting when the feature flag is disabled
parent
ad01acf3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
4 deletions
+2
-4
app/assets/javascripts/boards/components/project_select.vue
app/assets/javascripts/boards/components/project_select.vue
+1
-1
app/assets/javascripts/project_select.js
app/assets/javascripts/project_select.js
+1
-1
spec/features/groups/issues_spec.rb
spec/features/groups/issues_spec.rb
+0
-2
No files found.
app/assets/javascripts/boards/components/project_select.vue
View file @
04977296
...
@@ -64,10 +64,10 @@ export default {
...
@@ -64,10 +64,10 @@ export default {
this
.
groupId
,
this
.
groupId
,
term
,
term
,
{
{
search_namespaces
:
true
,
with_issues_enabled
:
true
,
with_issues_enabled
:
true
,
with_shared
:
false
,
with_shared
:
false
,
include_subgroups
:
true
,
include_subgroups
:
true
,
order_by
:
'
similarity
'
,
...
additionalAttrs
,
...
additionalAttrs
,
},
},
projects
=>
{
projects
=>
{
...
...
app/assets/javascripts/project_select.js
View file @
04977296
...
@@ -54,11 +54,11 @@ const projectSelect = () => {
...
@@ -54,11 +54,11 @@ const projectSelect = () => {
this
.
groupId
,
this
.
groupId
,
query
.
term
,
query
.
term
,
{
{
search_namespaces
:
true
,
with_issues_enabled
:
this
.
withIssuesEnabled
,
with_issues_enabled
:
this
.
withIssuesEnabled
,
with_merge_requests_enabled
:
this
.
withMergeRequestsEnabled
,
with_merge_requests_enabled
:
this
.
withMergeRequestsEnabled
,
with_shared
:
this
.
withShared
,
with_shared
:
this
.
withShared
,
include_subgroups
:
this
.
includeProjectsInSubgroups
,
include_subgroups
:
this
.
includeProjectsInSubgroups
,
order_by
:
'
similarity
'
,
},
},
projectsCallback
,
projectsCallback
,
);
);
...
...
spec/features/groups/issues_spec.rb
View file @
04977296
...
@@ -110,8 +110,6 @@ RSpec.describe 'Group issues page' do
...
@@ -110,8 +110,6 @@ RSpec.describe 'Group issues page' do
find
(
'.empty-state .js-lazy-loaded'
)
find
(
'.empty-state .js-lazy-loaded'
)
find
(
'.new-project-item-link'
).
click
find
(
'.new-project-item-link'
).
click
find
(
'.select2-input'
).
set
(
group
.
name
)
page
.
within
(
'.select2-results'
)
do
page
.
within
(
'.select2-results'
)
do
expect
(
page
).
to
have_content
(
project
.
full_name
)
expect
(
page
).
to
have_content
(
project
.
full_name
)
expect
(
page
).
not_to
have_content
(
project_with_issues_disabled
.
full_name
)
expect
(
page
).
not_to
have_content
(
project_with_issues_disabled
.
full_name
)
...
...
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