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

[sqllab] more robust copy to clipboard #6180

Merged
merged 9 commits into from Oct 25, 2018

Conversation

williaster
Copy link
Contributor

@williaster williaster commented Oct 24, 2018

This PR

screen shot 2018-10-24 at 1 36 19 pm

  • Fixes share query offset in explore view. This had the wrong offset because we render once without the url, then render again with the url, but the react-bootstrap popover was not updating its position on the 2nd render
  • Fixes two react warnings for the Hotkey component (no id for a popover, no key for array-generated children)

before
screen shot 2018-10-24 at 1 36 05 pm

after
screen shot 2018-10-24 at 1 36 05 pm

@kristw @michellethomas @graceguo-supercat @mistercrunch

@williaster williaster changed the title [sqllab] more robust copy to clipboard [wip][sqllab] more robust copy to clipboard Oct 24, 2018
@codecov-io
Copy link

codecov-io commented Oct 24, 2018

Codecov Report

Merging #6180 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #6180   +/-   ##
=======================================
  Coverage   76.91%   76.91%           
=======================================
  Files          47       47           
  Lines        9362     9362           
=======================================
  Hits         7201     7201           
  Misses       2161     2161

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 6ec9e1a...1127de5. Read the comment docs.

@williaster williaster changed the title [wip][sqllab] more robust copy to clipboard [sqllab] more robust copy to clipboard Oct 24, 2018
Copy link

@graceguo-supercat graceguo-supercat left a comment

Choose a reason for hiding this comment

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

LGTM

@williaster williaster merged commit 90809f6 into apache:master Oct 25, 2018
@williaster williaster deleted the chris--sqllab-copy-to-clipboard branch October 25, 2018 17:28
michellethomas pushed a commit to michellethomas/panoramix that referenced this pull request Oct 25, 2018
* [sqllab] implement more robust share query button

* [sqllab] fix Hotkeys react warnings

* [CopyToClipboard] don't bind in render functions

* [explorer] fix short url button position

* [sqllab] remove share query item in tab dropdown menu

* [sqllab] reference new ShareSqlLabQuery component

* [sqllab][share query robustness] clean up

* [sqllab] fix tests

* [sqllab][share query] add unit tests

(cherry picked from commit 90809f6)
bipinsoniguavus pushed a commit to ThalesGroup/incubator-superset that referenced this pull request Dec 26, 2018
* [sqllab] implement more robust share query button

* [sqllab] fix Hotkeys react warnings

* [CopyToClipboard] don't bind in render functions

* [explorer] fix short url button position

* [sqllab] remove share query item in tab dropdown menu

* [sqllab] reference new ShareSqlLabQuery component

* [sqllab][share query robustness] clean up

* [sqllab] fix tests

* [sqllab][share query] add unit tests
@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 27, 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 🚢 0.34.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sqllab copy link is not as reliable as it can be
4 participants