OpenFn / OpenFn/lightning

Render adaptor functions in a picklist, display labelled text inputs for each argument

Open
#158 1 comment 0 reactions 1 assignee View on GitHub

@stuartc is already working on this.

Since Jun 21, 2022.

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

Description

Via changes to both https://github.com/OpenFn/language-common/tree/2.0.0-pre and Lightning, draw a picklist and populate its options with all executable operations from a language package—i.e., those that return a function which takes state and returns a promise.

In common, start with fn() and http.get(), but keep an eye out for more typical use cases like create() in language-dhis2 or upsert() in language-salesforce.

For a job with a single operation, if the selected operation is "create" and it takes resourceType and attributes arguments (along with state) the UI should look like this:

Image

For a job with multiple operations, it should gracefully degrade to show a text box:

Image

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.