Hide pinned filter state in embed mode#10816
Conversation
|
Jenkins test this Error: |
cffc1ce to
d03857c
Compare
|
ping @Bargs. This is a low-fruit mend it monday pr, should be a pretty easy review (famous last words). |
d03857c to
807b7f3
Compare
|
@snide This is super minor, but I'll tag you in case you just want to give a quick glance. Before this PR we showed pinned state, and the ability to pin: And after they are hidden (in embed mode only): Since pinned state only matters when moving across apps. |
Bargs
left a comment
There was a problem hiding this comment.
I think we should make the "(Un)Pin all" actions conditional as well https://github.com/elastic/kibana/blob/807b7f39f5a78ae9e2b8f9ff865e3d3ec70fa6d4/src/ui/public/filter_bar/filter_bar.html#L93-L98
Otherwise looks good
10faa2c to
306a2eb
Compare
|
Great call @Bargs, forgot about that |
|
LGTM |
It doesn’t make sense there, since there won’t be any cross app navigation, so don’t expose it. fixes elastic#5056
306a2eb to
6314e43
Compare
|
S3 error with jenkins. jenkins, test this |
Backports PR #10816 **Commit 1:** Hide pinned filter state in embed mode It doesn’t make sense there, since there won’t be any cross app navigation, so don’t expose it. fixes #5056 * Original sha: db3b881 * Authored by Stacey Gammon <gammon@elastic.co> on 2017-03-20T17:05:21Z **Commit 2:** Also conditionally hide "all filter" pin state actions * Original sha: 6314e43 * Authored by Stacey Gammon <gammon@elastic.co> on 2017-03-28T20:44:44Z
Backports PR #10816 **Commit 1:** Hide pinned filter state in embed mode It doesn’t make sense there, since there won’t be any cross app navigation, so don’t expose it. fixes #5056 * Original sha: db3b881 * Authored by Stacey Gammon <gammon@elastic.co> on 2017-03-20T17:05:21Z **Commit 2:** Also conditionally hide "all filter" pin state actions * Original sha: 6314e43 * Authored by Stacey Gammon <gammon@elastic.co> on 2017-03-28T20:44:44Z
This is not true. Pin state matters when moving between dashboards, for example when using a markup vizualization with links to create a navigation bar. Pinning is an important concept in the way our dashboards behave for the user (some of which are embedded in portal pages). I would really recommend making this change configurable in the Kibana advanced settings, similar to how one can configure whether filters are pinned by default. My feeling is that there are use-cases here which have not been considered. |
|
Thanks @robacj, you are right, we did not consider that use case.
Are your users pinning the filters themselves in embedded mode? Or do you only want those filters to show up for all dashboards in embedded mode? If the latter, it will continue to work. The underlying pin state remains the same. If you remove the Knowing this, would this change still pose a problem? |
|
We have created some portal widgets that manipulate the url which is used to launch various embedded dashboards in an iframe. Those URL manipulation include setting '$state':(store:globalState) or '$state':(store:appState) depending on whether the desired starting point is pinned or not pinned. Users have the freedom to pin, unpin and add their own filters by clicking on elements of the visualization (and pin or unpin those). Users know that they can do this. How many are actually doing it??? Now that is a good question. This has long been one of the issues with "unintentional software features". Without reaching out to everyone to learn who has discovered and leveraged the features it is hard to assess the impact. However when those "features" disappear, users that find their workflow disrupted and are not happy. I completely understand that removing the pinning options is 100% OK for some users, maybe even the majority. However for the rest of us, it would be great if the behaviour could be controlled by an advanced option... OR could be configured 'per dashboard'. I would prefer that even more as I would also like to see "pinned by default" be configurable per dashboard. NOTE: I haven't post before this thread, so please don't interpret my commits as just complaining. You are all doing great work and I think Kibana is awesome and still getting better all of the time. However this morning this spooked me enough that I felt I needed to share my concerns. Rob |
|
@robacj you've brought up a great point and we highly value this kind of feedback! We definitely don't see it as complaining. I hope you join more discussions in the future! @stacey-gammon tbh I felt a bit uncomfortable with this PR when reviewing it. I was worried there would be unintended side effects but I couldn't think of any issues at the time so I didn't want to block it just because it "didn't feel right". With this recent issue brought to light I think we should reconsider implementing it. IMO removing the pin icon in embed mode provides very little benefit at a risk of hurting some users. |
|
@Bargs I agree with you, just left a comment on the original issue. I also vote to revert this PR. Thank you @robacj for bringing this to our attention! |
This reverts commit d41042a.
…tic#11025) This reverts commit d41042a.





It doesn’t make sense there, since there won’t be any cross app
navigation, so don’t expose it.
fixes #5056