Skip to content

Conversation

@catapan
Copy link
Contributor

@catapan catapan commented May 29, 2016

What changes were proposed in this pull request?

For incomplete applications in HistoryServer, the complete column will show "-" instead of incorrect date.

How was this patch tested?

manually tested.


function formatDate(date) {
return date.split(".")[0].replace("T", " ");
if (date <= 0) return "-";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suppose I don't have a preference on "" vs "-". LGTM

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about using "n/a" which would specifically indicate that its invalid to expect the end time ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shrug I think blank or - is simpler and more general. I guess n/a takes a moment to parse as not applicable.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about I spell it out as "Not available"? blank or "-" seems not very informative to the users.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I personally think that just adds more noise to the screen. Sometimes the column value is a date, sometimes a text string then. Using a blank is the most natural "no value" to me.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see. But to me, blank indicates that something is wrong. "-" is a little better. So I changed it back to "-".

@srowen
Copy link
Member

srowen commented May 29, 2016

Jenkins test this please

@tejasapatil
Copy link
Contributor

nit: the title of the PR could be made better:

[SPARK-15641] HistoryServer to not show invalid date for incomplete application

@catapan catapan changed the title SPARK-15641 do not show for incomplete application SPARK-15641 HistoryServer to not show invalid date for incomplete application May 29, 2016
@catapan
Copy link
Contributor Author

catapan commented May 29, 2016

revised as suggested. Thanks for the suggestions.

@SparkQA
Copy link

SparkQA commented May 29, 2016

Test build #59599 has finished for PR 13396 at commit f2897b6.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

This reverts commit add3cf6.
@srowen
Copy link
Member

srowen commented May 31, 2016

Merged to master/2.0

@asfgit asfgit closed this in 6878f3e May 31, 2016
asfgit pushed a commit that referenced this pull request May 31, 2016
…pplication

## What changes were proposed in this pull request?
For incomplete applications in HistoryServer, the complete column will show "-" instead of incorrect date.

## How was this patch tested?
manually tested.

Author: catapan <cedarpan86@gmail.com>
Author: Ziying Pan <cedarpan@Ziyings-MacBook.local>

Closes #13396 from catapan/SPARK-15641_fix_completed_column.

(cherry picked from commit 6878f3e)
Signed-off-by: Sean Owen <sowen@cloudera.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants