Skip to content

Removed manual worker path mapping from the template - #60

Merged
gasperzgonec merged 4 commits into
mainfrom
new_get_worker_path
Dec 17, 2025
Merged

Removed manual worker path mapping from the template#60
gasperzgonec merged 4 commits into
mainfrom
new_get_worker_path

Conversation

@gasperzgonec

Copy link
Copy Markdown
Contributor

Description

I updated the template to use the new "internal" SDK getWorkerPath, by simply removing the manual mapping and adding the argument to the spawn function call.

Connected Issues

Checklist

  • Tests added/updated and ran with npm run test OR no tests needed.
  • Code formatted and checked with npm run lint.
  • Added "How to test" section to the description OR this section is not needed.

Copilot AI review requested due to automatic review settings December 16, 2025 07:56
@gasperzgonec gasperzgonec changed the title Added getWorkerPath changes to the template Removed manual worker path mapping from the template Dec 16, 2025

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 refactors the extraction function to use the new getWorkerPath functionality from the @devrev/ts-adaas SDK (v1.13.0). The change simplifies worker path resolution by replacing a manual event type switch statement with the SDK's internal worker path handling.

Key Changes:

  • Removed manual worker path mapping logic (getWorkerPerExtractionPhase function)
  • Updated spawn function to use baseWorkerPath parameter instead of workerPath
  • Upgraded @devrev/ts-adaas dependency from 1.12.2 to 1.13.0

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.

File Description
code/src/functions/extraction/index.ts Removed manual worker path resolution function and updated spawn call to use baseWorkerPath
code/package.json Upgraded @devrev/ts-adaas dependency to version 1.13.0
Files not reviewed (1)
  • code/package-lock.json: Language not supported

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

Comment thread code/src/functions/extraction/index.ts
radovanjorgic
radovanjorgic previously approved these changes Dec 17, 2025

@radovanjorgic radovanjorgic left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Bump SDK version, otherwise LG.

Comment thread code/package.json Outdated

@radovanjorgic radovanjorgic left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@gasperzgonec
gasperzgonec merged commit 7bae5fd into main Dec 17, 2025
2 checks passed
@gasperzgonec
gasperzgonec deleted the new_get_worker_path branch December 17, 2025 07:41
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