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

Charts reading User selectors gives an error for null values #2071

Open
1 task done
nahiyan-yasaar-selise opened this issue Jan 27, 2025 · 2 comments
Open
1 task done
Assignees
Labels
backend Backend server changes (GO)
Milestone

Comments

@nahiyan-yasaar-selise
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Version of Corteza

2024.9.0

Current Behavior

When I build a chart that takes a User Selector as the metric's field, I get an error if there are any missing values. Inputting a default value doesn't work. I need to tick 'skip missing values' to get rid of the error so that the chart can render at all, but I would also like to know how many have missing values.

Image

Expected Behavior

The chart should still render with missing values as its own section (pie chart) or bar (bar chart), similar to taking Record Selectors.

Steps To Reproduce

  1. Create a module with a User Selector field
  2. Create multiple records
  3. Provide a user for a subset of the records, leaving the others blank
  4. Create a chart with the user selector field as a metric

Environment and versions

Also occurs in 2023.9.7

Anything else?

No response

@Fajfa
Copy link
Member

Fajfa commented Jan 27, 2025

Can confirm
You can use the Default Value Option as a workaround for now. You'll have to use a numeric value though 0 for example.

@Fajfa Fajfa added bug Something isn't working backend Backend server changes (GO) and removed bug Something isn't working labels Jan 27, 2025
@Fajfa Fajfa added this to the 2024.9.x milestone Jan 27, 2025
@Fajfa
Copy link
Member

Fajfa commented Jan 31, 2025

After further investigation, it's a Postgres issue.
Will be fixed in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Backend server changes (GO)
Projects
None yet
Development

No branches or pull requests

3 participants