Skip to content

feat: Add coonfig-manager push services command#86

Open
dallinjsevy wants to merge 4 commits into
mainfrom
feature/config-manager-push-services
Open

feat: Add coonfig-manager push services command#86
dallinjsevy wants to merge 4 commits into
mainfrom
feature/config-manager-push-services

Conversation

@dallinjsevy

Copy link
Copy Markdown

No description provided.

@dallinjsevy
dallinjsevy requested review from akynaston and phalestrivir and removed request for akynaston March 24, 2026 22:00
@dallinjsevy
dallinjsevy force-pushed the feature/config-manager-push-services branch from 816bcf7 to ba61d3c Compare March 25, 2026 15:58
@phalestrivir
phalestrivir force-pushed the feature/config-manager-push-services branch 2 times, most recently from d433546 to 1953746 Compare April 6, 2026 19:45

@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.

I rebased, and also added some test configuration. One thing I noticed is that I don't think you are importing the next descendents correctly, so I added a few descendent configurations to the social provider service in the root realm that you can use for testing the descendents (the id-repositories service also has one too)

Comment thread src/configManagerOps/FrConfigServiceOps.ts Outdated
Comment thread src/configManagerOps/FrConfigServiceOps.ts
Comment thread test/e2e/config-manager-push-password-policy.e2e.test.js
Comment thread test/e2e/config-manager-push-services.e2e.test.js
@dallinjsevy
dallinjsevy force-pushed the feature/config-manager-push-services branch 2 times, most recently from 1e011e2 to 36566cf Compare April 14, 2026 15:16
@dallinjsevy
dallinjsevy force-pushed the feature/config-manager-push-services branch from 36566cf to f1341f1 Compare May 28, 2026 15:53
Comment thread src/cli/config-manager/config-manager-push/config-manager-push-services.ts Outdated
Comment thread src/configManagerOps/FrConfigServiceOps.ts Outdated
let realms: string[] = [];

if (realm === '__default__realm__' || !realm) {
const realmsDir = getFilePath('realms/');

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

We have a problem here. When exporting with Forgeops, the root realm doesn't have a directory, it's just called services, so on import it will think services is a realm. We should have it be saved to a directory called root, so update the pull command to handle that, and then on import if you see a directory named root import to the / realm since root is not technically the name of it.

Comment thread src/configManagerOps/FrConfigServiceOps.ts Outdated
Comment thread src/configManagerOps/FrConfigServiceOps.ts Outdated
Comment thread src/configManagerOps/FrConfigServiceOps.ts Outdated
Comment thread test/e2e/config-manager-push-services.e2e.test.js

@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.

For your tests for services, could you use the services from: https://git.trivir.com/projects/TRIVIR/repos/frodo-forgeops-test-config/browse

I added several several services in the root realm, and there are some in the other realms as well, which would be great for testing the root realm as well as the others. You will need to delete the old test files in this repo and replace them with the export from forgeops after you import the services from https://git.trivir.com/projects/TRIVIR/repos/frodo-forgeops-test-config/browse

Comment thread src/cli/config-manager/config-manager-push/config-manager-push-services.ts Outdated
Comment thread src/cli/config-manager/config-manager-push/config-manager-push-services.ts Outdated
Comment thread src/cli/config-manager/config-manager-push/config-manager-push-services.ts Outdated
Comment thread src/cli/config-manager/config-manager-push/config-manager-push-services.ts Outdated
Comment thread src/configManagerOps/FrConfigServiceOps.ts Outdated
Comment thread test/e2e/config-manager-push-services.e2e.test.js
Comment thread test/e2e/config-manager-push-services.e2e.test.js Outdated
Comment thread test/e2e/config-manager-push-services.e2e.test.js Outdated
Comment thread test/e2e/config-manager-push-services.e2e.test.js Outdated
@dallinjsevy
dallinjsevy force-pushed the feature/config-manager-push-services branch from b620c53 to ec1d311 Compare July 21, 2026 17:50

@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.

The main change you still need to make is to add test configuration for root realm since you are only testing alpha/bravo at the moment. As I mentioned in my last review, you should use the test data I have created in https://git.trivir.com/projects/TRIVIR/repos/frodo-forgeops-test-config/browse. Import it into your forgeops and then re-export it using frodo config-manager and use those for your test configuration under test/e2e/exports/fr-config-manager/forgeops/realms/root/services, test/e2e/exports/fr-config-manager/forgeops/realms/alpha/services, and test/e2e/exports/fr-config-manager/forgeops/realms/bravo/services

Comment thread src/cli/config-manager/config-manager-push/config-manager-push-services.ts Outdated
Comment thread test/e2e/config-manager-push-services.e2e.test.js Outdated
Comment thread test/e2e/config-manager-push-services.e2e.test.js Outdated
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