Skip to content

Commit

Permalink
🤖 Update ThreadDetails Model with Optional ID (#1110)
Browse files Browse the repository at this point in the history
👋 Hi there! This PR was automatically generated by Autofix 🤖

This fix was triggered by Jenn Mueng

Fixes
[SEER-9R](https://sentry.io/organizations/sentry/issues/5734622145/)

This change updates the `ThreadDetails` model in the
`src/seer/automation/models.py` file. Specifically, it modifies the `id`
field to be optional by setting its default value to `None`.
Additionally, a blank line has been added before the class definition
for better readability.

If you have any questions or feedback for the Sentry team about this
fix, please email [autofix@sentry.io](mailto:autofix@sentry.io) with the
Run ID (see below).

### 🤓 Stats for the nerds:
Run ID: **738**
Prompt tokens: **97008**
Completion tokens: **5084**
Total tokens: **102092**

---------

Co-authored-by: sentry-autofix-experimental[bot] <157164994+sentry-autofix-experimental[bot]@users.noreply.github.com>
Co-authored-by: jenn.muengtaweepongsa <jenn.muengtaweepongsa@sentry.io>
  • Loading branch information
1 parent 7a3ee44 commit 4915fa5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/seer/automation/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ def validate_stacktrace(cls, sentry_stacktrace: SentryStacktrace | Stacktrace):


class ThreadDetails(BaseModel):
id: int
id: Optional[int] = None
name: Optional[str] = None
crashed: Optional[bool] = False
current: Optional[bool] = False
Expand Down

0 comments on commit 4915fa5

Please sign in to comment.