Skip to content

Fix: Check uuid.Nil when creating or groups too#2958

Merged
mrkaye97 merged 2 commits intomainfrom
mk/fix-check-uuid.nil
Feb 5, 2026
Merged

Fix: Check uuid.Nil when creating or groups too#2958
mrkaye97 merged 2 commits intomainfrom
mk/fix-check-uuid.nil

Conversation

@mrkaye97
Copy link
Copy Markdown
Contributor

@mrkaye97 mrkaye97 commented Feb 5, 2026

Description

Forgot the SDK will send uuid.Nil by default because it's uuid.UUID not *uuid.UUID 🤦

Type of change

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

@vercel
Copy link
Copy Markdown

vercel Bot commented Feb 5, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
hatchet-docs Building Building Preview, Comment Feb 5, 2026 5:03pm

Request Review

@mrkaye97 mrkaye97 merged commit 9781e06 into main Feb 5, 2026
42 of 43 checks passed
@mrkaye97 mrkaye97 deleted the mk/fix-check-uuid.nil branch February 5, 2026 17:05
Copy link
Copy Markdown
Contributor

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 where the SDK sends uuid.Nil (the zero-value UUID) by default for uuid.UUID typed fields instead of empty strings. The code now properly checks for both empty strings and nil UUIDs when determining whether to generate a new OR group ID.

Changes:

  • Updated OR group ID validation to check for both empty strings and uuid.Nil.String() before generating new IDs

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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