Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Vis: Default Editor] Euificate table options tab #46013

Merged
merged 17 commits into from
Oct 9, 2019

Conversation

maryia-lapata
Copy link
Contributor

@maryia-lapata maryia-lapata commented Sep 18, 2019

Summary

EUIfication of options tab for Data Table vis.
Part of #38273, #16639.

This PR contains:

  • Euification of table-vis-params directive;
  • types for TableVisParams;
  • move _get_columns.js to TS;
  • SwitchOption: rename dataTestSubj to data-test-subj.

Screenshots:


Checklist

Use strikethroughs to remove checklist items you don't feel are applicable to this PR.

For maintainers

@maryia-lapata maryia-lapata added v8.0.0 release_note:skip Skip the PR/issue when compiling release notes v7.5.0 labels Sep 18, 2019
@elasticmachine

This comment has been minimized.

@maryia-lapata maryia-lapata marked this pull request as ready for review September 24, 2019 11:51
@maryia-lapata maryia-lapata added Feature:Vis Editor Visualization editor issues Team:Visualizations Visualization editors, elastic-charts and infrastructure labels Sep 24, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app

@maryia-lapata maryia-lapata changed the title [Default Editor] Euificate table options tab [Vis: Default Editor] Euificate table options tab Sep 24, 2019
@maryia-lapata maryia-lapata added the Feature:Data Table Data table visualization feature label Sep 24, 2019
@elasticmachine

This comment has been minimized.

@maryia-lapata
Copy link
Contributor Author

@elasticmachine merge upstream

@elasticmachine

This comment has been minimized.

Copy link
Contributor

@cchaos cchaos left a comment

Choose a reason for hiding this comment

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

Just one small text change, otherwise LGTM

function () {
if (!$scope.vis) return;
const params = $scope.editorState.params;
$scope.metricsAtAllLevels = params.showPartialRows || params.showMetricsAtAllLevels;
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 didn't find a place where metricsAtAllLevels variable is read. Moreover there is the same logic in vis type definition - hierarchicalData method. So I didn't migrate this code.

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

defaultMessage: 'Rows per page',
})}
paramName="perPage"
value={stateParams.perPage}
Copy link
Contributor

Choose a reason for hiding this comment

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

I suppose this value could have a min bound 1 with validation also

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@elasticmachine
Copy link
Contributor

💔 Build Failed

@sulemanof sulemanof requested a review from flash1293 October 2, 2019 16:18
Copy link
Contributor

@sulemanof sulemanof left a comment

Choose a reason for hiding this comment

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

LGTM!
Tested locally on Chrome/Windows.

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@sulemanof
Copy link
Contributor

@elasticmachine merge upstream

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Copy link
Contributor

@flash1293 flash1293 left a comment

Choose a reason for hiding this comment

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

LGTM, two small remarks about the structure of the panel

<h3>
<FormattedMessage
id="visTypeTable.params.showMetricsLabel.optionsTitle"
defaultMessage="Options"
Copy link
Contributor

Choose a reason for hiding this comment

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

In Markdown the only panel is called "Settings" - not sure which one is better, do we even need one if there is just a single panel

Copy link
Contributor

Choose a reason for hiding this comment

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

Let's better remove it for consistency, like such titles are skipped in Controls, Coordinate map and Tag cloud. Such titles are actually duplicates the tab name - Options

</h3>
</EuiTitle>
<EuiSpacer size="s" />
<NumberInputOption
Copy link
Contributor

Choose a reason for hiding this comment

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

We could put a tooltip here to explain that leaving this empty means it will use the amount of buckets in the response.

Copy link
Contributor

Choose a reason for hiding this comment

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

Done.
@snide , please, confirm these changes.

@sulemanof sulemanof requested a review from snide October 8, 2019 12:43
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@sulemanof
Copy link
Contributor

@elasticmachine merge upstream

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@sulemanof sulemanof merged commit 6a0da3d into elastic:master Oct 9, 2019
@sulemanof sulemanof deleted the data-table-tab branch October 9, 2019 09:19
sulemanof pushed a commit to sulemanof/kibana that referenced this pull request Oct 9, 2019
* Euificate table options tab

* Add validation

* Use SchemaConfig for dimensions

* Update snapshots
sulemanof added a commit that referenced this pull request Oct 9, 2019
* Euificate table options tab

* Add validation

* Use SchemaConfig for dimensions

* Update snapshots
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Data Table Data table visualization feature Feature:Vis Editor Visualization editor issues release_note:skip Skip the PR/issue when compiling release notes Team:Visualizations Visualization editors, elastic-charts and infrastructure v7.5.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants