Giter Club home page Giter Club logo

devtools's People

Contributors

aleksa-krolls avatar chaiwa-berian avatar dependabot[bot] avatar juliabuzan avatar ritazagoni avatar stuartc avatar sunny775 avatar taylordowns2000 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

devtools's Issues

Wizard has two output styles

the generated project.yaml file should have two variants:

  1. monolith should have the full text and be a "single-shot" deployment that relies on no outside files.
  2. directory should create a zip with individual artifacts (job1.js, job2.js, myCredential.json) and use the uri schemes to link to those files in the project.yaml

The directory looks like:

/outputDir
  project.yaml
  jobs/
    job1.js
    job2.js
  credentials/
    myCredential.json

Sample job state.configuration.hosturl out of date

Executting

~/devtools/core/bin/core execute \
 -l ~/devtools/adaptors/language-dhis2 \
 -s ./tmp/state.json \
 -o ./tmp/output.json \
 -e ./tmp/expression.js

results in the error - http status code 302 as below:
Screenshot from 2022-08-19 00-17-59

On creating a dhis2 account and trying to access the dashboard at https://play.dhis2.org/2.37.3 ( as provided in sample job state.configuration.hosturl, I was redirected to https://play.dhis2.org/2.37.7.1/dhis-web-dashboard/#/.
When I updated sample job state.configuration.hosturl to
https://play.dhis2.org/2.37.7.1, the job run was successful as seen below:
Screenshot from 2022-08-19 00-28-17

I also had this similar error: Request failed with status code 302 when I tried to run the sample job provided in the job studio for a test project I created on the platform:

Job Studio - OpenFn

Resource naming enhancements

  1. remove spaces automatically, tell user we're doing so.
  2. make auto-names work for second and third name, etc. (currently the function is called during form spec generation)

Install script not installing language-http

In ./install.sh, I noticed line 31 is doing exactly the same thing being done by line 27 ( re-installing language-common rather than installing language-http ). As a result, language-http isn't installed resulting in missing dependecies error as seen in the image below:
Screenshot from 2022-08-18 12-50-20

Validate if jobs linked to triggers exist in `generate-project.js`

Once the user confirms they don't want to add any more jobs, let's check if job names added as success or failure triggers have been added as jobs.

If not, let's prompt the user to add them, one by one if multiple are missing:
"Wait, you haven't added a job for ${trigger}. Please add it now."
And throw the user to the job form prompt.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.