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

[WIP] Add new escape characters to OnPasteSelect #7634

Closed
wants to merge 3 commits into from
Closed

[WIP] Add new escape characters to OnPasteSelect #7634

wants to merge 3 commits into from

Conversation

1AB9502
Copy link

@1AB9502 1AB9502 commented Jun 1, 2019

CATEGORY

Choose one

  • Bug Fix
  • Enhancement (new features, refinement)
  • Refactor
  • Add tests
  • Build / Development Environment
  • Documentation

SUMMARY

Our internal users love pasting stuff info filters from CSVs or excel docs.
Currently onPasteSelect only parses comma separated values. I added new line and tabs (you never know) to the separator array

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TEST PLAN

In order to test the implementation I pasted the following values into the filter sections in the charts
regression test:
12345,45678,78906

new values tests
12345,
45678,
78906

12345
45678
78906

All values got parsed correctly

REVIEWERS

@@ -96,7 +96,7 @@ OnPasteSelect.propTypes = {
isValidNewOption: PropTypes.func,
};
OnPasteSelect.defaultProps = {
separator: ',',
separator: [',','\n','\t'],
Copy link
Member

Choose a reason for hiding this comment

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

Linter is complaining about missing spaces after ,

@1AB9502
Copy link
Author

1AB9502 commented Jun 3, 2019

Still looking into why the linter is failing

@1AB9502 1AB9502 changed the title Add new escape characters to OnPasteSelect [WIP] Add new escape characters to OnPasteSelect Jun 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants