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

Stop converting nil graph values to zero #4395

Merged
merged 1 commit into from
Nov 14, 2024
Merged

Conversation

leenagupte
Copy link
Contributor

⚠️ This repo is Continuously Deployed: make sure you follow the guidance ⚠️

What

Stop converting nil graph values to zero.

Why

Calling to_f or to_i on a nil value converts it zero. This is not the desired behaviour as we'd rather show a gap in the graph when the data is missing.

How

Screenshots?

Before

Screenshot 2024-11-14 at 14 47 13

After

Screenshot 2024-11-14 at 14 46 42

Calling `to_f` or `to_i` on a nil value converts it zero.
This is not the desired behaviour as we'd rather show a gap in the graph
when the data is missing.
@govuk-ci govuk-ci temporarily deployed to govuk-frontend-app-pr-4395 November 14, 2024 14:49 Inactive
Copy link
Contributor

@KludgeKML KludgeKML left a comment

Choose a reason for hiding this comment

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

LGTM

@leenagupte leenagupte merged commit 5127521 into main Nov 14, 2024
13 checks passed
@leenagupte leenagupte deleted the keep-nil-statistics-values branch November 14, 2024 14:54
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