8000 Fix: Event key filter by mrkaye97 · Pull Request #1862 · hatchet-dev/hatchet · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix: Event key filter #1862

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 1 commit into from
Jun 13, 2025
Merged

Fix: Event key filter #1862

merged 1 commit into from
Jun 13, 2025

Conversation

mrkaye97
Copy link
Contributor

Description

Event key filter bug

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Copy link
vercel bot commented Jun 13, 2025

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

Name Status Preview Comments Updated (UTC)
hatchet-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 13, 2025 8:06pm
hatchet-v0-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 13, 2025 8:06pm

@mrkaye97 mrkaye97 requested review from abelanger5 and Copilot June 13, 2025 20:02
Copy link
Contributor
@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes a bug related to the event key filter. The changes eliminate an unnecessary allocation of a slice, directly assigning the key values from the request to the options.

  • Removed redundant allocation for keys.
  • Directly assigns request parameters to opts.Keys.
Comments suppressed due to low confidence (1)

api/v1/server/handlers/v1/events/list.go:56

  • [nitpick] Directly assigning the slice streamlines the code; ensure that opts.Keys is not inadvertently modified later, which may affect the original slice in request.Params.Keys.
opts.Keys = *request.Params.Keys

@abelanger5 abelanger5 merged commit 98ba7b9 into main Jun 13, 2025
36 of 37 checks passed
@abelanger5 abelanger5 deleted the fix--events-bugs branch June 13, 2025 20:04
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
0