Skip to content

feat(cdp): hide the filtered metric #30504

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

Merged
merged 11 commits into from
Apr 8, 2025
Merged

feat(cdp): hide the filtered metric #30504

merged 11 commits into from
Apr 8, 2025

Conversation

MarconLP
Copy link
Member

@MarconLP MarconLP commented Mar 27, 2025

Problem

The filtered metric shouldn't be shown.

Changes

  • Allow selecting which metric types to show
  • Hide the filtered metric by default

2025-03-31 at 12 34 04

Does this work well for both Cloud and self-hosted?

How did you test this code?

@MarconLP MarconLP requested a review from a team March 27, 2025 15:32
Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

PR Summary

This PR removes the 'filtered' metric from the CDP metrics display by updating both the UI configuration and API request parameters.

  • Removed 'filtered' metric from METRICS_INFO object in /frontend/src/scenes/pipeline/metrics/AppMetricsV2.tsx
  • Added explicit metric names in API request params in /frontend/src/scenes/pipeline/metrics/appMetricsV2Logic.tsx to control which metrics are displayed
  • Visual confirmation shows clean removal of the metric from the UI display

2 file(s) reviewed, 1 comment(s)
Edit PR Review Bot Settings | Greptile

Copy link
Contributor

github-actions bot commented Mar 27, 2025

Size Change: -216 B (0%)

Total Size: 10.2 MB

ℹ️ View Unchanged
Filename Size Change
frontend/dist/toolbar.js 10.2 MB -216 B (0%)

compressed-size-action

@MarconLP MarconLP requested a review from meikelmosby March 31, 2025 10:38
@@ -20,6 +29,18 @@ const METRICS_INFO = {
'Total number of events that were skipped due to the destination being permanently disabled (due to prolonged issues with the destination)',
}

const ALL_METRIC_TYPES = [
Copy link
Contributor

Choose a reason for hiding this comment

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

So i just checked it out locally and for me this is the experience:

  • If i dont have anything selected it still shows me succeeded
Screenshot 2025-03-31 at 14 17 53
  • succeeded is always shown so if i only want to see the graph for filtered and e.g. failed i cannot do that
Screenshot 2025-03-31 at 14 19 44
  • i don't know if it should be part of this PR but when I select a time-window the upper element that is showing the absolut numbers is not updating (i assume its always showing the total amount)
  • transformations and destinations have the same metric types although thats not true, right? Transformations do not support fetch for example

Copy link
Member Author

Choose a reason for hiding this comment

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

If i dont have anything selected it still shows me succeeded

I wasn't able to replicate this issue. Is that still happening?

i don't know if it should be part of this PR but when I select a time-window the upper element that is showing the absolut numbers is not updating (i assume its always showing the total amount)

Fixed this issue

transformations and destinations have the same metric types although thats not true, right? Transformations do not support fetch for example

Filtered out the fetch metric for transformations

Copy link
Contributor

Choose a reason for hiding this comment

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

Screenshot 2025-04-04 at 11 04 40

still happens yes.

Copy link
Contributor

Choose a reason for hiding this comment

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

i'm using Arc btw if that helps.

Copy link
Member Author

Choose a reason for hiding this comment

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

Found the issue and pushed a fix
1cd26e1 (#30504)

<LemonDropdown
closeOnClickInside={false}
matchWidth={false}
placement="right-end"
Copy link
Contributor

Choose a reason for hiding this comment

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

Screenshot 2025-03-31 at 14 26 49
  • right-end leads to looking inconsistant with the rest of the UI
Screenshot 2025-03-31 at 14 29 13
  • clicking on the actual check-box does not work but only on the list item

Copy link
Member Author

Choose a reason for hiding this comment

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

right-end leads to looking inconsistant with the rest of the UI
clicking on the actual check-box does not work but only on the list item

Moved the checkboxes to the left side and fixed the click issue
2025-04-03 at 15 01 40

@posthog-bot
Copy link
Contributor

📸 UI snapshots have been updated

1 snapshot changes in total. 0 added, 1 modified, 0 deleted:

  • chromium: 0 added, 1 modified, 0 deleted (diff for shard 7)
  • webkit: 0 added, 0 modified, 0 deleted

Triggered by this commit.

👉 Review this PR's diff of snapshots.

@MarconLP MarconLP requested a review from meikelmosby April 3, 2025 13:03
@meikelmosby meikelmosby mentioned this pull request Apr 4, 2025
26 tasks
@MarconLP MarconLP merged commit 4026d23 into master Apr 8, 2025
110 checks passed
@MarconLP MarconLP deleted the hide-filtered-metric branch April 8, 2025 09:19
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