Skip to content

fix issue with hiding loading message in embedded mode#9235

Merged
stacey-gammon merged 2 commits intoelastic:masterfrom
stacey-gammon:fix-hide-loading-message-embedded-view
Nov 28, 2016
Merged

fix issue with hiding loading message in embedded mode#9235
stacey-gammon merged 2 commits intoelastic:masterfrom
stacey-gammon:fix-hide-loading-message-embedded-view

Conversation

@stacey-gammon
Copy link

@stacey-gammon stacey-gammon commented Nov 28, 2016

There was a lingering reference to a class name that was removed in #8970. This uses a class name that exists and removes the 'Give me a moment here...' message.

To repro, just add &embed to the query. You'll see an error (Uncaught TypeError: Cannot read property 'removeChild' of null(…)) in the javascript console and the loading screen never goes away.

@kobelb
Copy link
Contributor

kobelb commented Nov 28, 2016

LGTM

@tylersmalley
Copy link
Member

LGTM.

There is another issue this brings up, which is the share embedded link includes embed=true which is not picked up (you must remove =true)

This chunk of logic only matched on =embed, not =embed=true, which is
what the url given by sharing uses.
@stacey-gammon
Copy link
Author

Great point @tylersmalley, I updated the regex to match on both.

@kobelb
Copy link
Contributor

kobelb commented Nov 28, 2016

LGTM nice catch @tylersmalley

@stacey-gammon stacey-gammon merged commit 5d689aa into elastic:master Nov 28, 2016
elastic-jasper added a commit that referenced this pull request Nov 28, 2016
Backports PR #9235

**Commit 1:**
fix issue with hiding loading message in embedded mode

* Original sha: a5d4aaa
* Authored by Stacey Gammon <gammon@elastic.co> on 2016-11-28T19:06:49Z

**Commit 2:**
Fix match as well

This chunk of logic only matched on =embed, not =embed=true, which is
what the url given by sharing uses.

* Original sha: 1f6d7d9
* Authored by Stacey Gammon <gammon@elastic.co> on 2016-11-28T20:51:20Z
elastic-jasper added a commit that referenced this pull request Nov 28, 2016
Backports PR #9235

**Commit 1:**
fix issue with hiding loading message in embedded mode

* Original sha: a5d4aaa
* Authored by Stacey Gammon <gammon@elastic.co> on 2016-11-28T19:06:49Z

**Commit 2:**
Fix match as well

This chunk of logic only matched on =embed, not =embed=true, which is
what the url given by sharing uses.

* Original sha: 1f6d7d9
* Authored by Stacey Gammon <gammon@elastic.co> on 2016-11-28T20:51:20Z
stacey-gammon pushed a commit that referenced this pull request Nov 28, 2016
Backports PR #9235

**Commit 1:**
fix issue with hiding loading message in embedded mode

* Original sha: a5d4aaa
* Authored by Stacey Gammon <gammon@elastic.co> on 2016-11-28T19:06:49Z

**Commit 2:**
Fix match as well

This chunk of logic only matched on =embed, not =embed=true, which is
what the url given by sharing uses.

* Original sha: 1f6d7d9
* Authored by Stacey Gammon <gammon@elastic.co> on 2016-11-28T20:51:20Z
stacey-gammon pushed a commit that referenced this pull request Nov 28, 2016
Backports PR #9235

**Commit 1:**
fix issue with hiding loading message in embedded mode

* Original sha: a5d4aaa
* Authored by Stacey Gammon <gammon@elastic.co> on 2016-11-28T19:06:49Z

**Commit 2:**
Fix match as well

This chunk of logic only matched on =embed, not =embed=true, which is
what the url given by sharing uses.

* Original sha: 1f6d7d9
* Authored by Stacey Gammon <gammon@elastic.co> on 2016-11-28T20:51:20Z
@stacey-gammon stacey-gammon deleted the fix-hide-loading-message-embedded-view branch December 19, 2016 15:45
airow pushed a commit to airow/kibana that referenced this pull request Feb 16, 2017
Backports PR elastic#9235

**Commit 1:**
fix issue with hiding loading message in embedded mode

* Original sha: a5d4aaa
* Authored by Stacey Gammon <gammon@elastic.co> on 2016-11-28T19:06:49Z

**Commit 2:**
Fix match as well

This chunk of logic only matched on =embed, not =embed=true, which is
what the url given by sharing uses.

* Original sha: 1f6d7d9
* Authored by Stacey Gammon <gammon@elastic.co> on 2016-11-28T20:51:20Z

Former-commit-id: fae9380
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants

Comments