mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-16 10:58:30 -05:00
added rule id (#1190)
This commit is contained in:
@@ -22,6 +22,11 @@ namespace Microsoft.SqlTools.ServiceLayer.Migration.Contracts
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public string RulesetName { get; set; }
|
public string RulesetName { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or sets assessment ruleset name
|
||||||
|
/// </summary>
|
||||||
|
public string RuleId { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets assessed target's type.
|
/// Gets or sets assessed target's type.
|
||||||
/// Supported values: 1 - server, 2 - database.
|
/// Supported values: 1 - server, 2 - database.
|
||||||
|
|||||||
@@ -194,7 +194,8 @@ namespace Microsoft.SqlTools.ServiceLayer.Migration
|
|||||||
|
|
||||||
var targetName = !string.IsNullOrWhiteSpace(migrationResult.DatabaseName)
|
var targetName = !string.IsNullOrWhiteSpace(migrationResult.DatabaseName)
|
||||||
? $"{target.ServerName}:{migrationResult.DatabaseName}"
|
? $"{target.ServerName}:{migrationResult.DatabaseName}"
|
||||||
: target.Name;
|
: target.Name;
|
||||||
|
var ruleId = migrationResult.FeatureId.ToString();
|
||||||
|
|
||||||
var item = new MigrationAssessmentInfo()
|
var item = new MigrationAssessmentInfo()
|
||||||
{
|
{
|
||||||
@@ -210,6 +211,7 @@ namespace Microsoft.SqlTools.ServiceLayer.Migration
|
|||||||
TargetType = target.Type,
|
TargetType = target.Type,
|
||||||
RulesetName = Engine.Configuration.DefaultRuleset.Name,
|
RulesetName = Engine.Configuration.DefaultRuleset.Name,
|
||||||
RulesetVersion = Engine.Configuration.DefaultRuleset.Version.ToString(),
|
RulesetVersion = Engine.Configuration.DefaultRuleset.Version.ToString(),
|
||||||
|
RuleId = ruleId,
|
||||||
Message = r.Message,
|
Message = r.Message,
|
||||||
AppliesToMigrationTargetPlatform = migrationResult.AppliesToMigrationTargetPlatform.ToString(),
|
AppliesToMigrationTargetPlatform = migrationResult.AppliesToMigrationTargetPlatform.ToString(),
|
||||||
IssueCategory = "Category_Unknown"
|
IssueCategory = "Category_Unknown"
|
||||||
|
|||||||
Reference in New Issue
Block a user