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
05cb97ec
Commit
05cb97ec
authored
Mar 21, 2017
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix js lint and rubocop violations
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
f85f4c60
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
app/models/concerns/elastic/projects_search.rb
app/models/concerns/elastic/projects_search.rb
+1
-1
app/models/concerns/elastic/snippets_search.rb
app/models/concerns/elastic/snippets_search.rb
+2
-1
spec/javascripts/test_bundle.js
spec/javascripts/test_bundle.js
+1
-1
No files found.
app/models/concerns/elastic/projects_search.rb
View file @
05cb97ec
...
@@ -8,7 +8,7 @@ module Elastic
...
@@ -8,7 +8,7 @@ module Elastic
snippets_access_level
snippets_access_level
wiki_access_level
wiki_access_level
repository_access_level
repository_access_level
)
)
.
freeze
included
do
included
do
include
ApplicationSearch
include
ApplicationSearch
...
...
app/models/concerns/elastic/snippets_search.rb
View file @
05cb97ec
...
@@ -81,7 +81,8 @@ module Elastic
...
@@ -81,7 +81,8 @@ module Elastic
should:
[
should:
[
{
term:
{
author_id:
user
.
id
}
},
{
term:
{
author_id:
user
.
id
}
},
{
terms:
{
project_id:
user
.
authorized_projects
.
pluck
(
:id
)
}
},
{
terms:
{
project_id:
user
.
authorized_projects
.
pluck
(
:id
)
}
},
{
bool:
{
{
bool:
{
filter:
{
terms:
{
visibility_level:
[
Snippet
::
PUBLIC
,
Snippet
::
INTERNAL
]
}
},
filter:
{
terms:
{
visibility_level:
[
Snippet
::
PUBLIC
,
Snippet
::
INTERNAL
]
}
},
must_not:
{
exists:
{
field:
'project_id'
}
}
must_not:
{
exists:
{
field:
'project_id'
}
}
}
}
...
...
spec/javascripts/test_bundle.js
View file @
05cb97ec
...
@@ -68,4 +68,4 @@ if (process.env.BABEL_ENV === 'coverage') {
...
@@ -68,4 +68,4 @@ if (process.env.BABEL_ENV === 'coverage') {
});
});
});
});
});
});
}
}
\ No newline at end of file
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