microsoft / microsoft/sql-server-samples

Format File for Invoke-SqlAssessment of SQL Server Assessment APIs

Offen
#607 4 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Vorherrschende Sprache
PowerShell
Sterne
11.2k
Forks
9.1k
Ø Merge
2 T. 7 Std.
Gemergte PRs (30 T.)
14

Beschreibung

The cmdlet Get-SqlAssessment has a format file associated with it (I can't find it in SQLProvider.Format.ps1xml but it is getting formatted).

image

It's a great help showing only the information that is needed at a glance and saving the extra information in case it'll be used down the pipeline, like Level, Tags, etc.

image

Invoke-SqlAssessment

Invoke-SqlAssessment does not have a format file and I'd argue that it would require one.
The expectation would be that the results of the Invoke-SqlAssessment would be looked at more than people would look at the results of Get-SqlAssessmentItem

Current View

Currently the cmdlet returns :

Default

image

With Select *

image

which are the exact same data.

However, I'd argue that the information required at a glance would be properties : CheckId, CheckName, Message, and (potentially) HelpLink.

Action

Can we include a format file for Invoke-SqlAssessment that returns the properties : CheckId, CheckName, Message, and (potentially) HelpLink?

image

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Beginne mit der Untersuchung der vorhandenen Formatierungsdefinitionen in SQLProvider.Format.ps1xml und des Ausgabeobjekts von Invoke-SqlAssessment. Füge eine Formatdefinition hinzu, die CheckId, CheckName, Message und gegebenenfalls HelpLink anzeigt, und überprüfe anschließend, dass die Standardansicht des Cmdlets diese Eigenschaften darstellt, während die übrigen Daten für die Pipeline-Nutzung erhalten bleiben.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
powershell, sql
Bereich
databases, tooling
Issue-Typ
Feature
Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.