Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct the mime-type of exported CSVs #792

Merged
merged 1 commit into from
Sep 17, 2021

Conversation

AMoo-Miki
Copy link
Collaborator

Signed-off-by: Miki [email protected]

Description

Blobs representing CSV content are generated on the browser which are then exported as downloadables. The mime-types were incorrectly set to text/plain in a few places. This commit changes the mime-type to be text/csv.

Issues Resolved

#640

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed per the DCO using --signoff

@opensearch-ci-bot
Copy link
Collaborator

✅   DCO Check Passed 2e49297

@kavilla kavilla added the bug Something isn't working label Sep 11, 2021
@kavilla kavilla linked an issue Sep 11, 2021 that may be closed by this pull request
@kavilla
Copy link
Member

kavilla commented Sep 11, 2021

Screen Shot 2021-09-10 at 9 16 21 PM

@kavilla
Copy link
Member

kavilla commented Sep 11, 2021

Thanks for doing this!

NIT: Everything looks great! But can you actually add more to the git description to have the description you have in the PR. It will helpful for people when using git tools if it had more information.

Copy link
Member

@kavilla kavilla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. One comment.

Blobs representing CSV content are generated on the browser which are then exported as downloadables. The mime-types were incorrectly set to text/plain in a few places. This commit changes the mime-type to be text/csv.

Issues Resolved
opensearch-project#640

Signed-off-by: Miki <[email protected]>
@opensearch-ci-bot
Copy link
Collaborator

✅   DCO Check Passed a2de1f9

@AMoo-Miki AMoo-Miki requested a review from kavilla September 14, 2021 20:54
Copy link
Contributor

@tmarkley tmarkley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

Copy link
Member

@kavilla kavilla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thank you!

@kavilla kavilla added the v1.2.0 label Sep 14, 2021
@tmarkley tmarkley added this to the 1.2 Release milestone Sep 15, 2021
@tmarkley tmarkley merged commit 8618905 into opensearch-project:main Sep 17, 2021
tmarkley pushed a commit to tmarkley/OpenSearch-Dashboards that referenced this pull request Sep 23, 2021
Blobs representing CSV content are generated on the browser which are then exported as downloadables. The mime-types were incorrectly set to text/plain in a few places. This commit changes the mime-type to be text/csv.

Issues Resolved
opensearch-project#640

Signed-off-by: Miki <[email protected]>
tmarkley pushed a commit that referenced this pull request Sep 24, 2021
Blobs representing CSV content are generated on the browser which are then exported as downloadables. The mime-types were incorrectly set to text/plain in a few places. This commit changes the mime-type to be text/csv.

Issues Resolved
#640

Signed-off-by: Miki <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working v1.2.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] CSV download has wrong MIME type
4 participants