Removing Exclude/Include to show in tasks view (parity with SSDT) (#814)

This commit is contained in:
udeeshagautam
2019-05-21 00:01:32 -07:00
committed by GitHub
parent e68b6d62aa
commit 64fa9cc7af
5 changed files with 2 additions and 48 deletions

View File

@@ -2925,22 +2925,6 @@ namespace Microsoft.SqlTools.ServiceLayer
}
}
public static string IncludeNodeTaskName
{
get
{
return Keys.GetString(Keys.IncludeNodeTaskName);
}
}
public static string ExcludeNodeTaskName
{
get
{
return Keys.GetString(Keys.ExcludeNodeTaskName);
}
}
public static string SchemaCompareExcludeIncludeNodeNotFound
{
get
@@ -4283,12 +4267,6 @@ namespace Microsoft.SqlTools.ServiceLayer
public const string PublishChangesTaskName = "PublishChangesTaskName";
public const string IncludeNodeTaskName = "IncludeNodeTaskName";
public const string ExcludeNodeTaskName = "ExcludeNodeTaskName";
public const string SchemaCompareExcludeIncludeNodeNotFound = "SchemaCompareExcludeIncludeNodeNotFound";

View File

@@ -1715,14 +1715,6 @@
<value>Apply schema compare changes</value>
<comment></comment>
</data>
<data name="IncludeNodeTaskName" xml:space="preserve">
<value>Include schema compare node</value>
<comment></comment>
</data>
<data name="ExcludeNodeTaskName" xml:space="preserve">
<value>Exclude schema compare node</value>
<comment></comment>
</data>
<data name="SchemaCompareExcludeIncludeNodeNotFound" xml:space="preserve">
<value>Failed to find the specified change in the model</value>
<comment></comment>

View File

@@ -796,6 +796,4 @@ ExtractInvalidVersion = Invalid version '{0}' passed. Version must be in the for
############################################################################
# Schema Compare
PublishChangesTaskName = Apply schema compare changes
IncludeNodeTaskName = Include schema compare node
ExcludeNodeTaskName = Exclude schema compare node
SchemaCompareExcludeIncludeNodeNotFound = Failed to find the specified change in the model

View File

@@ -1991,16 +1991,6 @@
<target state="new">Apply schema compare changes</target>
<note></note>
</trans-unit>
<trans-unit id="IncludeNodeTaskName">
<source>Include schema compare node</source>
<target state="new">Include schema compare node</target>
<note></note>
</trans-unit>
<trans-unit id="ExcludeNodeTaskName">
<source>Exclude schema compare node</source>
<target state="new">Exclude schema compare node</target>
<note></note>
</trans-unit>
<trans-unit id="SchemaCompareExcludeIncludeNodeNotFound">
<source>Failed to find the specified change in the model</source>
<target state="new">Failed to find the specified change in the model</target>

View File

@@ -183,13 +183,9 @@ namespace Microsoft.SqlTools.ServiceLayer.SchemaCopmare
{
SchemaComparisonResult compareResult = schemaCompareResults.Value[parameters.OperationId];
operation = new SchemaCompareIncludeExcludeNodeOperation(parameters, compareResult);
SqlTask sqlTask = null;
TaskMetadata metadata = new TaskMetadata();
metadata.TaskOperation = operation;
metadata.Name = parameters.IncludeRequest ? SR.IncludeNodeTaskName : SR.ExcludeNodeTaskName;
sqlTask = SqlTaskManagerInstance.CreateAndRun<SqlTask>(metadata);
operation.Execute(parameters.TaskExecutionMode);
await requestContext.SendResult(new ResultStatus()
{
Success = true,