put the build id in the output file urls
the url attribute will now give the preferred location for accessing the output file, without the url having to be constructed by the web client
This commit is contained in:
@@ -33,7 +33,10 @@ module.exports = CompileController =
|
|||||||
status: status
|
status: status
|
||||||
error: error?.message or error
|
error: error?.message or error
|
||||||
outputFiles: outputFiles.map (file) ->
|
outputFiles: outputFiles.map (file) ->
|
||||||
url: "#{Settings.apis.clsi.url}/project/#{request.project_id}/output/#{file.path}"
|
url:
|
||||||
|
"#{Settings.apis.clsi.url}/project/#{request.project_id}" +
|
||||||
|
(if file.build? then "/build/#{file.build}" else "") +
|
||||||
|
"/output/#{file.path}"
|
||||||
path: file.path
|
path: file.path
|
||||||
type: file.type
|
type: file.type
|
||||||
build: file.build
|
build: file.build
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ describe "CompileController", ->
|
|||||||
status: "success"
|
status: "success"
|
||||||
error: null
|
error: null
|
||||||
outputFiles: @output_files.map (file) =>
|
outputFiles: @output_files.map (file) =>
|
||||||
url: "#{@Settings.apis.clsi.url}/project/#{@project_id}/output/#{file.path}"
|
url: "#{@Settings.apis.clsi.url}/project/#{@project_id}/build/#{file.build}/output/#{file.path}"
|
||||||
path: file.path
|
path: file.path
|
||||||
type: file.type
|
type: file.type
|
||||||
build: file.build
|
build: file.build
|
||||||
|
|||||||
Reference in New Issue
Block a user