Commit ba35b257 authored by Dmitry Gruzd's avatar Dmitry Gruzd

Merge branch '344827-enable-by-default' into 'master'

Release the NPM metadata abbreviated support

See merge request gitlab-org/gitlab!74409
parents 85b7c4ac b6e2d146
...@@ -21,7 +21,7 @@ module Packages ...@@ -21,7 +21,7 @@ module Packages
::Packages::CreateDependencyService.new(package, package_dependencies).execute ::Packages::CreateDependencyService.new(package, package_dependencies).execute
::Packages::Npm::CreateTagService.new(package, dist_tag).execute ::Packages::Npm::CreateTagService.new(package, dist_tag).execute
if Feature.enabled?(:packages_npm_abbreviated_metadata, project) if Feature.enabled?(:packages_npm_abbreviated_metadata, project, default_enabled: :yaml)
package.create_npm_metadatum!(package_json: version_data) package.create_npm_metadatum!(package_json: version_data)
end end
......
...@@ -5,4 +5,4 @@ rollout_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/344827 ...@@ -5,4 +5,4 @@ rollout_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/344827
milestone: '14.5' milestone: '14.5'
type: development type: development
group: group::package group: group::package
default_enabled: false default_enabled: true
...@@ -121,7 +121,7 @@ module API ...@@ -121,7 +121,7 @@ module API
not_found!('Packages') if packages.empty? not_found!('Packages') if packages.empty?
include_metadata = Feature.enabled?(:packages_npm_abbreviated_metadata, project) include_metadata = Feature.enabled?(:packages_npm_abbreviated_metadata, project, default_enabled: :yaml)
present ::Packages::Npm::PackagePresenter.new(package_name, packages, include_metadata: include_metadata), present ::Packages::Npm::PackagePresenter.new(package_name, packages, include_metadata: include_metadata),
with: ::API::Entities::NpmPackage with: ::API::Entities::NpmPackage
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment