Github user ajbozarth commented on a diff in the pull request:

    https://github.com/apache/spark/pull/19270#discussion_r142781908
  
    --- Diff: core/src/main/resources/org/apache/spark/ui/static/utils.js ---
    @@ -46,3 +46,64 @@ function formatBytes(bytes, type) {
         var i = Math.floor(Math.log(bytes) / Math.log(k));
         return parseFloat((bytes / Math.pow(k, i)).toFixed(dm)) + ' ' + 
sizes[i];
     }
    +
    +function formatLogsCells(execLogs, type) {
    +    if (type !== 'display') return Object.keys(execLogs);
    +    if (!execLogs) return;
    +    var result = '';
    +    $.each(execLogs, function (logName, logUrl) {
    +        result += '<div><a href=' + logUrl + '>' + logName + '</a></div>'
    +    });
    +    return result;
    +}
    +
    +function getStandAloneAppId(cb) {
    --- End diff --
    
    So I know you just copied this function over, but why doesn't this just 
return the appId rather than taking in a function to run on an appId? It seems 
to me the later would make more sense. If changing it makes sense to you as 
well we should update it here.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to