Skip to content

Web console: fixed issue when grouping tasks by different attributes#7657

Merged
clintropolis merged 2 commits intoapache:masterfrom
implydata:status-table
May 16, 2019
Merged

Web console: fixed issue when grouping tasks by different attributes#7657
clintropolis merged 2 commits intoapache:masterfrom
implydata:status-table

Conversation

@jennyzzz
Copy link
Copy Markdown
Contributor

@jennyzzz jennyzzz commented May 14, 2019

This is for master, but is also included in "Data loader fixes #7672" (for 0.15.0).

Issue:

  1. Druid console shows blank screen when clicking on Tasks > group by Datasource (> or group by Type)
  2. When group by status, only 1 status shows up:
    image
    Expected:
    image

Current UI after this fix:
it can be grouped by type:
image

Or grouped by status:
image

@fjy fjy added this to the 0.16.0 milestone May 15, 2019
@vogievetsky vogievetsky mentioned this pull request May 16, 2019
@vogievetsky
Copy link
Copy Markdown
Contributor

This is not the correct approach to this issue it effectively undoes the tie-breaker reverting back to the state where the tasks are ordered incorrectly:

image

(see how the time within successful tasks is ascending, it should be descending)

The correct approach is to define a toString method on the object returned by the accessor.
Have a look at what I did in this backport PR: https://github.com/apache/incubator-druid/pull/7672/files#diff-4aaac42e3d5f769f344608b14e686f88R604

This gives that object a canonical string value and tricks ReactTable to work as intended.

@vogievetsky
Copy link
Copy Markdown
Contributor

Looks good to me now. Could we change the PR title to something like Web console: fixed issue when grouping tasks by different attributes

@jennyzzz jennyzzz changed the title Deleted created_time in "status" Web console: fixed issue when grouping tasks by different attributes May 16, 2019
@vogievetsky
Copy link
Copy Markdown
Contributor

Awesome thank you! 👍

Copy link
Copy Markdown
Member

@clintropolis clintropolis left a comment

Choose a reason for hiding this comment

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

👍

@clintropolis clintropolis merged commit ec0b778 into apache:master May 16, 2019
@clintropolis clintropolis deleted the status-table branch May 16, 2019 23:46
gianm pushed a commit to implydata/druid-public that referenced this pull request May 28, 2019
…pache#7657)

* deleted created_time in "status"

* added toString on the status object
jihoonson pushed a commit to implydata/druid-public that referenced this pull request Jun 26, 2019
…pache#7657)

* deleted created_time in "status"

* added toString on the status object
gianm pushed a commit to implydata/druid-public that referenced this pull request Jul 4, 2019
…pache#7657)

* deleted created_time in "status"

* added toString on the status object
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants