Commit 05c01c0a authored by Steve Abrams's avatar Steve Abrams

Include file digests in package detail presenter

Include md5, sha1, and sha256 file values in
the package detail view presenter.
parent 9a0212d1
......@@ -42,7 +42,11 @@ module Packages
created_at: package_file.created_at,
download_path: package_file.download_path,
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?
......
......@@ -16,7 +16,10 @@ RSpec.describe ::Packages::Detail::PackagePresenter do
created_at: file.created_at,
download_path: file.download_path,
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
......
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