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

feat(replay): implement search bar key sections and fetch tags from IP instead of discover #76276

Merged
merged 9 commits into from
Aug 27, 2024

Conversation

aliu39
Copy link
Member

@aliu39 aliu39 commented Aug 15, 2024

Follow up to #75552. Implements sections to make the typeahead easier to navigate.
Screen recording

"Suggested" and "Click Fields" combined is = to our documented search properties: https://docs.sentry.io/concepts/search/searchable-properties/session-replay. We always want to show these.

"Tags" are tags found in the Issue Platform dataset, sorted by times seen in the dataset (popularity). Previously we were fetching these from the TagStore which queries Discover. IP has a narrower set of more relevant tags. Some more context is at #75878

@aliu39 aliu39 requested a review from a team as a code owner August 15, 2024 17:43
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Aug 15, 2024
@@ -50,33 +52,69 @@ function fieldDefinitionsToTagCollection(fieldKeys: string[]): TagCollection {

const REPLAY_FIELDS_AS_TAGS = fieldDefinitionsToTagCollection(REPLAY_FIELDS);
const REPLAY_CLICK_FIELDS_AS_TAGS = fieldDefinitionsToTagCollection(REPLAY_CLICK_FIELDS);
const EXCLUDED_TAGS = ['browser', 'device', 'os', 'user'];
Copy link
Member

Choose a reason for hiding this comment

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

why are these excluded?

Copy link
Member Author

Choose a reason for hiding this comment

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

we already have browser.name, device.name, etc. They're effectively the same

Copy link
Member Author

Choose a reason for hiding this comment

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

maybe user is actually user.id, but either way they're confusing

Copy link
Member

Choose a reason for hiding this comment

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

ohh gotcha, could we add a comment to clarify that? just for posterity

Copy link
Member

@michellewzhang michellewzhang left a comment

Choose a reason for hiding this comment

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

@aliu39 aliu39 merged commit faeb0ee into master Aug 27, 2024
42 of 43 checks passed
@aliu39 aliu39 deleted the aliu/replay-search-update branch August 27, 2024 22:31
@github-actions github-actions bot locked and limited conversation to collaborators Sep 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Scope: Frontend Automatically applied to PRs that change frontend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants