8000 fix: filter scope for bulk ops by grutt · Pull Request #1503 · hatchet-dev/hatchet · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

Merged
merged 3 commits into from
Apr 7, 2025
Merged

fix: filter scope for bulk ops #1503

merged 3 commits into from
Apr 7, 2025

Conversation

grutt
Copy link
Contributor
@grutt grutt commented Apr 7, 2025

Description

fixes scopes similar to #1502

@grutt grutt requested a review from abelanger5 April 7, 2025 13:35
Copy link
vercel bot commented Apr 7, 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 Apr 7, 2025 1:53pm
hatchet-v0-docs 🛑 Canceled (Inspect) Apr 7, 2025 1:53pm

@grutt grutt changed the title fix: scope fix: filter scope for bulk ops Apr 7, 2025
@grutt grutt requested a review from Copilot April 7, 2025 13:36
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.

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 {

@grutt grutt requested a review from Copilot April 7, 2025 13:47
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.

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",
Copy link
Contributor

Choose a reason for hiding this comment

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

two version bump?

@grutt grutt merged commit dc757a3 into main Apr 7, 2025
38 of 39 checks passed
@grutt grutt deleted the fix--cancel-replay-filtesr branch April 7, 2025 22:48
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