Skip to content

feat: denoise search results #751

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 4 commits into from
May 6, 2025
Merged

feat: denoise search results #751

merged 4 commits into from
May 6, 2025

Conversation

MikeShi42
Copy link
Contributor

image

Copy link

changeset-bot bot commented Apr 14, 2025

⚠️ No Changeset found

Latest commit: 9b258fa

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@MikeShi42 MikeShi42 force-pushed the mikeshi/v0-event-patterns branch from 3f14f88 to fee91c9 Compare April 17, 2025 23:49
@MikeShi42 MikeShi42 changed the base branch from mikeshi/v0-event-patterns to v2 April 18, 2025 18:29
@teeohhem
Copy link
Contributor

@MikeShi42 when u get a chance, can you resolve these conflicts in the PR? I'll give it another thorough review when these are resolved. Thanks!

@MikeShi42 MikeShi42 force-pushed the mikeshi/denoise-search branch from 8789854 to f8cb7cc Compare May 6, 2025 03:28
Copy link

vercel bot commented May 6, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
hyperdx-v2-oss-app ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 6, 2025 5:47pm

setIsLive(false);
}
},
[setIsLive],
[isLive, setIsLive],
Copy link
Contributor

Choose a reason for hiding this comment

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

This just an optimization or does it fix a bug?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good q, I don't actually recall why this diff is here since the commit was a while back, at best vaguely recalling it's likely trying to fix an excess re-render issue.

>
{shouldShowLiveModeHint &&
analysisMode === 'results' &&
denoiseResults != true && (
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: !denoiseResults

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think a bool comparison here is good

bodyValueExpression: patternColumn ?? '',
totalCount: undefined,
enabled: denoiseResults,
});
Copy link
Contributor

Choose a reason for hiding this comment

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

Just a comment for later: If we notice performance issues here, we could move this to a webworker

Copy link
Contributor Author

Choose a reason for hiding this comment

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

there's a few other issues we likely want to fix, I think it re-imports packages at times for some reason but I'm not too worried since none of these behaviors come around unless the user is activating the denoise

import {
FetchNextPageOptions,
keepPreviousData,
QueryClient,
Copy link
Contributor

Choose a reason for hiding this comment

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

unused I think?

Copy link
Contributor

Choose a reason for hiding this comment

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

keepPreviousData also unused

@kodiakhq kodiakhq bot merged commit 4b1f9af into v2 May 6, 2025
7 checks passed
@kodiakhq kodiakhq bot deleted the mikeshi/denoise-search branch May 6, 2025 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants