Skip to content

πŸͺ² BUG-#209: Raise TypeError on invalid Context setter values#234

Merged
FernandoCelmer merged 2 commits intodevelopfrom
feature/209
Apr 9, 2026
Merged

πŸͺ² BUG-#209: Raise TypeError on invalid Context setter values#234
FernandoCelmer merged 2 commits intodevelopfrom
feature/209

Conversation

@FernandoCelmer
Copy link
Copy Markdown
Member

Description

Fix Context property setters that silently ignored invalid values, leaving attributes as None.

Issue: πŸ“Œ ISSUE-#209

Changes

  • task_id setter β€” raises TypeError for non-int values (was silently ignored)
  • workflow_id setter β€” raises TypeError for non-UUID/non-string values (was silently ignored)
  • None is explicitly allowed in both setters
  • 11 new tests covering valid values, None, and invalid types

Type of change

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

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

@FernandoCelmer FernandoCelmer added the bug Something isn't working label Apr 9, 2026
@FernandoCelmer FernandoCelmer self-assigned this Apr 9, 2026
@FernandoCelmer FernandoCelmer merged commit 6b11786 into develop Apr 9, 2026
10 checks passed
@FernandoCelmer FernandoCelmer deleted the feature/209 branch April 9, 2026 05:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant