Skip to content

allows to order percentiles freely - #12498

Merged
thomasneirynck merged 2 commits into
elastic:masterfrom
ppisljar:fix/percentileOrder
Jun 30, 2017
Merged

thomasneirynck merged 2 commits into
elastic:masterfrom
ppisljar:fix/percentileOrder

Conversation

@ppisljar

@ppisljar ppisljar commented Jun 26, 2017 •

Copy link
Copy Markdown
Contributor

Resolves #12497

screenshot-localhost-5601 2017-06-26 14-17-04

@ppisljar ppisljar added Feature:Visualizations Generic visualization features (in case no more specific feature label is available) release_note:fix v5.6.0 v6.0.0 labels Jun 26, 2017
@ppisljar
ppisljar requested a review from thomasneirynck June 26, 2017 12:37
@weltenwort
weltenwort self-requested a review June 27, 2017 09:42
self.getUnitName = _.partial($parse($attrs.unit), $scope);

const defaultRange = self.range = parseRange('[0,Infinity)');
self.validateOrder = $attrs.validateOrder ? $parse($attrs.validateOrder)($scope) : true;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

What is the advantage over just using scope: { validateOrder: '=?' }? That way no extra $parse is required and the attribute's presence is easily visible to a consumer of the directive.

ng-model="agg.params.percents"
unit-name="percent"
range="[0,100]"
validate-order="false"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

How about representing more of the semantics in the name, e.g. validate-ascending-order? Or we could make it more flexible by allowing different orderings as in validate-order="asc|desc".

@ppisljar ppisljar removed the v5.6.0 label Jun 27, 2017
@thomasneirynck
thomasneirynck merged commit 3bde72a into elastic:master Jun 30, 2017
patrykkopycinski pushed a commit to patrykkopycinski/kibana that referenced this pull request May 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature:Visualizations Generic visualization features (in case no more specific feature label is available) release_note:fix v6.0.0-rc1 v6.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants