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
f3cfb8a0
Commit
f3cfb8a0
authored
Mar 10, 2020
by
David Fernandez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set feature flag enabled by default
For the `forward_npm_package_registry_requests` feature flag
parent
00d4d5be
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
+7
-2
ee/app/views/admin/application_settings/_package_registry.haml
...p/views/admin/application_settings/_package_registry.haml
+1
-1
ee/changelogs/unreleased/55344-forward-npm-requests-enabled-by-default.yml
...eleased/55344-forward-npm-requests-enabled-by-default.yml
+5
-0
ee/lib/api/helpers/packages/dependency_proxy_helpers.rb
ee/lib/api/helpers/packages/dependency_proxy_helpers.rb
+1
-1
No files found.
ee/app/views/admin/application_settings/_package_registry.haml
View file @
f3cfb8a0
-
if
Feature
.
enabled?
(
:forward_npm_package_registry_requests
)
&&
Gitlab
.
config
.
packages
.
enabled
-
if
Feature
.
enabled?
(
:forward_npm_package_registry_requests
,
default_enabled:
true
)
&&
Gitlab
.
config
.
packages
.
enabled
%section
.settings.as-package.no-animate
#js-package-settings
{
class:
(
'expanded'
if
expanded_by_default?
)
}
.settings-header
%h4
...
...
ee/changelogs/unreleased/55344-forward-npm-requests-enabled-by-default.yml
0 → 100644
View file @
f3cfb8a0
---
title
:
Add NPM package requests forwarding to npmjs.org
merge_request
:
26932
author
:
type
:
added
ee/lib/api/helpers/packages/dependency_proxy_helpers.rb
View file @
f3cfb8a0
...
...
@@ -28,7 +28,7 @@ module API
end
def
redirect_registry_request_available?
Feature
.
enabled?
(
:forward_npm_package_registry_requests
)
&&
Feature
.
enabled?
(
:forward_npm_package_registry_requests
,
default_enabled:
true
)
&&
::
Gitlab
::
CurrentSettings
.
current_application_settings
.
npm_package_requests_forwarding
end
end
...
...
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