Skip to content

Commit

Permalink
[FLINK-2844] [web frontend] Make web frontend URLs relative for YARN …
Browse files Browse the repository at this point in the history
…support

This closes apache#1246
  • Loading branch information
mxm authored and StephanEwen committed Oct 17, 2015
1 parent df44862 commit 4593109
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 26 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ angular.module('flinkApp')
@loadConfig = ->
deferred = $q.defer()

$http.get "/config"
$http.get "config"
.success (data, status, headers, config) ->
deferred.resolve(data)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ angular.module('flinkApp')
@loadConfig = ->
deferred = $q.defer()

$http.get("/jobmanager/config")
$http.get("jobmanager/config")
.success (data, status, headers, config) ->
config = data
deferred.resolve(data)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ angular.module('flinkApp')
@listJobs = ->
deferred = $q.defer()

$http.get "/joboverview"
$http.get "joboverview"
.success (data, status, headers, config) =>
angular.forEach data, (list, listKey) =>
switch listKey
Expand All @@ -110,12 +110,12 @@ angular.module('flinkApp')
currentJob = null
deferreds.job = $q.defer()

$http.get "/jobs/" + jobid
$http.get "jobs/" + jobid
.success (data, status, headers, config) =>
@setEndTimes(data.vertices)
@processVertices(data)

$http.get "/jobs/" + jobid + "/config"
$http.get "jobs/" + jobid + "/config"
.success (jobConfig) ->
data = angular.extend(data, jobConfig)

Expand Down Expand Up @@ -157,7 +157,7 @@ angular.module('flinkApp')
deferreds.job.promise.then (data) =>
vertex = @seekVertex(vertexid)

$http.get "/jobs/" + currentJob.jid + "/vertices/" + vertexid + "/subtasktimes"
$http.get "jobs/" + currentJob.jid + "/vertices/" + vertexid + "/subtasktimes"
.success (data) =>
# TODO: change to subtasktimes
vertex.subtasks = data.subtasks
Expand All @@ -172,7 +172,7 @@ angular.module('flinkApp')
deferreds.job.promise.then (data) =>
# vertex = @seekVertex(vertexid)

$http.get "/jobs/" + currentJob.jid + "/vertices/" + vertexid
$http.get "jobs/" + currentJob.jid + "/vertices/" + vertexid
.success (data) ->
subtasks = data.subtasks

Expand All @@ -186,11 +186,11 @@ angular.module('flinkApp')
deferreds.job.promise.then (data) =>
# vertex = @seekVertex(vertexid)

$http.get "/jobs/" + currentJob.jid + "/vertices/" + vertexid + "/accumulators"
$http.get "jobs/" + currentJob.jid + "/vertices/" + vertexid + "/accumulators"
.success (data) ->
accumulators = data['user-accumulators']

$http.get "/jobs/" + currentJob.jid + "/vertices/" + vertexid + "/subtasks/accumulators"
$http.get "jobs/" + currentJob.jid + "/vertices/" + vertexid + "/subtasks/accumulators"
.success (data) ->
subtaskAccumulators = data.subtasks

Expand All @@ -203,7 +203,7 @@ angular.module('flinkApp')

deferreds.job.promise.then (data) =>

$http.get "/jobs/" + currentJob.jid + "/exceptions"
$http.get "jobs/" + currentJob.jid + "/exceptions"
.success (exceptions) ->
currentJob.exceptions = exceptions

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ angular.module('flinkApp')
@loadOverview = ->
deferred = $q.defer()

$http.get("/overview")
$http.get("overview")
.success (data, status, headers, config) ->
overview = data
deferred.resolve(data)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ angular.module('flinkApp')
@loadManagers = () ->
deferred = $q.defer()

$http.get("/taskmanagers")
$http.get("taskmanagers")
.success (data, status, headers, config) ->
deferred.resolve(data['taskmanagers'])

Expand All @@ -34,7 +34,7 @@ angular.module('flinkApp')
@loadMetrics = (taskmanagerid) ->
deferred = $q.defer()

$http.get("/taskmanagers/" + taskmanagerid)
$http.get("taskmanagers/" + taskmanagerid)
.success (data, status, headers, config) ->
deferred.resolve(data['taskmanagers'])

Expand Down
26 changes: 13 additions & 13 deletions flink-runtime-web/web-dashboard/web/js/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4593109

Please sign in to comment.