Skip to content

Verify feature flag and enable prior to deployment#3653

Merged
nturinski merged 2 commits intomainfrom
nat/validateEnableWorkerIndexing
Apr 21, 2023
Merged

Verify feature flag and enable prior to deployment#3653
nturinski merged 2 commits intomainfrom
nat/validateEnableWorkerIndexing

Conversation

@nturinski
Copy link
Copy Markdown
Member

Fixes #3559

@nturinski nturinski requested a review from a team as a code owner April 21, 2023 18:00
remoteProperties[azureWebJobsFeatureFlags] = featureFlagArray.join(',');
}

context.telemetry.properties.addedRunFromPackage = String(shouldAddSetting);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Either remove this line or change addedRunFromPackage to something more accurate - depending if you want to track this in telemetry

if (node.site.isLinux) {
const remoteBuildSettingsChanged = verifyLinuxRemoteBuildSettings(context, appSettings.properties, bools);
updateAppSettings ||= remoteBuildSettingsChanged;
} else if (isNodeV4Plus(options)) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This also applies when isPythonV2Plus

if (node.site.isLinux) {
const remoteBuildSettingsChanged = verifyLinuxRemoteBuildSettings(context, appSettings.properties, bools);
updateAppSettings ||= remoteBuildSettingsChanged;
} else if (isNodeV4Plus(options)) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This should be its own if case instead of in an else if. The new Node.js programming model can be run on both windows and linux

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.

Ah doh, obviously.

@nturinski
Copy link
Copy Markdown
Member Author

getting code reviewed by the boss

@nturinski nturinski merged commit 4bf7d25 into main Apr 21, 2023
@nturinski nturinski deleted the nat/validateEnableWorkerIndexing branch April 21, 2023 19:53
@microsoft microsoft locked and limited conversation to collaborators Jun 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Node model v4: AppSetting validation

2 participants