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 visualization format is disabled #5071

Open
ilanbe opened this issue Jul 28, 2020 · 8 comments
Open

Counter visualization format is disabled #5071

ilanbe opened this issue Jul 28, 2020 · 8 comments

Comments

@ilanbe
Copy link

ilanbe commented Jul 28, 2020

Issue Summary

Counter visualization format editing is disabled.
When configuring a counter, the formatting option for the counter value are disabled.
Surprisingly, if the "Count Rows" is selected, the formatting is editable again,when it is expected to be the other way around.

Steps to Reproduce

  1. define a query (tested on oracle and postrese)
    select 20.2222222
  2. Define a counter
  3. Try to format the value.

ezgif com-video-to-gif

Technical details:

  • Redash Version: 8.0.0+b32245 (a16f551)
  • Browser/OS: FF & Chrome
  • How did you install Redash: On-prem docker
@ilanbe ilanbe closed this as completed Jul 28, 2020
@kravets-levko
Copy link
Collaborator

Hi @ilanbe! Format settings will be disabled when counter value is not a number - was this your case?

@ilanbe
Copy link
Author

ilanbe commented Jul 28, 2020

Hi @kravets-levko
Just rechecked; the problem occur when the number is decimal

20.56546456 - Problem
50 - OK
30.2 - Problem
30.43 - Problem
0 - OK

ilanbe

@ilanbe ilanbe reopened this Jul 28, 2020
@ilanbe
Copy link
Author

ilanbe commented Jul 28, 2020

Closed by misteke

@kravets-levko
Copy link
Collaborator

Thank you for feedback @ilanbe! Can you please provide a minimal data sample to reproduce this issue (e.g. export CSV from your query) or reproduce this on our demo instance?

@ilanbe
Copy link
Author

ilanbe commented Jul 28, 2020

This is the test data
"ID","AMOUNT","TEST"
4,20.56546456,"xxxxx"
5,50,"xxxx"
6,30.2,"xxxxx"
7,30.43,"xxxxx"

Thanks for the prompt response
ilanbe

@kravets-levko
Copy link
Collaborator

Thank you @ilanbe! I managed to reproduce this on preview instance only with string values (e.g. SELECT '20.56546456'), if query returns a numeric value - everything works fine. I'll look into code a bit later, for now please check and ensure that your query returns numbers and not strings

@ilanbe
Copy link
Author

ilanbe commented Jul 28, 2020

It seems that the issue is specific to Oracle.
but the column in question is defined as "NUMBER", so no reason to return string

@kravets-levko
Copy link
Collaborator

@ilanbe thank you for the update! one more thing you can try is upgrading to latest Redash version (however, I'm not 100% sure that it will help)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants