GithubHelp home page GithubHelp logo

Comments (5)

mrgrain avatar mrgrain commented on June 14, 2024

I'm not sure I remember the exact situation. If you can help me recall what issues this is attempting to resolve and how, I can be of more assistance to you.

from projen.

dkershner6 avatar dkershner6 commented on June 14, 2024

Basically, workflow jobs get pretty readonly at the moment, fairly closed to modification. You recommended they should become a class to alleviate this at the same time as you recommended that TaskWorkflowJob become a class (which that class now extends the new one).

As an outside user making constructs, adding an env variable to a job looks like this:

const job: Job;
const updatedJob = {
...job,
env: {
...job.env,
newEnv: newValue
}}
workflow.updateJob("jobName", updatedJob);

I propose:

const job: Job;
job.addEnv("newEnv", newValue);

The perfect naming and way to achieve this escapes me, but I think the idea is quite sound and well paved in other parts of projen.

from projen.

dkershner6 avatar dkershner6 commented on June 14, 2024

Ping @mrgrain for feedback because I must always be bothering you with at least 1 thing.

from projen.

mrgrain avatar mrgrain commented on June 14, 2024

Thanks @dkershner6 I'm happy to move ahead with this. It will be relatively low priority on my end, so I'd also recommend you to look for experienced peers to provide reviews to make the cycles quicker.

And please make sure you write some docs around this as part of the PR.

from projen.

dkershner6 avatar dkershner6 commented on June 14, 2024

Thanks @dkershner6 I'm happy to move ahead with this. It will be relatively low priority on my end, so I'd also recommend you to look for experienced peers to provide reviews to make the cycles quicker.

And please make sure you write some docs around this as part of the PR.

Appreciate the feedback, Momo. I will think about this some more versus adding more preSteps and postSteps. Really, I just don't like violating readonly access, but that is our current course of action, which works as well.

from projen.

Related Issues (20)

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.