diff --git a/pkg/docgen/generator_test.go b/pkg/docgen/generator_test.go index e4a2e7213..154136114 100644 --- a/pkg/docgen/generator_test.go +++ b/pkg/docgen/generator_test.go @@ -42,7 +42,6 @@ func TestRenderHTML(t *testing.T) { Version: 1, Classification: ClassificationPublic, Approver: "John Doe", - Description: "Test document description", PublishedAt: &now, Signatures: []SignatureData{ { @@ -68,10 +67,9 @@ func TestRenderHTML(t *testing.T) { { name: "document with HTML characters that need escaping", data: DocumentData{ - Title: "Test & Doe", - Description: "Description with & symbols and ", + Title: "Test & Doe", Signatures: []SignatureData{ { SignedBy: "Alice & ", @@ -255,9 +253,8 @@ func TestClassificationConstants(t *testing.T) { func TestHTMLEscaping(t *testing.T) { dangerousData := DocumentData{ - Title: "", - Approver: "User & ", - Description: "Text with 'quotes' & \"double quotes\"", + Title: "", + Approver: "User & ", Signatures: []SignatureData{ { SignedBy: "tag", @@ -389,7 +386,6 @@ func BenchmarkGenerateHTML(b *testing.B) { Version: 1, Classification: ClassificationPublic, Approver: "John Doe", - Description: "Benchmark test document", PublishedAt: &now, Signatures: []SignatureData{ { diff --git a/pkg/probo/document_service.go b/pkg/probo/document_service.go index 3bbdcaa08..0d5771a74 100644 --- a/pkg/probo/document_service.go +++ b/pkg/probo/document_service.go @@ -1339,7 +1339,6 @@ func exportDocumentPDF( Version: version.VersionNumber, Classification: classification, Approver: owner.FullName, - Description: version.Changelog, PublishedAt: version.PublishedAt, Signatures: make([]docgen.SignatureData, len(signatures)), } diff --git a/pkg/trust/document_service.go b/pkg/trust/document_service.go index bc9879998..190b1c858 100644 --- a/pkg/trust/document_service.go +++ b/pkg/trust/document_service.go @@ -134,7 +134,6 @@ func (s *DocumentService) ExportPDF( Version: version.VersionNumber, Classification: classification, Approver: owner.FullName, - Description: version.Changelog, PublishedAt: version.PublishedAt, }