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