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

Fix embed view #5166

Merged
merged 4 commits into from
Oct 30, 2015
Merged

Fix embed view #5166

merged 4 commits into from
Oct 30, 2015

Conversation

panda01
Copy link
Contributor

@panda01 panda01 commented Oct 21, 2015

  • Removed collapsible sidebar.
  • Removed spy panel.

@panda01 panda01 added bug Fixes for quality problems that affect the customer experience v4.2.0 v4.3.0 labels Oct 21, 2015
…lize closes elastic#5165. Added a chrome.getVisible to spy panel closes elastic#3820
@rashidkpc rashidkpc added v4.2.1 and removed v4.2.0 labels Oct 23, 2015
@spalger
Copy link
Contributor

spalger commented Oct 26, 2015

I don't think the spy panel should be removed from the embed mode.

@BigFunger
Copy link
Contributor

Looks like the spy panel was removed in all instances, not just embedded.
discover
visualize
dashboard

@BigFunger BigFunger assigned panda01 and unassigned BigFunger Oct 26, 2015
@panda01
Copy link
Contributor Author

panda01 commented Oct 27, 2015

Whoops, silly me. Fixed that @BigFunger.

@panda01 panda01 assigned BigFunger and unassigned panda01 Oct 27, 2015
@BigFunger
Copy link
Contributor

@panda01 Your most recent commit re-added the spy tab to the visualization editor in the Visualize app, but it is still missing from the Discover app and the Dashboard app.

@panda01 panda01 assigned BigFunger and unassigned panda01 Oct 29, 2015
@BigFunger
Copy link
Contributor

LGTM

The only concern that I have is the name of the chrome property that you're taking advantage of. @spalger is the name of that property descriptive enough given the context in which it is being used here? I assume that the getVisible function refers to the visibility of the chrome-application wrapper as a whole. Since the spy panel is a part of something other than the chrome-application wrapper (namely a visualization), should there be some other mechanism in play here? Or are we OK with arbitrarily deciding what elements are part of the chrome and what are not?

@BigFunger BigFunger assigned panda01 and unassigned BigFunger Oct 29, 2015
@spalger
Copy link
Contributor

spalger commented Oct 29, 2015

@BigFunger I'm fine deciding whether or not the spy is visible based on if the chrome is visible.

The intention behind chrome.isVisible() was to be able to create "hybrid" views (down the road) which didn't need to know about the query string parameters passed to the application in order to render properly (which is why I wanted to get rid of $scope.embedded).

@panda01
Copy link
Contributor Author

panda01 commented Oct 29, 2015

I'm not really that much of a fan of that either. I think perhaps it would
be better to just pass in the function after is has been called
On Oct 29, 2015 13:01, "Spencer" notifications@github.com wrote:

@BigFunger https://github.com/BigFunger I'm fine deciding whether or
not the spy is visible based on if the chrome is visible.

The intention behind chrome.isVisible() was to be able to create "hybrid"
views (down the road) which didn't need to know about the query string
parameters passed to the application in order to render properly (which is
why I wanted to get rid of $scope.embedded).


Reply to this email directly or view it on GitHub
#5166 (comment).

@spalger
Copy link
Contributor

spalger commented Oct 29, 2015

@panda01 pass in the function? Not sure what you mean.

@spalger
Copy link
Contributor

spalger commented Oct 29, 2015

You mean pass in an isVisible() function? At what point would we convert it from chrome.isVisible() to isVisible()? How is that different?

@panda01
Copy link
Contributor Author

panda01 commented Oct 29, 2015

No I mean pass in the value. Of the function. As a param like
spy-panel-visible
On Oct 29, 2015 13:10, "Spencer" notifications@github.com wrote:

You mean pass in a isVisible() function? At what point would we convert
it from chrome.isVisible() to isVisible()? How is that different?


Reply to this email directly or view it on GitHub
#5166 (comment).

@spalger
Copy link
Contributor

spalger commented Oct 29, 2015

Yeah, at the visualization level I think that makes more sense

…lt if no option is passed in for show-spy-panel Removed conditional on from discover
@lukasolson
Copy link
Member

LGTM!

@spalger
Copy link
Contributor

spalger commented Oct 30, 2015

LGTM, but needs a merge with master

panda01 added a commit that referenced this pull request Oct 30, 2015
@panda01 panda01 merged commit c3c662e into elastic:master Oct 30, 2015
@tbragin tbragin mentioned this pull request Nov 3, 2015
9 tasks
@epixa
Copy link
Contributor

epixa commented Nov 5, 2015

This was never backported to 4.2

epixa added a commit that referenced this pull request Nov 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience v4.2.1 v4.3.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants