Commit e5e6b0d2 authored by Etienne Baqué's avatar Etienne Baqué

Merge branch '323709-add-file-hash-to-presenter' into 'master'

Include file digests in package detail presenter

See merge request gitlab-org/gitlab!56284
parents e035e2bd 05c01c0a
...@@ -42,7 +42,11 @@ module Packages ...@@ -42,7 +42,11 @@ module Packages
created_at: package_file.created_at, created_at: package_file.created_at,
download_path: package_file.download_path, download_path: package_file.download_path,
file_name: package_file.file_name, file_name: package_file.file_name,
size: package_file.size size: package_file.size,
file_md5: package_file.file_md5,
file_sha1: package_file.file_sha1,
file_sha256: package_file.file_sha256
} }
file_view[:pipelines] = build_pipeline_infos(package_file.pipelines) if package_file.pipelines.present? file_view[:pipelines] = build_pipeline_infos(package_file.pipelines) if package_file.pipelines.present?
......
...@@ -16,7 +16,10 @@ RSpec.describe ::Packages::Detail::PackagePresenter do ...@@ -16,7 +16,10 @@ RSpec.describe ::Packages::Detail::PackagePresenter do
created_at: file.created_at, created_at: file.created_at,
download_path: file.download_path, download_path: file.download_path,
file_name: file.file_name, file_name: file.file_name,
size: file.size size: file.size,
file_md5: file.file_md5,
file_sha1: file.file_sha1,
file_sha256: file.file_sha256
} }
end end
end end
......
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