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

Add new escape characters to OnPasteSelect #7638

Merged
merged 4 commits into from Jun 7, 2019
Merged

Add new escape characters to OnPasteSelect #7638

merged 4 commits into from Jun 7, 2019

Conversation

1AB9502
Copy link
Contributor

@1AB9502 1AB9502 commented Jun 3, 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

ADDITIONAL INFO

Duplicates closed pull request #7634 since I fudged something up in my local repo

@1AB9502 1AB9502 changed the title Add new escape characters to OnPasteSelect [WIP] Add new escape characters to OnPasteSelect Jun 3, 2019
@1AB9502 1AB9502 changed the title [WIP] Add new escape characters to OnPasteSelect Add new escape characters to OnPasteSelect Jun 3, 2019
@codecov-io
Copy link

codecov-io commented Jun 3, 2019

Codecov Report

❗ No coverage uploaded for pull request base (master@78c1674). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #7638   +/-   ##
=========================================
  Coverage          ?   65.57%           
=========================================
  Files             ?      435           
  Lines             ?    21754           
  Branches          ?     2394           
=========================================
  Hits              ?    14266           
  Misses            ?     7367           
  Partials          ?      121
Impacted Files Coverage Δ
superset/assets/src/components/OnPasteSelect.jsx 88.09% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 78c1674...a592081. Read the comment docs.

@etr2460
Copy link
Member

etr2460 commented Jun 3, 2019

Could you add some unit tests for this to OnPasteSelect_spec.jsx?

@1AB9502
Copy link
Contributor Author

1AB9502 commented Jun 4, 2019

@etr2460, totally missed!

I updated unit tests to check for tabs and new line characters.

Copy link
Member

@mistercrunch mistercrunch left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for adding unit tests

Copy link
Member

@etr2460 etr2460 left a comment

Choose a reason for hiding this comment

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

Thanks for adding tests! A couple nits, but then LGTM

@mistercrunch mistercrunch merged commit 271612c into apache:master Jun 7, 2019
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.34.0 labels Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels size/XS 🚢 0.34.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants