Skip to content

Conversation

@jbudz
Copy link
Contributor

@jbudz jbudz commented Sep 9, 2016

This adds a method to render views using the chrome base template without passing user defined settings from .kibana/config.

@epixa
Copy link
Contributor

epixa commented Sep 9, 2016

I think some light refactoring here could go a long way to making this easier to understand. I worry any time I see boolean arguments or compound conditions in ternary operators. Perhaps something like:

https://gist.github.com/epixa/969ac59b277761feb9907bbfe0d13c34

Warning: that is completely untested

Copy link
Contributor

Choose a reason for hiding this comment

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

Probably didn't want this, can you amend it away?

@jbudz jbudz force-pushed the render-without-settings branch from 957b400 to d4f2ee6 Compare September 9, 2016 20:41
@epixa
Copy link
Contributor

epixa commented Sep 9, 2016

LGTM

@epixa
Copy link
Contributor

epixa commented Sep 9, 2016

Wait, I take it back!

src/ui/index.js Outdated
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be const since the reference itself is never changed.

@jbudz jbudz force-pushed the render-without-settings branch from d4f2ee6 to b680ba2 Compare September 9, 2016 21:22
@thomasneirynck thomasneirynck self-assigned this Sep 9, 2016
@epixa
Copy link
Contributor

epixa commented Sep 9, 2016

LGTM

1 similar comment
@thomasneirynck
Copy link
Contributor

LGTM

@jbudz jbudz merged commit 9d157c9 into elastic:master Sep 9, 2016
elastic-jasper added a commit that referenced this pull request Sep 9, 2016
---------

**Commit 1:**
Provide method to render without sending .kibana/config

* Original sha: 8fdcb83
* Authored by Jonathan Budzenski <[email protected]> on 2016-09-09T19:05:07Z

**Commit 2:**
Provide explicit render methods for including and excluding settings

* Original sha: b680ba2
* Authored by Jonathan Budzenski <[email protected]> on 2016-09-09T20:41:11Z
elastic-jasper added a commit that referenced this pull request Sep 9, 2016
---------

**Commit 1:**
Provide method to render without sending .kibana/config

* Original sha: 8fdcb83
* Authored by Jonathan Budzenski <[email protected]> on 2016-09-09T19:05:07Z

**Commit 2:**
Provide explicit render methods for including and excluding settings

* Original sha: b680ba2
* Authored by Jonathan Budzenski <[email protected]> on 2016-09-09T20:41:11Z
jbudz added a commit that referenced this pull request Sep 9, 2016
jbudz added a commit that referenced this pull request Sep 9, 2016
airow pushed a commit to airow/kibana that referenced this pull request Feb 16, 2017
---------

**Commit 1:**
Provide method to render without sending .kibana/config

* Original sha: 8d2d0a492fa8f2fdcabf51f29a3cdf71bafdc2a3 [formerly 8fdcb83]
* Authored by Jonathan Budzenski <[email protected]> on 2016-09-09T19:05:07Z

**Commit 2:**
Provide explicit render methods for including and excluding settings

* Original sha: a680d102e91905b634f6862b41652823730864e0 [formerly b680ba2]
* Authored by Jonathan Budzenski <[email protected]> on 2016-09-09T20:41:11Z


Former-commit-id: 0c2dd87
airow pushed a commit to airow/kibana that referenced this pull request Feb 16, 2017
tiansivive added a commit that referenced this pull request Jan 16, 2024
…isk Summary (#174574)

Adding context in Risk Summary, part of
[#8207](elastic/security-team#8207) Meta
This PR handles both
[#8357](elastic/security-team#8357) and
[#8359](elastic/security-team#8359)


<img width="609" alt="Screenshot 2024-01-10 at 12 06 00"
src="https://github.com/elastic/kibana/assets/2423976/1f516eb9-1723-4c88-80b9-b61905a59f6a">


Closing #174443 since this PR includes those changes as well

---------

Co-authored-by: Kibana Machine <[email protected]>
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.

4 participants