chore: replace AuditableGroup label in docs (#5894)

This commit is contained in:
Kira Pilot
2023-01-27 13:36:00 -05:00
committed by GitHub
parent e0d48e7d79
commit 8a5760a2fe
2 changed files with 15 additions and 9 deletions
+6
View File
@@ -124,6 +124,12 @@ func updateAuditDoc(doc []byte, auditableResourcesMap AuditableResourcesMap) ([]
}
auditActionsString := strings.Join(auditActions, ", ")
// AuditableGroup is really a combination of Group and GroupMember resources
// but we use the label 'Group' in our docs to avoid confusion.
if resourceName == "AuditableGroup" {
resourceName = "Group"
}
buffer.WriteString("|" + resourceName + "<br><i>" + auditActionsString + "</i>|<table><thead><tr><th>Field</th><th>Tracked</th></tr></thead><tbody>")
// We must sort the field names to ensure sub-table ordering