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: query-ify the matching_events API #26916

Merged
merged 3 commits into from
Dec 16, 2024

Conversation

pauldambra
Copy link
Member

This API still depends on the old shaped filters which I want to delete

So, shift it to not using those... (behind a flag)

@pauldambra pauldambra requested a review from a team December 14, 2024 14:12
@@ -69,7 +69,6 @@ export function RecordingRow({ recording }: RecordingRowProps): JSX.Element {
onClick={() => {
openSessionPlayer({
id: recording.id,
matching_events: recording.matching_events,
Copy link
Member Author

Choose a reason for hiding this comment

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

these are never present here, so we can delete this

const response = await api.recordings.getMatchingEvents(params)
}
if (values.listAPIAsQuery) {
params.as_query = true
Copy link
Member Author

Choose a reason for hiding this comment

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

switch to the new query code (or not)

raise exceptions.ValidationError(
"Must specify exactly one session_id",
)
if use_query_type:
Copy link
Member Author

Choose a reason for hiding this comment

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

a little duplication is ok since we're going to delete one branch pretty soon

]

response = self.client.get(
f"/api/projects/{self.team.id}/session_recordings/matching_events?{'&'.join(query_params)}&as_query=true"
Copy link
Member Author

Choose a reason for hiding this comment

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

prove it works

Copy link
Contributor

github-actions bot commented Dec 14, 2024

Size Change: 0 B

Total Size: 1.11 MB

ℹ️ View Unchanged
Filename Size
frontend/dist/toolbar.js 1.11 MB

compressed-size-action

@pauldambra pauldambra enabled auto-merge (squash) December 14, 2024 16:45
Copy link
Member

@robbie-c robbie-c left a comment

Choose a reason for hiding this comment

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

Extremely low context, but I trust the feature flag

@pauldambra pauldambra merged commit 63ec347 into master Dec 16, 2024
96 checks passed
@pauldambra pauldambra deleted the feat/query-ify-matching-events branch December 16, 2024 10:32
Copy link

sentry-io bot commented Dec 16, 2024

Suspect Issues

This pull request was deployed and Sentry observed the following issues:

  • ‼️ SocketTimeoutError: (ch-online.posthog.net:9440) /api/environments/{parent_lookup_team_id}/sessi... View Issue
  • ‼️ NetworkError: Connection refused (ch-online.posthog.net:9440) /api/environments/{parent_lookup_team_id}/sessi... View Issue

Did you find this useful? React with a 👍 or 👎

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.

2 participants