Skip to content

config:import first version - #1137

Open
carolnavarropereira wants to merge 6 commits into
devfrom
feature/PDPDEVTOOL-6541-support-importconfiguration
Open

config:import first version#1137
carolnavarropereira wants to merge 6 commits into
devfrom
feature/PDPDEVTOOL-6541-support-importconfiguration

Conversation

@carolnavarropereira

Copy link
Copy Markdown
Member

No description provided.

@carolnavarropereira carolnavarropereira self-assigned this Aug 17, 2026
@carolnavarropereira
carolnavarropereira requested review from a team and alisyed-19 as code owners August 17, 2026 08:01
@oracle-contributor-agreement oracle-contributor-agreement Bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Aug 17, 2026
Comment thread packages/sdk-core/src/commands/config/import/ImportConfigurationHandler.ts Outdated
Comment on lines +2 to +6
{
"commandName": "config:import",
"supportsInteractiveMode": false,
"generator": "commands/config/import/ImportConfigurationCommand"
},

@TheJorgeBorras TheJorgeBorras Aug 17, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I suggest we maintain command alphabetical order.

Therefore, let's declare config:import under account:setup:ci (line 22)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I don't think it is important, but done it.

Comment on lines +2 to +16
"config:import": {
"name": "config:import",
"description": "Imports the features from an account.",
"isSetupRequired": false,
"forceInteractiveMode": false,
"options": {
"authid": {
"name": "authid",
"description": "References the custom alias you give to a specific account-role combination. Referred to as authentication ID and auth ID in the documentation.",
"type": "SINGLE",
"mandatory": true,
"disableInIntegrationMode": false
}
}
},

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I suggest we maintain command alphabetical order.

Therefore, Let's declare config:import under account:setup (line 34)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Done it.

Comment on lines +106 to +108
await copyDirectoryContents(unzipFolder, targetFolder);

const statusItems = await parseImportObjectStatus(statusXml);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Could we parse and validate status.xml (line 108) before copying the extracted files into targetFolder? If status parsing fails, this currently returns an error after potentially overwriting files under AccountConfiguration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants