Skip to content

Conversation

@Mmoncadaisla
Copy link
Contributor

This small PR from Support aims to fix a small bug, in which if the column to be used in a formula widget is named 'count', the aggregation performed is currently 'count' regardless of the operation.

More details here: https://app.clubhouse.io/cartoteam/story/119026/cartoframes-formula-widget-misbehavior-when-column-is-named-count

This PR contains two file modifications:

  • Formula widget: perform an evaluation on 'operation' parameter only

  • Formula widget unit tests (viewport + global): create a formula widget with operation='count'

Result after changes using sum operation:

image

@Mmoncadaisla Mmoncadaisla requested a review from Jesus89 November 13, 2020 12:22
@Mmoncadaisla Mmoncadaisla self-assigned this Nov 13, 2020
Copy link
Member

@Jesus89 Jesus89 left a comment

Choose a reason for hiding this comment

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

Great thanks!

Not sure why this was added by default, but it makes sense this way.

@Jesus89 Jesus89 merged commit d4506ef into develop Nov 25, 2020
@Jesus89 Jesus89 deleted the mmoncadaisla/formula_widget_count_operation branch November 25, 2020 13:51
@Jesus89
Copy link
Member

Jesus89 commented Nov 25, 2020

It will be available in the next release.

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.

3 participants