feat(experiments): improve "no results" diagnostics #27772
Merged
+85
−200
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
When solving this ticket, I've noticed that the "no results" diagnostics weren't working entirely correctly. This user did have the required event, just was missing the feature flag information on them. Yet, the diagnostics popup showed "Metric events not received".
I'm a bit unsure why this used to work in the old code. We did have this filter condition, but the query must've returned counts for all events too (to be able to confirm their existence in the validation method). In the new HogQL implementation, this is not the case, and only the events having the feature flag variants get returned.
Changes
Rather than fixing this, I'm proposing the following change:
This is simplifies the checklist and lets the user verify and debug missing events in a more interactive way.
Trends
Funnels
How did you test this code?
Manually tested that the Activity query is set up correctly for: