Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
345c5069
Commit
345c5069
authored
Jan 12, 2024
by
Alejandro Celaya
Committed by
Alejandro Celaya
Jan 12, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use Comment as column name for annotation text when exporting as CSV
parent
1cfa0973
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
annotations-exporter.tsx
src/sidebar/services/annotations-exporter.tsx
+1
-1
annotations-exporter-test.js
src/sidebar/services/test/annotations-exporter-test.js
+2
-2
No files found.
src/sidebar/services/annotations-exporter.tsx
View file @
345c5069
...
...
@@ -141,7 +141,7 @@ export class AnnotationsExporter {
'Annotation/Reply Type'
,
'Quote'
,
'User'
,
'
Body
'
,
'
Comment
'
,
'Tags'
,
'Page'
,
].
join
(
','
);
...
...
src/sidebar/services/test/annotations-exporter-test.js
View file @
345c5069
...
...
@@ -229,7 +229,7 @@ Tags: tag_1, tag_2`,
assert
.
equal
(
result
,
`Creation Date,URL,Group,Annotation/Reply Type,Quote,User,
Body
,Tags,Page
`Creation Date,URL,Group,Annotation/Reply Type,Quote,User,
Comment
,Tags,Page
${
formattedNow
}
,http://example.com,My group,Annotation,,jane,Annotation text,"foo,bar",
${
formattedNow
}
,http://example.com,My group,Reply,"includes ""double quotes"", and commas",bill,Annotation text,"tag_1,tag_2",23
${
formattedNow
}
,http://example.com,My group,Annotation,,bill,Annotation text,,iii`
,
...
...
@@ -252,7 +252,7 @@ ${formattedNow},http://example.com,My group,Annotation,,bill,Annotation text,,ii
assert
.
equal
(
result
,
`Creation Date,URL,Group,Annotation/Reply Type,Quote,User,
Body
,Tags,Page
`Creation Date,URL,Group,Annotation/Reply Type,Quote,User,
Comment
,Tags,Page
${
formattedNow
}
,http://example.com,My group,Annotation,,John Doe,Annotation text,"tag_1,tag_2",`
,
);
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment