File path support for jobs in project import/export
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 21
- Forks
- 23
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 17
Description
Description
When using a file path for job body in project.yaml As instructed here in versions portability proposal v4, The job editor on lightning fails to render the actual job code, instead it displays the literal file path.
Steps to Reproduce
- Clone OpenFn/demo-openhie project locally
- Open
project.ymland editTransform-data-to-FHIR-standardbody path tofile://./jobs/expression.js - Save and commit your changes
- Login on
demo.openfn.orgas demo usersdemo@openfn.org - On dashboard open
OpenHIE Workflow - Click on
Transform-data-to-FHIR-standardstep to open the job editor - Observe that the editor displays the file path instead of the job code
Expected Behavior
The Lightning Job Editor should accurately interpret the specified file path in the project.yaml file, rendering and displaying the corresponding job code.
Screenshots
https://github.com/OpenFn/Lightning/assets/6592749/02badd41-2436-46da-b30b-575b6d4511dc
Additional information
- We need to know where jobs are kept so that the export builds the project.yaml properly
- We need to know if any changes needs to happen on https://github.com/OpenFn/kit/tree/main/packages/deploy
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.
Research direction
Start by tracing project import/export handling in the kit repository, especially the packages/deploy area mentioned in the issue, and compare it with the project.yaml file path example and jobs/expression.js fixture. Verify how the file:// path reaches the job editor. Done means the editor renders the referenced job code and project export writes the appropriate path.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100