Skip to content

Conversation

@stephen-carter-at-sf
Copy link
Contributor

This work will allow us to then update our cli client making it far easier and more robust to detect default values, types, etc.

// Every engine config should have an overview, so if missing, then we add in a generic one
if (!engineConfigDescription.overview) {
engineConfigDescription.overview = getMessage('GenericEngineConfigOverview', engineName.toUpperCase());
function normalizeEngineConfigDescription(engineConfigDescription: engApi.ConfigDescription, engineName: string,
Copy link
Contributor

Choose a reason for hiding this comment

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

Tiny nitpick: Since this method returns a new object now instead of modifying the provided one, could we rename it toNormalized... instead of normalize...?

Copy link
Contributor Author

@stephen-carter-at-sf stephen-carter-at-sf Dec 3, 2024

Choose a reason for hiding this comment

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

How about fromEngineConfigDescription or toConfigDescription instead since we are now converting an engApi.ConfigDescription to a ConfigDescription?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Pushed a commit to call this toConfigDescription and added in a comment to make it clear.

@stephen-carter-at-sf stephen-carter-at-sf merged commit 461d97b into dev Dec 3, 2024
5 checks passed
@stephen-carter-at-sf stephen-carter-at-sf deleted the sc/W-17293079 branch December 4, 2024 16:24
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.

3 participants