Skip to content

Commit 2132874

Browse files
authored
Hiding ECS Execute Command, deprecate ECS Cloud Debug experiment (#2994)
* Hiding ECS Execute Command and ECS Cloud Debug items from experiments menu * Changed from removed to deprecated * Ensuring that Disable Cloud Debug action remains visible even if the experiment is deactivated
1 parent 6c01505 commit 2132874

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

jetbrains-core/src/software/aws/toolkits/jetbrains/services/clouddebug/actions/DeinstrumentResourceAction.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,8 @@ import com.intellij.execution.configurations.GeneralCommandLine
77
import com.intellij.openapi.actionSystem.AnActionEvent
88
import com.intellij.openapi.actionSystem.PlatformDataKeys
99
import com.intellij.openapi.project.Project
10-
import software.aws.toolkits.jetbrains.core.experiments.isEnabled
1110
import software.aws.toolkits.jetbrains.core.explorer.actions.SingleResourceNodeAction
1211
import software.aws.toolkits.jetbrains.services.clouddebug.DebuggerSupport
13-
import software.aws.toolkits.jetbrains.services.ecs.EcsCloudDebugExperiment
1412
import software.aws.toolkits.jetbrains.services.ecs.EcsServiceNode
1513
import software.aws.toolkits.jetbrains.services.ecs.EcsUtils
1614
import software.aws.toolkits.resources.message
@@ -34,7 +32,7 @@ class DeinstrumentResourceFromExplorerAction : SingleResourceNodeAction<EcsServi
3432

3533
override fun update(selected: EcsServiceNode, e: AnActionEvent) {
3634
// If there are no supported debuggers, showing this will just be confusing
37-
e.presentation.isVisible = if (!EcsCloudDebugExperiment.isEnabled() || DebuggerSupport.debuggers().isEmpty()) {
35+
e.presentation.isVisible = if (DebuggerSupport.debuggers().isEmpty()) {
3836
false
3937
} else {
4038
EcsUtils.isInstrumented(selected.resourceArn())

jetbrains-core/src/software/aws/toolkits/jetbrains/services/ecs/EcsExperiments.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,18 @@ package software.aws.toolkits.jetbrains.services.ecs
55

66
import software.aws.toolkits.jetbrains.core.experiments.ToolkitExperiment
77
import software.aws.toolkits.resources.message
8+
import java.util.Date
89

910
object EcsExecExperiment : ToolkitExperiment(
1011
"ecsExec",
1112
{ message("ecs.execute_command.experiment.title") },
1213
{ message("ecs.execute_command.experiment.description") },
13-
default = true
14+
default = true,
15+
hidden = true
1416
)
1517

1618
object EcsCloudDebugExperiment : ToolkitExperiment(
1719
"ecsCloudDebug",
1820
{ message("cloud_debug.experiment.title") },
19-
{ message("cloud_debug.experiment.description") }
21+
{ message("cloud_debug.experiment.description", Date()) }
2022
)

resources/resources/software/aws/toolkits/resources/MessagesBundle.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,9 @@ cloud_debug.execution.logs.title=Logs
174174
cloud_debug.execution.running=running...
175175
cloud_debug.execution.success=completed successfully
176176
cloud_debug.execution.title=Remote Debugging
177-
cloud_debug.experiment.description=Features and actions associated with instrumenting an ECS Service to enable fast artifact syncing and step-through debugging.
178-
cloud_debug.experiment.title=ECS Cloud Debugging
179-
cloud_debug.instrument=Enable Cloud Debugging (Beta)
177+
cloud_debug.experiment.description=(deprecated: scheduled for removal 2022-06-30, replaced by ECS Execute Command) Enable fast artifact syncing and step-through debugging an ECS Service.
178+
cloud_debug.experiment.title=ECS Cloud Debugging (deprecated)
179+
cloud_debug.instrument=Enable Cloud Debugging (deprecated)
180180
cloud_debug.instrument.production_warning.checkbox_label=I confirm {0} is not a production service and wish to continue
181181
cloud_debug.instrument.production_warning.text=<html><strong>Do not use Cloud Debugging in a production environment.</strong><p>Cloud Debugging will change the state of resources in your AWS account, including but not limited to stopping the service.<p>Altering the state of resources while Cloud Debugging is enabled can lead to unpredictable results.</html>
182182
cloud_debug.instrument.production_warning.title=Warning!

0 commit comments

Comments
 (0)