Skip to content

Conversation

@gggritso
Copy link
Member

@gggritso gggritso commented Oct 24, 2025

Unlike /events-timeseries/, /events-stats/ has an issue where a null group gets converted to "None" by stringifying that key in Python. This is a mismatch between the endpoints, and I'm resolving it here by correctly accounting for "None" as a key. I've also taken this opportunity to improve how null groups are handled. They are now showns as "(no value)" in more places.

N.B. Checking for "null" in the ModelName is a hack, sorry! It's due to how the code is arranged. ModelName is used in a field renderer, which checks the data values beforehand. It's also used directly by some table components, where checking the value is a little more annoying. I opted to check for "null", so it's all in once place.

We could make this situation a lot better by using the field renderers in the table widgets!

With this fix, the values in the chart tooltips and table values in Explore and the AI modules work correctly.

e.g.,
Screenshot 2025-10-24 at 12 08 28 PM
Screenshot 2025-10-24 at 12 10 35 PM
Screenshot 2025-10-24 at 12 54 15 PM

@linear
Copy link

linear bot commented Oct 24, 2025

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Oct 24, 2025
@gggritso gggritso marked this pull request as ready for review October 24, 2025 19:03
@gggritso gggritso requested review from a team as code owners October 24, 2025 19:03
@gggritso gggritso merged commit e4f64c9 into master Oct 28, 2025
50 checks passed
@gggritso gggritso deleted the georgegritsouk/eng-5769-fix-treatment-of-null-groups-during-conversion branch October 28, 2025 13:34
priscilawebdev pushed a commit that referenced this pull request Oct 29, 2025
Unlike `/events-timeseries/`, `/events-stats/` has an issue where a
`null` group gets converted to `"None"` by stringifying that key in
Python. This is a mismatch between the endpoints, and I'm resolving it
here by correctly accounting for `"None"` as a key. I've also taken this
opportunity to improve how `null` groups are handled. They are now
showns as `"(no value)"` in more places.

N.B. Checking for `"null"` in the `ModelName` is a hack, sorry! It's due
to how the code is arranged. `ModelName` is used in a field renderer,
which checks the data values beforehand. It's also used directly by some
table components, where checking the value is a little more annoying. I
opted to check for `"null"`, so it's all in once place.

We could make this situation a lot better by using the field renderers
in the table widgets!

With this fix, the values in the chart tooltips and table values in
Explore and the AI modules work correctly.

**e.g.,**
<img width="168" height="419" alt="Screenshot 2025-10-24 at 12 08 28 PM"
src="https://github.com/user-attachments/assets/70bf6f59-7981-475b-b042-3cad7e939db7"
/>
<img width="356" height="296" alt="Screenshot 2025-10-24 at 12 10 35 PM"
src="https://github.com/user-attachments/assets/ddc7c466-23dd-4ef4-aa79-78b29a0d7e90"
/>
<img width="178" height="216" alt="Screenshot 2025-10-24 at 12 54 15 PM"
src="https://github.com/user-attachments/assets/836e4478-fb5c-45f2-9922-d372124c56f7"
/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants