Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Disable sorting on workbench (#900)
Browse files Browse the repository at this point in the history
* Disable sorting on workbench

* Address comments
  • Loading branch information
joshuali925 committed Dec 9, 2020
1 parent 87160b3 commit fb83526
Show file tree
Hide file tree
Showing 4 changed files with 1,009 additions and 3,195 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,9 @@ describe("<QueryResults with data/> spec", () => {
// It tests Tab button
await fireEvent.click(getAllByRole('tab')[5]);

// TODO: uncomment this test when sorting is fixed
// It tests sorting
await fireEvent.click(getAllByTestId('tableHeaderSortButton')[1]);
// await fireEvent.click(getAllByTestId('tableHeaderSortButton')[1]);

// It tests pagination
await fireEvent.click(getAllByLabelText('Page 2 of 2')[0]);
Expand Down Expand Up @@ -209,8 +210,9 @@ describe("<QueryResults with data/> spec", () => {
// It tests Tab button
await fireEvent.click(getAllByRole('tab')[5]);

// TODO: uncomment this test when sorting is fixed
// It tests sorting
await fireEvent.click(getAllByTestId('tableHeaderSortButton')[1]);
// await fireEvent.click(getAllByTestId('tableHeaderSortButton')[1]);

// It tests pagination
await fireEvent.click(getAllByLabelText('Page 2 of 2')[0]);
Expand Down
6 changes: 3 additions & 3 deletions workbench/public/components/QueryResults/QueryResultsBody.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -601,9 +601,9 @@ class QueryResultsBody extends React.Component<QueryResultsBodyProps, QueryResul
<EuiTableHeaderCell
key={label}
width={colwidth}
onSort={this.onSort.bind(this, label)}
isSorted={this.props.sortedColumn === label}
isSortAscending={this.props.sortableProperties.isAscendingByName(label)}
// onSort={this.onSort.bind(this, label)}
// isSorted={this.props.sortedColumn === label}
// isSortAscending={this.props.sortableProperties.isAscendingByName(label)}
>
{label}
</EuiTableHeaderCell>
Expand Down
Loading

0 comments on commit fb83526

Please sign in to comment.