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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Counter visualization enhancements #4392

Closed
wants to merge 13 commits into from
Closed

Counter visualization enhancements #4392

wants to merge 13 commits into from

Conversation

gabrieldutra
Copy link
Member

@gabrieldutra gabrieldutra commented Nov 23, 2019

What type of PR is this? (check all applicable)

  • Feature

Description

This PR will allow more aggregation types for the Counter Visualization.

So far I just started exploring it, I wanted to have the types definition centered in one place and also it makes sense to merge the existing countRows. Currently I centered that logic in utils because it's where the current counter logic is, but I'll later see a better place to that.

One thing that I'll need to see is what's the best way of handling backward compatibility for the countRows, I was thinking a migration as it would just define Types for existing counters, though I haven't done a migration on my own yet so just confirming that 馃槄.

To do:

  • Add Extra Counter Types
  • Add Migration
  • Update Tests
  • Does it make sense to have the same Types choice for the Target Value?

Related Tickets & Documents

Closes #4366
Closes #2558

Mobile & Desktop Screenshots/Recordings (if there are UI changes)

counter-types

@gabrieldutra gabrieldutra marked this pull request as ready for review February 7, 2020 19:27
kravets-levko and others added 2 commits March 12, 2020 11:27
* Counter enhancements

* Code style

* Allow to deselect column; don't migrate options for new visualizations; minor fixes

* Secondary values editor: disable input when secondary value not available

* Use row data (if available) when formatting values and tooltips

* Show secondary value controls only visibility - don't disable inputs

* Mve round baces around secondary value to format templates

* Fix options migration bug

* Render counter only if some data available

* Ability to disable secondary value; place Show Secondary Value checkbox after other options

* Format hints

* Fix options migration bug

* Tests: getCounterData

* Tests: Editor

* Code style

* Tests: Renderer

* Tests: Renderer (unit-tests)

* Fix unit tests hanging on CI

* CR1
@gabrieldutra gabrieldutra changed the title Add additional aggregate functions to Counter visualization Counter visualization enhancements Mar 24, 2020
@gabrieldutra
Copy link
Member Author

This PR is now holding all recent updates (great part of them made by @kravets-levko's efforts) to the Counter Visualization 馃槵:

  • Versioning and migration of props
  • New Types (Row value, Count Rows, Sum Values, Min Value, Max Value)
  • Options reorganized (as Primary value and Secondary value) and formatting options updated
  • Tests updates (more Jest tests are being used now)

@arikfr I noticed the existence of #2942, if you think that's a quick win and that's still relevant it should be a good time to do it.

@guidopetri
Copy link
Collaborator

@gabrieldutra , thanks for the PR! We've updated a lot of things now that we're Community-driven so - if you're still interested in getting this merged - would you mind rebasing off master to re-run the CI, as well as updating merge conflicts?

We're trying to clean up our PR todo list, so if you're not interested, that's fine - we'll close the PR in about a week if we don't hear back. If you're interested in reopening the PR afterwards, we would also very much welcome that.

@justinclift justinclift deleted the counter-types branch July 24, 2023 20:07
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.

Add additional aggregate functions to Counter visualization Option to set number format in counters
3 participants