Skip to content

Commit eaeef97

Browse files
yoonaohjohmsft
andauthored
[DC] Remove environment from Node and Python FA workflow files (#7921)
Co-authored-by: Yoona Oh <[email protected]>
1 parent ec99afe commit eaeef97

File tree

5 files changed

+4
-8
lines changed

5 files changed

+4
-8
lines changed

client-react/src/pages/app/deployment-center/code/DeploymentCenterCodeSettings.tsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,13 @@ const DeploymentCenterCodeSettings: React.FC<DeploymentCenterFieldProps<Deployme
7878
const [isVstsSetup, setIsVstsSetup] = useState(false);
7979
const [isTfsOrVsoSetup, setIsTfsOrVsoSetup] = useState(false);
8080
const [isUsingExistingOrAvailableWorkflowConfig, setIsUsingExistingOrAvailableWorkflowConfig] = useState(false);
81-
const [isRemoveEnvEnabled, setIsRemoveEnvEnabled] = useState(false);
81+
const [isRemoveEnvWebAppEnabled, setIsRemoveEnvWebAppEnabled] = useState(false);
8282
useEffect(() => {
8383
let isSubscribed = true;
8484

85-
portalContext?.getBooleanFlight(ExperimentationConstants.FlightVariable.removeDeployEnvironment).then(hasFlightEnabled => {
85+
portalContext?.getBooleanFlight(ExperimentationConstants.FlightVariable.removeDeployEnvironmentWebApp).then(hasFlightEnabled => {
8686
if (isSubscribed) {
87-
setIsRemoveEnvEnabled(hasFlightEnabled);
87+
setIsRemoveEnvWebAppEnabled(hasFlightEnabled);
8888
}
8989
});
9090

@@ -169,7 +169,7 @@ const DeploymentCenterCodeSettings: React.FC<DeploymentCenterFieldProps<Deployme
169169
variables['javaContainer'] = formProps.values.javaContainer;
170170
}
171171

172-
if (isRemoveEnvEnabled) {
172+
if (isRemoveEnvWebAppEnabled) {
173173
variables['isRemoveEnvEnabled'] = true;
174174
}
175175

client-react/src/utils/CommonConstants.ts

-1
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,6 @@ export class ExperimentationConstants {
413413
};
414414

415415
public static FlightVariable = {
416-
removeDeployEnvironment: 'remove-deploy-environment',
417416
removeDeployEnvironmentWebApp: 'remove-deploy-environment-webapp',
418417
enableSidecarMigration: 'enable-sidecar-migration',
419418
showDCReactView: 'show-dc-reactview',

server/src/workflows/2022-10-01/function-app-configs/node-linux.config.yml

-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ jobs:
4949
deploy:
5050
runs-on: ubuntu-latest
5151
needs: build
52-
__environment__
5352
__permissions__
5453
steps:
5554
- name: Download artifact from build job

server/src/workflows/2022-10-01/function-app-configs/node-windows.config.yml

-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ jobs:
4646
deploy:
4747
runs-on: windows-latest
4848
needs: build
49-
__environment__
5049
__permissions__
5150
steps:
5251
- name: Download artifact from build job

server/src/workflows/2022-10-01/function-app-configs/python-linux.config.yml

-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ jobs:
5353
deploy:
5454
runs-on: ubuntu-latest
5555
needs: build
56-
__environment__
5756
__permissions__
5857
steps:
5958
- name: Download artifact from build job

0 commit comments

Comments
 (0)