Skip to content

Commit

Permalink
DYN-6135: Use new feature flag for ML data ingestion pipeline (Dynamo…
Browse files Browse the repository at this point in the history
  • Loading branch information
reddyashish authored May 29, 2024
1 parent 1b3611d commit 842e0a4
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/DynamoCoreWpf/ViewModels/Core/DynamoViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
using System.IO;
using System.Linq;
using System.Reflection;
using System.Runtime.Loader;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
Expand Down Expand Up @@ -210,11 +209,11 @@ public WorkspaceModel CurrentSpace
/// <summary>
/// Controls if the the ML data ingestion pipeline is beta from feature flag
/// </summary>
internal bool IsMLDataIngestionPipelineinBeta
internal bool IsDNADataIngestionPipelineinBeta
{
get
{
return DynamoModel.FeatureFlags?.CheckFeatureFlag("IsMLDataIngestionPipelineinBeta", true) ?? true;
return DynamoModel.FeatureFlags?.CheckFeatureFlag("IsDNADataIngestionPipelineinBeta", true) ?? true;
}
}

Expand Down Expand Up @@ -3005,7 +3004,7 @@ private void CloseHomeWorkspace(object parameter)
// Upon closing a workspace, validate if the workspace is valid to be sent to the ML datapipeline and then send it.
if (!DynamoModel.IsTestMode && !HomeSpace.HasUnsavedChanges && (currentWorkspaceViewModel?.IsHomeSpace ?? true) && HomeSpace.HasRunWithoutCrash)
{
if (!IsMLDataIngestionPipelineinBeta && Model.CurrentWorkspace.IsValidForFDX && currentWorkspaceViewModel.Checksum != string.Empty)
if (!IsDNADataIngestionPipelineinBeta && Model.CurrentWorkspace.IsValidForFDX && currentWorkspaceViewModel.Checksum != string.Empty)
{
if (HasDifferentialCheckSum())
{
Expand Down

0 comments on commit 842e0a4

Please sign in to comment.