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

Counter: Only autoselect existing columns in data #4738

Merged
merged 3 commits into from
Mar 24, 2020

Conversation

gabrieldutra
Copy link
Member

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

  • Other

Description

Don't autoselect "counter" column when creating a Counter. Basically this only selects a default column value in the UI when it exists in data.

Related Tickets & Documents

#4727

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

--

@kravets-levko
Copy link
Collaborator

In general it looks good, but one thing I noticed: with current implementation UI will show empty column select, but visualization will be saved with counter column name. It may confuse user if query later will be updated and that column will appear in results. Probably it's better to do this check in getOptions function (it takes raw options and query results rows/columns). WDYT?

@gabrieldutra
Copy link
Member Author

but visualization will be saved with counter column name

I missed that one 😅. My goal was to keep backward compatibility at most. But it makes sense to have it on the getOptions, so moved to it 👍

Copy link
Collaborator

@kravets-levko kravets-levko left a comment

Choose a reason for hiding this comment

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

Looks good 👍

@gabrieldutra gabrieldutra merged commit 2a3f66d into counter-types Mar 24, 2020
@gabrieldutra gabrieldutra deleted the counter-types--dont-autoselect-column branch March 24, 2020 13:49
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.

2 participants