Skip to content

Commit 10fa36c

Browse files
expose comment-clusters.csv report
1 parent bcd2b61 commit 10fa36c

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

client-report/src/components/RawDataExport.jsx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,16 @@ const RawDataExport = ({ conversation, report_id }) => {
9090
{getDownloadFilename("comment-groups", conversation)}
9191
</a>
9292
</p>
93+
<p style={{ wordBreak: "break-all", fontFamily: "monospace" }}>
94+
{`Comment clusters: `}
95+
<a
96+
download={getDownloadFilename("comment-clusters", conversation)}
97+
href={`//${window.location.hostname}/api/v3/reportExport/${report_id}/comment-clusters.csv`}
98+
type="text/csv"
99+
>
100+
{getDownloadFilename("comment-clusters", conversation)}
101+
</a>
102+
</p>
93103

94104
<div style={{ marginTop: "3em" }}>
95105
<p style={{ wordBreak: "break-all", fontFamily: "monospace" }}>
@@ -110,6 +120,9 @@ const RawDataExport = ({ conversation, report_id }) => {
110120
<p style={{ wordBreak: "break-all", fontFamily: "monospace" }}>
111121
{`$ curl ${window.location.protocol}//${window.location.hostname}/api/v3/reportExport/${report_id}/comment-groups.csv`}
112122
</p>
123+
<p style={{ wordBreak: "break-all", fontFamily: "monospace" }}>
124+
{`$ curl ${window.location.protocol}//${window.location.hostname}/api/v3/reportExport/${report_id}/comment-clusters.csv`}
125+
</p>
113126
</div>
114127

115128
{doShowDataLicenseTerms && (

e2e/cypress/e2e/client-report/report-functionality.cy.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -456,6 +456,7 @@ describe('Reports - Functionality & Features', () => {
456456
'votes.csv',
457457
'participant-votes.csv',
458458
'comment-groups.csv',
459+
'comment-clusters.csv',
459460
]
460461

461462
// Check that export links exist

0 commit comments

Comments
 (0)