added dependent_projects into API
This commit is contained in:
parent
e2164e29d0
commit
df0de4d0ec
|
@ -1,7 +1,6 @@
|
||||||
json.build_list do
|
json.build_list do
|
||||||
json.(@build_list, :id, :container_status, :status, :duration)
|
json.(@build_list, :id, :container_status, :status, :duration)
|
||||||
json.(@build_list, :update_type, :priority, :new_core)
|
json.(@build_list, :update_type, :priority, :new_core)
|
||||||
json.(@build_list, :advisory, :mass_build)
|
|
||||||
json.(@build_list, :auto_publish_status, :package_version, :commit_hash, :last_published_commit_hash, :auto_create_container, :use_cached_chroot, :use_extra_tests)
|
json.(@build_list, :auto_publish_status, :package_version, :commit_hash, :last_published_commit_hash, :auto_create_container, :use_cached_chroot, :use_extra_tests)
|
||||||
json.build_log_url log_build_list_path(@build_list)
|
json.build_log_url log_build_list_path(@build_list)
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,9 @@
|
||||||
json.(package, :id, :name, :version, :release, :epoch)
|
json.(package, :id, :name, :version, :release, :epoch)
|
||||||
json.type package.package_type
|
json.type package.package_type
|
||||||
json.updated_at package.updated_at.to_i
|
json.updated_at package.updated_at.to_i
|
||||||
json.url (package.sha1 ? "#{APP_CONFIG['file_store_url']}/api/v1/file_stores/#{package.sha1}" : '' )
|
json.url (package.sha1 ? "#{APP_CONFIG['file_store_url']}/api/v1/file_stores/#{package.sha1}" : '' )
|
||||||
|
|
||||||
|
json.dependent_projects dependent_projects(package) do |project, packages|
|
||||||
|
json.partial! 'api/v1/projects/project', project: project
|
||||||
|
json.dependent_packages packages
|
||||||
|
end if package.build_list.save_to_platform.main?
|
Loading…
Reference in New Issue