Open christad92 opened 4 months ago
Instead of putting a path directly in the body
key (which would also be a string value), we use this pattern instead:
job-xyz:
...
body:
path: ../my-job.js
That way we can tell that the body is not available directly under the key much more easily, and leaves room for other features.
If the body
is an object, and doesn't have a path
key then we throw an error.
Note that this path is relative to the project.yaml, and not the current working directory.
The link to the issue GitHub sync button available, but subscription doesn't allow github sync
issue above is broken. I am interested in the issue, but cannot find it when searching.
I've found a related bug: When the GitHub sync button is available without a subscription, while it does have an icon on hover that tells the user it they should not click it (circle with slash), it is still clickable and allows the user to go to GitHub to verify OAuth, which links back to the OpenFn instance on completion and then loads forever... However, if you refresh the page at that point, you get a page where GitHub sync says it's not enabled in the top banner, but you've got the options to select a GitHub installation - fairly confusing state too get a user into.
Noting that after #2707 and #2462 @midigofrank and @stuartc will reasses this epic to determine if/what still needs to be done.
Appetite: 5 days
[x] Make "Initiate Github Sync" take the latest snapshots at the time of initiation
[x] Support paths to job files in project.yaml files For users who work locally or for certain projects in their GitHub repos, users want to keep their jobs in different .js files and then have the files referenced in their project.yaml files. When OpenFn deploy is called, we need to make sure we get the content of the files and add them to the right section on the project.yaml. We should advise users to create a job.js file for every job such that for a workflow with 5 steps, we will need 5 jobs.js files. that are referenced in the .yaml file.
cli deploy
and detecting a file path in the yaml, you merge in the real content before sending it to the lightning servercli pull
you get a new copy of theproject.yaml
and theprojectState.json
and compare it to the local copy of theproject.yaml
... you notice that the localproject.yaml
has file paths, and instead of committing the entirely newproject.yaml
to GitHub, you interpret the paths and write to those files.See this example below, currently a job looks like this:
GitHub Error: {message}
. This way the user can try to search for solutions on their own or know what to communicate via the community.Bugs to be fixed:
Nice to haves: The following issues are nice to have and should not be considered a priority for this building cycle
Other consideration based on thunderbolt and plan limits.