OpenFn / OpenFn/lightning

Adaptors should not be installed as latest

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

Nobody has claimed this yet.

Dominant language
Elixir
Stars
296
Forks
86
Avg merge
1d 13h
Merged PRs (30d)
50

Description

Details

Currently when an adaptor is auto-installed (i.e. was missing) and the latest is requested,
it gets installed @openfn/language-foo_latest which poses a problem for long running instances where latest is now fixed to the first time it was found.

We need to find a way to use the AdaptorRegistry to map the list of known available adaptors to the adaptor being requested. So if @latest was 1.2.3 and is now 1.2.4 the next time the adaptor is requested the 1.2.3 version will no longer match and the up to newer version.

Implementation notes

This will require some refactoring namely:

  • Adaptor registry will need to periodically update itself.
  • The adaptor service should query the registry to validate it's request (i.e. ...@latest) and the resolved version.
  • Once it's version is resolved look for or install that specific version.

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 AdaptorRegistry and adaptor service entry points, then inspect how missing adaptors and @latest requests are currently resolved and installed. Done means the registry refreshes periodically, validates the request, resolves @latest to a specific version, and installs or reuses that version.

Written by the indexing model from the issue text.

Assessment

Tech stack
elixir
Domain
backend
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.