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

Negative numbers not serialized correctly when copying #3576

Closed
seancolsen opened this issue May 10, 2024 · 0 comments · Fixed by #3582
Closed

Negative numbers not serialized correctly when copying #3576

seancolsen opened this issue May 10, 2024 · 0 comments · Fixed by #3582
Labels
good first issue Everything in "Help wanted", PLUS being relatively easy and straightforward to implement. help wanted Community contributors can implement this ready Ready for implementation type: bug Something isn't working work: frontend Related to frontend code in the mathesar_ui directory
Milestone

Comments

@seancolsen
Copy link
Contributor

Steps to reproduce

  1. Create a new table via data import.

  2. Paste the following content to create the table:

    value
    1
    -5
    3
    
  3. Select all cells in the value column and use a keyboard shortcut to copy them.

  4. Paste into https://evercoder.github.io/clipboard-inspector/ to inspect your clipboard.

  5. Expect the text/plain content to be:

    1
    -5
    3
    
  6. Instead, observe it to be:

    1
    "'-5"
    3
    

Technical considerations

  • We're relying on a third-party library papaparse to do some of the CSV serialization here. It's possible there's a bug in that library. Or it's possible that we're using it incorrectly. Or it's possible the bug is entirely within our codebase. We'll need to troubleshoot this further to isolate it.
@seancolsen seancolsen added good first issue Everything in "Help wanted", PLUS being relatively easy and straightforward to implement. help wanted Community contributors can implement this ready Ready for implementation type: bug Something isn't working work: frontend Related to frontend code in the mathesar_ui directory labels May 10, 2024
@seancolsen seancolsen added this to the Backlog milestone May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Everything in "Help wanted", PLUS being relatively easy and straightforward to implement. help wanted Community contributors can implement this ready Ready for implementation type: bug Something isn't working work: frontend Related to frontend code in the mathesar_ui directory
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant