Render adaptor functions in a picklist, display labelled text inputs for each argument
@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:

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

Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.