Skip to content

feat: add config-manager push iga-workflows command#103

Open
dallinjsevy wants to merge 7 commits into
feature/config-manager-pull-iga-workflowsfrom
feature/config-manager-push-iga-workflows
Open

feat: add config-manager push iga-workflows command#103
dallinjsevy wants to merge 7 commits into
feature/config-manager-pull-iga-workflowsfrom
feature/config-manager-push-iga-workflows

Conversation

@dallinjsevy

Copy link
Copy Markdown

No description provided.

Comment thread src/cli/config-manager/config-manager-push/config-manager-push-iga-workflows.ts Outdated
Comment thread src/cli/config-manager/config-manager-push/config-manager-push-iga-workflows.ts Outdated
Comment thread src/cli/config-manager/config-manager-push/config-manager-push-iga-workflows.ts Outdated
Comment thread src/cli/config-manager/config-manager-push/config-manager-push-iga-workflows.ts Outdated
Comment thread src/cli/config-manager/config-manager-push/config-manager-push-iga-workflows.ts Outdated
Comment thread src/cli/config-manager/config-manager-push/config-manager-push-iga-workflows.ts Outdated

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For test configurations, I would update these workflows to have one of each possible node in them so we can test to verify that importing works for all nodes. Currently your test workflows only have the wait node.

Comment on lines +72 to +73
const { stdout } = await exec(CMD, igaEnv);
expect(removeAnsiEscapeCodes(stdout)).toMatchSnapshot();

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would change these tests to use the await testSuccess(CMD, igaEnv); helper function I created to test success, as it helps simplify the tests some more.

@phalestrivir

phalestrivir commented Jul 17, 2026

Copy link
Copy Markdown

Make sure to rebase with main once my PR here gets merged in: rockcarver#631 (or specifically rebase your pull branch with main, and then rebase this branch with your pull branch)

@dallinjsevy
dallinjsevy force-pushed the feature/config-manager-pull-iga-workflows branch from d3b20b1 to cb3a0cf Compare July 21, 2026 16:54
@dallinjsevy
dallinjsevy force-pushed the feature/config-manager-push-iga-workflows branch from dd5b698 to c7ab435 Compare July 21, 2026 20:25
@dallinjsevy
dallinjsevy force-pushed the feature/config-manager-pull-iga-workflows branch 2 times, most recently from d7c9b12 to 6facd74 Compare July 21, 2026 20:43
@dallinjsevy
dallinjsevy force-pushed the feature/config-manager-pull-iga-workflows branch from 6facd74 to fd8512e Compare July 22, 2026 14:57
@dallinjsevy
dallinjsevy force-pushed the feature/config-manager-push-iga-workflows branch from c7ab435 to c776688 Compare July 22, 2026 15:01
Comment thread src/cli/config-manager/config-manager-push/config-manager-push-iga-workflows.ts Outdated
Comment thread src/cli/config-manager/config-manager-push/config-manager-push-iga-workflows.ts Outdated
Comment thread src/cli/config-manager/config-manager-push/config-manager-push-iga-workflows.ts Outdated
Comment thread src/configManagerOps/FrConfigIgaWorkflowsOps.ts Outdated
Comment thread src/configManagerOps/FrConfigIgaWorkflowsOps.ts Outdated
Comment thread src/configManagerOps/FrConfigIgaWorkflowsOps.ts
Comment thread test/e2e/exports/fr-config-manager/cloud/iga/workflows/test/test.json Outdated
Comment thread test/client_cli/en/__snapshots__/config-manager-push-iga-workflows.test.js.snap Outdated
Comment thread test/e2e/config-manager-push-iga-workflows.e2e.test.js Outdated
Comment thread src/configManagerOps/FrConfigIgaWorkflowsOps.ts Outdated
@dallinjsevy
dallinjsevy force-pushed the feature/config-manager-push-iga-workflows branch from c776688 to da49a7e Compare July 22, 2026 21:59
@dallinjsevy
dallinjsevy force-pushed the feature/config-manager-pull-iga-workflows branch 2 times, most recently from bfb2276 to fc013a0 Compare July 22, 2026 22:05
@dallinjsevy
dallinjsevy force-pushed the feature/config-manager-push-iga-workflows branch from da49a7e to 64771cc Compare July 22, 2026 22:10

@phalestrivir phalestrivir left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two more things, and then we should be good to go. After making the changes, running lint, and making sure tests pass, squash your commits, and rebase with main before making PR against Rockcarver. I would probably wait until the pull-iga workflows is merged into main before you rebase and create the PR against Rockcarver

await testSuccess(CMD, igaEnv);
});
test(`"frodo config-manager push iga-workflows --draft -D ${allDirectory} ": should import the iga workflows into cloud tenant as draft workflows"`, async () => {
const CMD = `frodo config-manager push iga-workflows -D ${allDirectory} `;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test is missing --draft from the CMD, so you are actually just running the first test here instead of the actual test.

if (name) {
const workflowDir = `${workflowsPath}/${name}`;
if (!fs.existsSync(workflowDir)) {
throw new verboseMessage(`Requested workflow ${name} not found`);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When I was testing this I found this bug. You can't throw this, instead you should print an error first, and then return false:

printMessage(`Requested workflow ${name} not found`, 'error');
return false;

@vscheuber
vscheuber force-pushed the feature/config-manager-pull-iga-workflows branch from bed5325 to 85fabc8 Compare July 24, 2026 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants