OpenFn / OpenFn/kit

Worker: allow collection credentials to be passed per on on run options

Open
#814 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

DevX
Dominant language
TypeScript
Stars
21
Forks
23
Avg merge
1d 22h
Merged PRs (30d)
17

Description

The worker currently sets "global" defaults for the collection URL and version at startup time (form env vars)

But maybe this is too much, and unnecessary, control from the worker.

So we should enable a Run to include collections_endpoint and collections_version in its options, which should override the worker default.

This lets Lightning decide what collection version is used. It can even decide per-project if it wants to.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the worker startup code that reads the collection URL and version from environment variables, then trace how Run options are represented and consumed. Pass collections_endpoint and collections_version through the Run options so they override worker defaults, and verify that per-project collection settings are respected.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.