-
Notifications
You must be signed in to change notification settings - Fork 230
fix: filter scope for bulk ops #1503
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
Comments suppressed due to low confidence (3)
sdks/typescript/src/v1/examples/cancellations/run.ts:9
- [nitpick] The variable name 'run1' may be unclear; consider using a more descriptive name if it represents a distinct cancellation instance.
const run1 = cancellation.runNoWait({});
internal/services/admin/v1/server.go:59
- [nitpick] Consider removing the debug log statement or replacing it with a proper logging mechanism to avoid accidental production output.
fmt.Println("workflowIds", workflowIds)
internal/services/admin/v1/server.go:170
- [nitpick] Since similar filtering logic now appears in both CancelTasks and ReplayTasks, consider refactoring it into a shared helper to reduce duplication and potential inconsistencies.
if req.Filter != nil {
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 3 out of 4 changed files in this pull request and generated no comments.
Files not reviewed (1)
- sdks/typescript/package.json: Language not supported
Comments suppressed due to low confidence (2)
sdks/typescript/src/v1/examples/cancellations/run.ts:9
- [nitpick] Consider using a more descriptive variable name instead of 'run1' to clarify its distinct role in the example.
const run1 = cancellation.runNoWait({});
sdks/typescript/src/v1/client/features/runs.ts:95
- If opts.ids is provided as an empty array, the filter will be omitted even though no external ids are effectively given; consider explicitly checking for undefined instead of falsy values.
filter: !opts.ids ? filter : undefined,
@@ -1,6 +1,6 @@ | |||
{ | |||
"name": "@hatchet-dev/typescript-sdk", | |||
"version": "1.1.3", | |||
"version": "1.1.5", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
two version bump?
Description
fixes scopes similar to #1502